Skip to main content
Question

GTM Template for Browser SDK 2.0 ?


Rune Andersen
Well-Versed
Forum|alt.badge.img+1

The current GTM Template are using “Marketing Analytics Browser SDK”.

But will there be a new (or update) to support the features of Browser SDK 2.0, including the new Default Tracking Events etc ?

8 replies

dangrainger
Expert
Forum|alt.badge.img+9

Hi @Rune Andersen. I’ve a feeling this could just be the documentation in the GTM tag template summary hasn’t been updated. You’ll see it states this…

 

However, some weeks ago, the name of the tag template was changed to what you see now in GTM (“Amplitude Analytics Browser SDK”). I updated the template in our GTM and am pretty convinced it’s using the Browser SDK 2.0 as values set in the Library property within Amplitude switched from “amplitude-js-gtm” to “amplitude-ts-gtm”….the giveaway being “ts” as the new Browser SDK I’m sure uses Typescript while the legacy one used Javascript.

Dan.


dangrainger
Expert
Forum|alt.badge.img+9

P.S. DET is default off in Browser SDK 2.0 so you’ll need to switch it on in your initialisation tag if you wish to use it.

 


Rune Andersen
Well-Versed
Forum|alt.badge.img+1
  • Author
  • Well-Versed
  • 17 replies
  • August 7, 2023

Thanks @dangrainger 
I looked into it and the template i use have been named “amplitude-ts-gtm” since we started in April  2023 with version 3.1.3 - and that was before Browser SDK 2.0

And in the initialisation tag there are no config option for Default Tracking. 
https://www.docs.developers.amplitude.com/data/sdks/browser-2/#configuration


So i’m not sure the GTM Template are update yet,
But some input from either @Esther Trapadoux  or @Ye Rin Cha on this question would be appreciated.


dangrainger
Expert
Forum|alt.badge.img+9

Yeah, I agree we need some clarity. Our traffic has been coming through on amplitude-ts-gtm/3.3.0 since May 24th.

Just found this doc: https://www.docs.developers.amplitude.com/data/sources/google-tag-manager/. If it’s up to date it suggests the GTM template tag is still on the Amplitude Marketing Analytics SDK.


Rune Andersen
Well-Versed
Forum|alt.badge.img+1
  • Author
  • Well-Versed
  • 17 replies
  • August 7, 2023

I have seen that. 
And also if you see under Client-side, they explicit note that Custom HTML is not recommended.
 

 


dangrainger
Expert
Forum|alt.badge.img+9

I dropped a line to support, seems the GTM template is to be upgraded to Browser SDK 2.0 pretty imminently…
 

 


dangrainger
Expert
Forum|alt.badge.img+9
  • Expert
  • 203 replies
  • August 17, 2023

Spotted this morning that Browser SDK 2.0 is being offered as an update in GTM to the Amplitude tag template :-)

 


Rune Andersen
Well-Versed
Forum|alt.badge.img+1
  • Author
  • Well-Versed
  • 17 replies
  • August 18, 2023

Thanks. I have tried it out and it seems to work.
Also nice with better “in-template” documentation and links to full documentation.
Would still wish there where a easy way to add additional properties to Session Start, and other [Amplitude] events.


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