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: Google tag manager integration #2469

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DenisPalnitsky
Copy link
Contributor

Summary

Adds optional Google Tag Manager integration.
Discussion: #2430

Change Type

Please delete any irrelevant options.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Translation update
  • Documentation update

Testing

Testing instructions (based on this article):

  1. Copy .env.example to .env file
  2. Uncomment ANALYTICS_GTM_ID in the .env file and set to to a valid Google Tag Manager account ID that has format similar to GTM-AAAAA123. You can enter random string there. In that case you won't see events in GTM but you still can test that functionality works.
  3. Run backend and frontend
  4. Load application and click around
  5. In network tab you will see requests to gtm.js
    image
  6. Navigate to dev console and enter 'dataLayer' there. You should get list of events back
    image
  7. (optionally) Configure GTM account as described in GTM Set Up section here and verify that events are received by GTM.

Checklist

Please delete any irrelevant options.

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • My changes do not introduce new warnings
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules.

@DenisPalnitsky DenisPalnitsky marked this pull request as ready for review April 19, 2024 17: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.

None yet

1 participant