Skip to content

fix: remove Google Analytics tracking from HTML exports - #3329

Closed
pierreeurope wants to merge 1 commit into
keplergl:masterfrom
pierreeurope:fix/remove-ga-html-export-2036
Closed

fix: remove Google Analytics tracking from HTML exports#3329
pierreeurope wants to merge 1 commit into
keplergl:masterfrom
pierreeurope:fix/remove-ga-html-export-2036

Conversation

@pierreeurope

Copy link
Copy Markdown
Contributor

Summary

Removes embedded Google Analytics tracking scripts from all HTML export templates. These scripts were tracking users of exported maps without their consent, which raises privacy concerns — particularly in regions with strict data privacy regulations like GDPR in Europe.

Changes

  • src/utils/src/export-map-html.ts: Remove GA script from standalone HTML export
  • bindings/kepler.gl-jupyter/js/template/keplergl-html.ejs: Remove GA script from Jupyter HTML export template
  • bindings/kepler.gl-jupyter/js/lib/keplergl/components/app.js: Remove GA gtag from Jupyter widget component

Context

As noted in the issue, the GA tracking contradicts kepler.gl's own Data Security statement which states the library does not collect information. The tracking also used localStorage which can cause SecurityError in restricted environments (related to #1488).

Closes #2036

Remove embedded Google Analytics scripts from HTML map exports and
Jupyter widget templates. These scripts tracked users without consent,
which raises privacy concerns especially in regions with strict data
privacy regulations (e.g., GDPR in Europe).

Affected files:
- src/utils/src/export-map-html.ts (standalone HTML export)
- bindings/kepler.gl-jupyter/js/template/keplergl-html.ejs (Jupyter HTML)
- bindings/kepler.gl-jupyter/js/lib/keplergl/components/app.js (Jupyter widget)

Closes keplergl#2036

Signed-off-by: pierreeurope <pierre.europe@pm.me>
@igorDykhta igorDykhta closed this Feb 12, 2026
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.

Add option to disable Google Analytics tracking or remove it completely

2 participants