Copy link to clipboard
Copied
I know there are many forums about adding the Google Analytics code to the <head>. My question is, do I add it to my Master pages or my Layout Pages? I noticed that if I add it to my Master Pages, then I go to Page Properties on my Layout Pages and the <head> section is blank. Do I add it twice?
you add it once... be that head on master or page or even html code.
adding it more that once does no good and may even count against you sometimes but the design (widgets, blogs and such) may use code that gets in the way of Google Analytics code so that is why you have different options as to how and where you place it in your site.
Copy link to clipboard
Copied
As far as I know it is better to add it only to the pages.
But – there might be widgets that "allow" to add it to master as well.
So, it depends .
Best Regards,
Uwe
Copy link to clipboard
Copied
You could read also here: Re: Where do I paste my tracking code from google analytics?
It was 2012, but don`t think, there changed too much till then.
Uwe
Copy link to clipboard
Copied
Why do you want to add it to the head html?
What i do is go to object > insert html
Paste your analytics code there.
Copy link to clipboard
Copied
you add it once... be that head on master or page or even html code.
adding it more that once does no good and may even count against you sometimes but the design (widgets, blogs and such) may use code that gets in the way of Google Analytics code so that is why you have different options as to how and where you place it in your site.