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: add google analytics script tag #5437

Merged
merged 4 commits into from
Apr 26, 2024
Merged

feat: add google analytics script tag #5437

merged 4 commits into from
Apr 26, 2024

Conversation

jainpawan21
Copy link
Member

@jainpawan21 jainpawan21 commented Apr 19, 2024

What changed? Why was the change needed?

Ref:- INF-344

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

netlify bot commented Apr 19, 2024

Deploy Preview for dev-web-novu ready!

Name Link
🔨 Latest commit 6c8fc29
🔍 Latest deploy log https://app.netlify.com/sites/dev-web-novu/deploys/662b48bd3ba6530008a8f904
😎 Deploy Preview https://deploy-preview-5437--dev-web-novu.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Apr 19, 2024

Deploy Preview for novu-design ready!

Name Link
🔨 Latest commit 6c8fc29
🔍 Latest deploy log https://app.netlify.com/sites/novu-design/deploys/662b48bdebc161000845bb37
😎 Deploy Preview https://deploy-preview-5437--novu-design.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@jainpawan21 jainpawan21 requested review from a team, davidsoderberg and BiswaViraj and removed request for a team April 19, 2024 11:42
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-KXMC4XP2');
Copy link
Contributor

Choose a reason for hiding this comment

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

GTM identifier should be taken from the env variables passed from the pipelines. It will be different per environment (dev/staging/prod).

Also are we sure that we want to use the same identifier for both EU and US regions?

Copy link
Member Author

Choose a reason for hiding this comment

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

@LetItRock

As per Justin's message in slack, it will be the same for all environments.

  • Added conditions and support of environment variables. I can remove these conditions and variables if you think it is not needed anymore.

@jainpawan21 jainpawan21 requested a review from LetItRock April 22, 2024 08:48
apps/web/public/index.html Outdated Show resolved Hide resolved
@github-actions github-actions bot added the CI/CD label Apr 24, 2024
@jainpawan21 jainpawan21 requested a review from a team April 26, 2024 06:24
@jainpawan21 jainpawan21 requested a review from a team as a code owner April 26, 2024 06:24
@jainpawan21 jainpawan21 requested review from scopsy and Cliftonz and removed request for a team April 26, 2024 06:24
@LetItRock LetItRock merged commit c89dce5 into next Apr 26, 2024
34 checks passed
@LetItRock LetItRock deleted the feature/add-gtag branch April 26, 2024 08:56
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.

4 participants