What's the integration code for Google Analytics?

Julian Taverner shared this question 5 years ago
Answered

What is the integration code provided by Google Analytics supposed to look like? Is it just the Property ID? or the whole JS code??

Comments (3)

photo
1

Hi Victor, Thanks for the prompt reply. I noticed that you pointed to the "Traditional Syntax" for GA (the new one is https://developers.google.com/analyti...). Will this make a difference??


Forgive me if this is a silly question (I've not been using this product long), additionally I noticed that the that Usability tests all use JS to load each subsequent page (thereby the URL doesn't change) so in my test that I did, I only got one recorded result. So how would GA track the loading of additional pages? & could it record the events (i.e. each link clicked)??

photo
1

My mistake, you need to use the new one. As for the tracking of the navigation you don't have to worry, even though the navigation is handled by javascript, each screen has a different URL so GA works anyway.