Hello all, 

I want to add Google Analytics to the header of my code. Which files would I edit to do this?

I know that you can create a block in admincp to do this, but it's throwing errors, and I'd like to put it in the header to ensure all data is collected. 

Many thanks!

Paul

Be the first person to like this.
Vinny

Hi Paul,

You can add the feature by Adding New Block>then choose the type is HTML Code and page is Site-Wide to help the new block works properly.

Regards,

Vinny.

Hi Vinny, 

Not having the code at the top of the body or in the header is producing errors for me. 

This method you mention, i've tried and doesn't work.

Do you know how to edit the header code? Which files do I edit for this?

Many thanks, 

Paul

Be the first person to like this.

Hi Vinny, 

Not having the code at the top of the body or in the header is producing errors for me. 

This method you mention, i've tried and doesn't work.

Do you know how to edit the header code? Which files do I edit for this?

Many thanks, 

Paul

Be the first person to like this.

Hi Vinny, 

Not having the code at the top of the body or in the header is producing errors for me. 

This method you mention, i've tried and doesn't work.

Do you know how to edit the header code? Which files do I edit for this?

Many thanks, 

Paul

Be the first person to like this.

Hi Vinny, 

Not having the code at the top of the body or in the header is producing errors for me. 

This method you mention, i've tried and doesn't work.

Do you know how to edit the header code? Which files do I edit for this?

Many thanks, 

Paul

Be the first person to like this.

<p>Hi Vinny, </p>

<p>Not having the code at the top of the body or in the header is producing errors for me. </p>

<p>This method you mention, i've tried and doesn't work.</p>

<p>Do you know how to edit the header code? Which files do I edit for this?</p>

<p>Many thanks, </p>

<p>Paul</p>

Be the first person to like this.