gtm-module icon indicating copy to clipboard operation
gtm-module copied to clipboard

Utm parameters lost when coming from google ads

Open swaner opened this issue 3 years ago • 3 comments

Disclaimer: Not sure if this error comes from this package but have spent 4 days tracking this issue down and would really like to get some advice from someone who knows this package better.

The only way I can reproduce this is by clicking a live google ad so very hard to reproduce this in code-sandbox or similar.

  1. Click a real ad from the Google page result
  2. In google analytics real-time view, I can see the session created with the correct UTM tags (source=adwords, medium=cpc)
  3. Go to a normal nuxt-link to any other page
  4. In GA real-time in the traffic sources I can see that the session converts to medium: Organic and source: Google

Expected: The source would stick to adwords and medium cpc when navigating to a new page. Outcome: The session seems to be lost when navigating using nuxt-link. If I instead do a full page reload the session is working as expected (not lost).

The same behavior seems to apply when coming from facebook with utm parameters. The reason we noticed it was that the bounce rate was almost 100% and the session duration time way too low for our site (< 20 seconds) with 1 pageview.

When using GA directly without GTM everything works with the session, so it's either related to the configuration of GTM or this package.

swaner avatar Nov 30 '20 10:11 swaner

I'm experiencing the same issue...

RobinBertilsson avatar Nov 30 '20 15:11 RobinBertilsson

Maybe this will help (it solved for us the same problem). https://www.simoahava.com/gtm-tips/fix-rogue-referral-problem-single-page-sites/

I had the same problem. But in my case, the issue came from the hosting service. I'm using AWS Amplify. In case anyone is using the same service. The solution is to add a redirect to include all the parameters.

I set the redirect like this:

  • Source: /landingpage/<*>
  • Target: /landingpage/<*>
  • Type: 200 Rewrite

Hope it helps. There's a discussion about it here: https://github.com/aws-amplify/amplify-console/issues/97

rizkysyazuli avatar May 10 '21 04:05 rizkysyazuli