Skip to main content
Solved

How to set options using GTM Template?

  • November 28, 2023
  • 1 reply
  • 377 views

I set up Amplitude using Google Tag Manager.
I know I can track UTM if I using WEB Attribution option.
I don’t know how to set ‘includeUtm’ True in Google Tag Manager

is there only way to set up using code? if yes, please let me know reference code to turn on ‘IncludeUtm’


 

Best answer by dangrainger

Hi @milleryoon - are you using the Amplitude template in GTM? If not, I’d advise this, it can be found in the template gallery and utilises Amplitude’s Browser SDK 2.0 (https://www.docs.developers.amplitude.com/data/sdks/browser-2/).

You’ll need to fire an “init” tag first (initialising Amplitude with your required settings) ahead of any “track” tags (which capture your events). You can also set user properties through “identify” tags.

In the init tag you’ll see the following by default…

For out-of-the-box capture of UTMs (and other marketing parameters such as fbclids, etc) you’ll need to leave “track marketing attribution” turned on. All the other settings are obviously up to you, you might not need all of them but that’ll be completely dependent on your business needs. The link above has all the info.

Hope that helps!

View original
Did this topic help you find an answer to your question?

1 reply

dangrainger
Expert
Forum|alt.badge.img+9
  • Expert
  • 203 replies
  • Answer
  • November 28, 2023

Hi @milleryoon - are you using the Amplitude template in GTM? If not, I’d advise this, it can be found in the template gallery and utilises Amplitude’s Browser SDK 2.0 (https://www.docs.developers.amplitude.com/data/sdks/browser-2/).

You’ll need to fire an “init” tag first (initialising Amplitude with your required settings) ahead of any “track” tags (which capture your events). You can also set user properties through “identify” tags.

In the init tag you’ll see the following by default…

For out-of-the-box capture of UTMs (and other marketing parameters such as fbclids, etc) you’ll need to leave “track marketing attribution” turned on. All the other settings are obviously up to you, you might not need all of them but that’ll be completely dependent on your business needs. The link above has all the info.

Hope that helps!


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings