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

36 update charts for gtm #38

Merged
merged 1 commit into from
Jan 24, 2024
Merged

36 update charts for gtm #38

merged 1 commit into from
Jan 24, 2024

Conversation

alishaevn
Copy link
Member

@alishaevn alishaevn commented Jan 24, 2024

Story

update charts for gtm to work in deployment

since GOOGLE_TAG_MANAGER_ID is being referenced through an environment variable, it needed to be added as a deployment variable as well. we only need this value accessible in production, so I was able to remove it from the local env. the value should return as "undefined" and "" in the local and staging environments, respectively.

related: #37

Expected Behavior After Changes

  • google tag manager is active in the production environment only

Notes

I deployed this branch to main, but the gtm id still wasn't picked up. I'm thinking that the deploy updates need to actually be in main to be picked up.

since `GOOGLE_TAG_MANAGER_ID` is being referenced through an environment
variable, it needed to be added as a deployment variable as well. we
only need this value accessible in production, so I was able to remove it
from the local env. the value should return as "undefined" and "" in the
local and staging environments, respectively.

related: #37
Copy link

vercel bot commented Jan 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
phenovista ✅ Ready (Inspect) Visit Preview Jan 24, 2024 4:47pm

@alishaevn
Copy link
Member Author

I deployed this branch to main, but the gtm id still wasn't picked up. I'm thinking that the deploy updates need to actually be in main to be picked up.

@alishaevn alishaevn merged commit 180d75b into main Jan 24, 2024
7 of 8 checks passed
@labradford
Copy link
Collaborator

Not able to give an code review/approval after merge

Copy link
Contributor

@summer-cook summer-cook left a comment

Choose a reason for hiding this comment

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

Looks good 👍

alishaevn added a commit that referenced this pull request Jan 24, 2024
I thought that the reason the GTM ID wasn't showing on production after
deploying my branch (#38)
to production was because the deploy changes needed to be in main to take
effect. however, after merging the above to main and deploying again, the
GTM ID still doesn't show up.

I now believe the issue is related to the `NEXT_PUBLIC` prefix. Added it
to the GTM ID so that the client should be able to pick up the variable.
@alishaevn alishaevn linked an issue Jan 24, 2024 that may be closed by this pull request
1 task
alishaevn added a commit to assaydepot/webstore that referenced this pull request Jan 24, 2024
I thought that the reason the GTM ID wasn't showing on production after
deploying my branch (assaydepot/phenovista-digital-storefront#38)
to production was because the deploy changes needed to be in main to take
effect. however, after merging the above to main and deploying again, the
GTM ID still doesn't show up.

I now believe the issue is related to the `NEXT_PUBLIC` prefix. Added it
to the GTM ID so that the client should be able to pick up the variable.
@alishaevn alishaevn deleted the 36-update-charts-for-gtm branch January 24, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

google tag manager
4 participants