Skip to content

Honor privacy signals in the docs Cloud strip - #2678

Open
anuroop258 wants to merge 1 commit into
unclecode:developfrom
anuroop258:bugfix/cloud-strip-privacy-opt-out
Open

anuroop258 wants to merge 1 commit into
unclecode:developfrom
anuroop258:bugfix/cloud-strip-privacy-opt-out

Conversation

@anuroop258

Copy link
Copy Markdown

Summary

Refs #2665. The docs Cloud strip now honors Global Privacy Control on navigator and skips anonymous-ID storage access when GPC or Do Not Track is enabled. The strip stays visible. This addresses the docs privacy portion of the issue.

List of files changed and why

  • docs/md_v2/assets/cloud-strip.js checks GPC before touching the tracking ID and describes both impression and click events.
  • tests/unit/test_cloud_strip_privacy.cjs exercises the real script with mocked browser APIs. The Python wrapper makes it discoverable by pytest when Node.js is available.

How Has This Been Tested?

  • Node.js 24.22.3: 6 failures and 5 passes on upstream develop, then 11 passes after the patch.
  • Targeted pytest wrapper, Node syntax checks, Black check, and git diff --check passed.

AI assistance: OpenAI Codex reviewed and applied the supplied patch, integrated and ran the regression tests, and prepared this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant