About cookies on this site

We use cookies to collect and analyse information on site performance and usage, to provide social media features and to enhance and customise content and advertisements. Learn more

Cookie settings

About cookies on this site

Cookies used on the site are categorized and below you can read about each category and allow or deny some or all of them. Learn more

Necessary

Some cookies are required to provide core functionality. The website won't function properly without these cookies and they are enabled by default and cannot be disabled.

Preferences

Preference cookies enables the web site to remember information to customize how the web site looks or behaves for each user. This may include storing selected currency, region, language or color theme.

Analytical cookies

Analytical cookies help us improve our website by collecting and reporting information on its usage.

Marketing cookies

Marketing cookies are used to track visitors across websites to allow publishers to display relevant and engaging advertisements. By enabling marketing cookies, you grant permission for personalized advertising across various platforms.

🧐 Think you know Google Analytics? Test your knowledge with our FREE GA4 skill test šŸ†

Take the test
  • Courses
    • Paid courses
    • Course bundles
    • Free courses
  • Blog
  • Resources
    • Youtube channel
    • E-books and Guides
    • GTM Recipes
    • View All Resources
    • GTM Community
    • GA4 community
  • Services
  • About
    • About
    • Contact
  • Login
  • Courses
    • Paid courses
    • Course bundles
    • Free courses
  • Blog
  • Resources
    • Youtube channel
    • E-books and Guides
    • GTM Recipes
    • View All Resources
    • GTM Community
    • GA4 community
  • Services
  • About
    • About
    • Contact
  • Login

February 21, 2024

Two Link Click Events in Google Tag Manager Preview Mode

If you landed on this page, chances are that you are seeing two Link Click events in Google Tag Manager preview mode (even though there was just one click). In this blog post, I will explain why this happens and if this is a problem.

 

Why is happening?

The main reason why this happens these days is that you are probably using Google Tag Manager and Google Analytics 4 on the same website at the same time.

When you have at least oneĀ Just Links trigger enabled in your GTM container, you start seeingĀ Link ClickĀ events in the preview mode. That is normal.

The 2nd click appears when you have installed Google Analytics 4 AND you have File Download or Outbound Link click tracking in your Enhanced MeasurementĀ settings.

Subscribe and Get the Ebook - Mastering GA4 event tracking

How to check if link click tracking is enabled in Enhanced Measurement

Go to the admin panel of your Google Analytics 4 property. Then (in theĀ PropertyĀ column) clickĀ Data Streams. Select web data stream.

This will open the settings of your web data stream. Check if Enhanced Measurement is enabled. If yes, check ifĀ Outbound clicksĀ or File DownloadsĀ are enabled.

If yes, then the issue I describe in this blog post applies to you.

 

Is this issue a problem?

Not really. Even though you have two Link Click events in the preview mode, your GTM tags will fire only on those Link Clicks that are tracked by Google Tag Manager.

So what to do?

Honestly, nothing. GTM tags will fire only on those Data Layer events that were dispatched by Google Tag Manager.

I did some additional tests to prove my statement. Here’s what happens in the preview mode if Link Click is tracked by Google Tag Manager and the trigger conditions are met:

And here is that 2nd link click that was dispatched by Google Analytics 4 on the same event. The tag did not fire (even though trigger conditions were met).

Why? Because of this parameter in the Data Layer:

When the Link Click event is dispatched by Google Analytics 4, the parameter’s value is different from the event that was tracked by Google Tag Manager. So you’re safe.

You would have a problem if you had two Link Click events and the same GTM tag fired on both events. If that happened, it would mean that something else is causing an issue and it must be fixed.

If this article didn’t help you, please let me know in the comments. I might update the guide accordingly with additional tips.

Subscribe and Get the Ebook - Real Book Img - GTM for Beginners
Julius Fedorovicius
In Google Tag Manager Tips
2 COMMENTS
Erich
  • Aug 1 2022
  • Reply

Is there anything else that can cause two clicks and/or link clicks to fire into the preview console? I'm working with a site that hasn't implemented GA4 yet.

Fion
  • Dec 1 2022
  • Reply

Hi Julius,

I have a similar issue. I installed both UA and GA4 on the site and received two "link click" events in GTM preview despite only clicking the link once. I tested and discovered that one is from UA and the other is from GA4, and they have different two gtm.trigger parameters. The issue is that the same UA tag is fired on both of these "link click" events, resulting in double counting. Is there anything I can do about it? Thank you very much for your assistance!

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *


 

Hi, I'm Julius Fedorovicius and I'm here to help you learn Google Tag Manager and Google Analytics. Join thousands of other digital marketers and digital analysts in this exciting journey. Read more
Analytics Mania
  • Google Tag Manager Courses
  • Google Tag Manager Recipes
  • Google Tag Manager Resources
  • Google Tag Manager Community
  • Login to courses
Follow Analytics Mania
  • Subscribe to newsletter
Recent Posts
  • Scroll tracking with Google Analytics 4 (GA4 Scroll Depth Tracking)
  • Top 22 Benefits of Google Analytics 4
  • Google Tag Manager vs Google Analytics explained
Analytics Mania - Google Tag Manager and Google Analytics Blog | Privacy Policy
Manage Cookie Settings