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

UTM parameters are not tracking without page reload. #18

Open
mehidi258 opened this issue Oct 10, 2019 · 4 comments
Open

UTM parameters are not tracking without page reload. #18

mehidi258 opened this issue Oct 10, 2019 · 4 comments

Comments

@mehidi258
Copy link
Contributor

I'm using @nuxtjs/google-gtag module with this option. It's working perfectly for page views, but utm parameters are not working without page reload.
{ id: process.env.NUXT_ENV_GTAG_ID, config: { anonymize_ip: true, send_page_view: true }, debug: process.env.NODE_ENV === "production" ? false : true, disableAutoPageTrack: false }

@dohomi
Copy link
Contributor

dohomi commented Oct 10, 2019

@mehidi258
Copy link
Contributor Author

mehidi258 commented Oct 10, 2019

@dohomi Thanks for your feedback. I tried with this approach also but still not working. I'm getting page view as expected but not getting UTM tracking without page reload.
Ex. /somePath/?utm_source=frontPage&utm_medium=menu
I want to track Source/Medium without page reload.

@dohomi
Copy link
Contributor

dohomi commented Oct 10, 2019

I honestly have no idea why thats not working.. doesn't seem to be an issue with gtag.. maybe try Google Tag Manager instead?

@mehidi258
Copy link
Contributor Author

Hi @dohomi figure out the issue and fixed it. It's perfectly working now for me that's why i have submitted a PR please review it.
Thanks again @dohomi

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

2 participants