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

feat(pages-components): restore productionDomains AnalyticsProvider prop #87

Merged
merged 4 commits into from
Mar 7, 2025

Conversation

jwartofsky-yext
Copy link
Contributor

@jwartofsky-yext jwartofsky-yext commented Mar 7, 2025

Restores the productionDomains param for the AnalyticsProvider. It is used as a fallback after checking the IS_PRODUCTION variable. This is necessary for analytics to work when the code is used in the context of a Yext module because the hosting domain may not be served by Yext.

Restores the productionDomains param for the AnalyticsProvider.

If productionDomains is present and matches the hostname, then
analytics will be enabled.

TEST=auto
Copy link

changeset-bot bot commented Mar 7, 2025

⚠️ No Changeset found

Latest commit: 358b26a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@mkilpatrick mkilpatrick changed the title feat: restore productionDomains provider param feat(pages-components): restore productionDomains AnalyticsProvider prop Mar 7, 2025
@jwartofsky-yext jwartofsky-yext merged commit bd6b676 into main Mar 7, 2025
19 checks passed
@jwartofsky-yext jwartofsky-yext deleted the restoreProductionDomains branch March 7, 2025 21:32
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.

2 participants