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.

  • 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

Click Element “contains” not working in Google Tag Manager

Have you ever set up a trigger using the Click element and Google Tag Manager, tested your tag, and found that it wasn’t working? You double-check that you’ve followed all the right logic, but it’s still giving you issues! Clearly, this must be a bug in GTM, right? Well, before you drive yourself crazy, let […]
Julius Fedorovicius
In Google Tag Manager Tips

Massive List of 60+ Custom JavaScript Snippets for Google Tag Manager

Updated: September 9th, 2024 In 2016, when this blog saw the daylight, my vision was (and still is) to make Analytics Mania No.1 place to find Google Tag Manager resources. Yes, I know it’s next to impossible to surpass Simo’s blog, but hey, let me dream big 🙂 As a result, the library of GTM recipes […]
Julius Fedorovicius
In Google Tag Manager Tips Resources

Track Affiliate Sales with Google Tag Manager and Google Analytics 4

Updated: August 5th, 2024 In one of my previous blog posts, I shared how to track affiliate link clicks with Google Tag Manager, which is helpful if you use affiliate links to promote a product on an external site and want to track all outbound affiliate link clicks from your site to that site. But […]
Julius Fedorovicius
In Google Analytics Tips Google Tag Manager Tips

Get More Data About a User with JavaScript Variable

In one of my previous blog posts, I’ve explained what is JavaScript variable in Google Tag Manager and how to use it. This time, I thought I’d give you more examples of where you can apply it. Currently, my courses are hosted on Teachable. I decided that I didn’t want to spend my time building and […]
Julius Fedorovicius
In Google Tag Manager Tips

Track Many Forms with One Thank You Page with Google Tag Manager

Updated: March 6th, 2024 Here’s a situation: you want to track form submissions on a website. There are multiple forms, and they all redirect the visitor to the same “Thank you” page. The built-in Form Submission trigger in GTM is not working; thus, you could try implementing the Thank you page tracking method. But how […]
Julius Fedorovicius
In Google Analytics Tips Google Tag Manager Tips

Twitter Conversion Tracking with Google Tag Manager

Updated: March 5th, 2024 If you’re already using Twitter (X) as a marketing tool, you want to measure the results, right? You have multiple options here – remarketing, X conversion tracking, etc. However, everything takes time to implement – you send an email with the requirements to the developer on what should be tracked, and […]
Julius Fedorovicius
In Google Tag Manager Tips

28 Google Tag Manager Debugging and Testing Tips

Updated: March 1st, 2024 Google Tag Manager debugging is an art of its own. Checking the Preview and Debug mode to see whether the tag successfully fired is just the tip of the iceberg. You need to follow many more things/techniques to ensure that everything is working correctly (or just to find the reason that […]
Julius Fedorovicius
In Google Tag Manager Tips

Track element visibility based on text with Google Tag Manager

Element Visibility trigger in Google Tag Manager enables you to track elements when they appear on a screen, which is really cool. Even though I still feel a teeny tiny grudge (about the situation when I published a blog post with a custom visibility listener and then Google released their much superior solution several weeks later), I’m […]
Julius Fedorovicius
In Google Tag Manager Tips

Enrich Form Submission Data with Google Tag Manager

Let’s say that you have a landing page with a signup form. All submissions are stored in the Customer Relationship Management system (CRM). This campaign has been running for a week, and you want to know who filled in the form and what information did they enter. But what about some additional data, e.g. where did […]
Julius Fedorovicius
In Form Tracking Google Tag Manager Tips

7 Must-have Google Tag Manager Custom Variables

In this blog post, I’ll show you my top 7 must-have Google Tag Manager custom variables that I use in the majority of my GTM containers. Please note that some screenshots show an older version of the Google Tag Manager preview mode, but the general principles are still relevant. #1. Page Title To be honest, […]
Julius Fedorovicius
In Google Tag Manager Tips
Page 6 of 12«‹45678›»
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
  • What is Direct Traffic in Google Analytics 4 and How to Fix it
  • Google Tag Manager Preview Mode Not Working? 26 Ways To Fix It.
  • Google Analytics 4 Events Not Showing Up in Reports?
Analytics Mania - Google Tag Manager and Google Analytics Blog | Privacy Policy
Manage Cookie Settings