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

Push values into the data layer #170

Closed
ghost opened this issue Jan 16, 2023 · 1 comment
Closed

Push values into the data layer #170

ghost opened this issue Jan 16, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 16, 2023

Hello,
I would like to add a custom dimension to Google Analytics. According to some tutorials, before I get a custom dimension in GA4, I have to push it by the data layer in GTM (for example here is described how to do that https://mixedanalytics.com/blog/ga-gtm-datalayer-custom-dimensions/).

I use angular-google-tag-manager in my implementation, is there any way to push value to the data layer in this implementation?

Best Regards

@ghost
Copy link
Author

ghost commented Jan 23, 2023

I investigated and found that google-tag-manager-service provides access to the data layer.
this.googleTagManagerService.getDataLayer()

I'm closing the issue.

@ghost ghost closed this as completed Jan 23, 2023
This issue was closed.
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

No branches or pull requests

0 participants