• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

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

362

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.

Votes

Translate

Translate
LEGEND ,
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

Votes

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

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

Votes

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.

Votes

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.

Votes

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