How to pass UTM Parameters from landing page to all the pages – FAQ

How to pass UTM parameters from the landing page to other pages?

This is question and answer is part of the GA, GTM, GA4 FAQ series

Question:

Every time somebody arrives on our landing page, we collect their gclid, utm_campaign, and utm_term. However, when they go on another page, this information gets lost and when they submit the Typeform on the other pages, all of these parameters are blank.
How can I fix that in order to get all of the gclids on each and every page?
Answer:
  1. Grab the UTM or any other query parameter you need from the landing pages using URL variable or custom JavaScript in Google Tag Manager.
  2. Store these variables in first-party cookies or local storage, again using Google Tag Manager, built-in variables it custom JavaScript code\
  3. Now, these parameters will be available on any page, tag, or trigger that you need them on.

The complete solution is covered in https://academy.optizent.com/courses/google-tag-manager-mastery course.

 

Check these videos

Custom JavaScript Variables in Google Tag Manager

Cookies v/s Local Storage v/s Session Storage

 

Learn and Master JavaScript, Google Tag Manager, and Google Analytics 4

 

Learn JavaScript for Google Tag Manager

If you want to master JavaScript for Google Tag Manager then check out the complete course for Marketers and Marketing Analysts to learn JavaScript. This course is focused on teaching you the fundamentals and applications in Google Tag Manager. Even though examples are in Google Tag Manager (GTM), you can use them for Adobe Analytics using Adobe Launch as well or any other marketing analytics tools.

Other Google Tag Manager posts that might like

Where to get more help with JavaScript, Google Analytics 4, and Google Tag Manager?

 

 

 

 

Leave a Reply

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