Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ANALYTICS_NAMESPACE, as it's only usable at build time #2293

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

emma-sg
Copy link
Member

@emma-sg emma-sg commented Jan 9, 2025

Changes

Replaces ANALYTICS_NAMESPACE with setting window.btrixEvent via inject_extra config.

Tested locally with the inject_extra value in https://github.com/webrecorder/browsertrix-cloud-ops/pull/8.

@emma-sg emma-sg requested a review from SuaYoo January 9, 2025 21:15
@emma-sg emma-sg self-assigned this Jan 9, 2025
@emma-sg emma-sg requested a review from ikreymer January 9, 2025 21:36
@SuaYoo SuaYoo force-pushed the public-collections-feature branch from f06faa8 to 85053b8 Compare January 13, 2025 18:53
@SuaYoo SuaYoo force-pushed the public-collections-feature--analytics-namespace-runtime branch from 89eb82d to 867a33e Compare January 13, 2025 21:38
@SuaYoo SuaYoo force-pushed the public-collections-feature branch from 85053b8 to 56a634e Compare January 13, 2025 23:15
Base automatically changed from public-collections-feature to main January 14, 2025 03:32

Verified

This commit was signed with the committer’s verified signature.
renovate-bot Mend Renovate
and replace it with a runtime window.btrixEvent set that can be set in the extra.js config
@SuaYoo SuaYoo force-pushed the public-collections-feature--analytics-namespace-runtime branch from 867a33e to 747f67c Compare January 14, 2025 03:49

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@@ -230,7 +230,7 @@ Note that the script will only run when the web app loads, i.e. the first time t

### Tracking events
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tweaked language in this section

@SuaYoo SuaYoo force-pushed the public-collections-feature--analytics-namespace-runtime branch from 493b5d1 to 37f3230 Compare January 14, 2025 04:12
@SuaYoo SuaYoo merged commit 04e9127 into main Jan 14, 2025
8 checks passed
@SuaYoo SuaYoo deleted the public-collections-feature--analytics-namespace-runtime branch January 14, 2025 04:13
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.

None yet

2 participants