-
Notifications
You must be signed in to change notification settings - Fork 71
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
Support fix for rogue referral problem #68
Comments
Hi @everyx @LuXDAmore. I'm so sorry it was stalled. Do you mind making a pull-request for feature support? Can be conditionally added here using new option like |
Thank you @pi0 and @wusongliang for the PR, Is there anything else I can do to help you? 😄 |
After testing on real projects, I found that the rogue referral problem is not a problem, the whole solution from Ahava's blog is wrong, and the solution from David Vallejo of fix tracker name is the final answer to solve this problem. So I will close this issue, If people wants to save the |
@everyx could you elaborate why the solution "is wrong"? Setting the tracker name is very risky - GTM doesn't isolate hits from trackers when firing Universal Analytics hits. There are no hit-scoped settings only tracker-scoped settings. That's why GTM sets a unique tracker name for every tag, to avoid values from leaking from hit to hit. When you set the tracker name across your tags, it means that all settings set by one tag are inherited by the next. This leads to huge problems when using any of the following:
Setting the |
Here's my overview of why the Tracker Name setting is risky: https://www.simoahava.com/gtm-tips/be-careful-with-the-tracker-name-setting/ As you can see, GTM itself discourages with a very visible warning from setting Tracker Name. |
Hi, @sahava , sorry I don't know why, but when I follow your solution in this article, I also have some wrong |
Then the reason is elsewhere. From GA's POV, both setting the Typical mistakes are having the Neither David's or my solution protects the campaign against things like page reloads (as they preserve the referrer but reset the URL) or browser's back-forward cache. I recommend setting the |
@sahava Thanks, I noticed that google suggest Do not update the document location, maybe I have encountered some special situations and must use this setting. |
That link is about setting up Google Analytics tracking with the analytics.js snippet (non-GTM). What it basically means is that if a unified tracker name is used then you should never update the But the problem is that analytics.js by default works differently from GTM, as I've explained above. GTM creates a single tracker for every hit, and that's why the |
@sahava After another test, I found the problem is |
More detail : nuxt/nuxt#6366
The text was updated successfully, but these errors were encountered: