Adding code to <head> : Master or Design Page or both

Community Beginner ,
Sep 15, 2017 Sep 15, 2017

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?

Views

278

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

LEGEND , Sep 15, 2017 Sep 15, 2017
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.

Likes

Translate

Translate
Adobe Community Professional ,
Sep 15, 2017 Sep 15, 2017

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Sep 15, 2017 Sep 15, 2017

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 15, 2017 Sep 15, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 15, 2017 Sep 15, 2017

Copy link to clipboard

Copied

LATEST

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines