Shape 5

Joomla Templates => Hexicon Gamer - Club => : lmorhac February 10, 2012, 03:21:04 PM



: Google analytics inside vertex
: lmorhac February 10, 2012, 03:21:04 PM
I was about to insert google analytics code into index.php when I noticed this can be done by specifying a script within the vertex admin area under general.

I'm not having much luck with it. I have tried two approaches:
1.
pasted the script into the field directly, but it got truncated.

2.
I created a scrip x4i_ganalytics.js and copied it into the same directory on the server as index.php (/templates/hexicon_gamer).

when I inspect the source of the main page, I see following:
<!-- Additional scripts to load just before closing body tag -->
   x4i_ganalytics.js    </div>
 
<!-- End pc version --> 
What is the correct procedure for doing this?

Thanks.


: Re: Google analytics inside vertex
: mikek February 10, 2012, 05:27:15 PM
Hello,

You should be able to just paste it right in the code box in the template configuration. If it's not working for you, then you can insert it directly into the template's index.php, that's all the code is doing anyway.