Shape 5

Joomla Templates => Big Picture - Club => : alexv123 March 11, 2014, 03:13:52 PM



: Bug? Google Analytics script not working
: alexv123 March 11, 2014, 03:13:52 PM
Dear support team,

We pasted the Google Analytics tracking code to the Template Manager>General> SCRIPT TO BE APPENDED TO THE BOTTOM OF INDEX.PHP SUCH AS GOOGLE ANALYTICS field.

However it does not show up on home page or content pages.

Is this a known bug? I have seen this issue in forums of other templates as well.

What is the solution (apart from pasting it directly in the index.php?)?

Many thanks,
Alex


: Re: Bug? Google Analytics script not working
: mikenicoll March 11, 2014, 04:45:31 PM
Hello,

That would most likely be an issue with the script. Try adding it directly in the index.php before the closing </body> tag to verify the script is functional. That is all the Template Manager is doing is just making that automatic.

-Mike


: Re: Bug? Google Analytics script not working
: alexv123 March 12, 2014, 02:29:23 AM
HI Mike,

When I add the tracking code in the template's index.php, it is visible in the page source.

I will monitor if it is functional and report back to you.

Many thanks,
Alex


: Re: Bug? Google Analytics script not working
: alexv123 March 12, 2014, 03:25:07 PM
Hi again Mike,

I can now report that when I add the tracking code in the template's index.php, it is visible in the page source AND Google Analytics is receiving data.

So the tracking code is correct. have you come across another reason why the tracking code is not added by the template manager?

Many thanks,
Arend


: Re: Bug? Google Analytics script not working
: mikenicoll March 12, 2014, 04:51:32 PM
Hello,

I tested it on my copy and it was working properly. Adding it via the index.php directly should be fine as well and will make it more secure to not have users being able to edit that via the back end.

-Mike


: Re: Bug? Google Analytics script not working
: alexv123 March 13, 2014, 09:54:20 AM
Hi Mike,

OK, we will leave it this way for now. I will ask a develop to check and debug the site and when it is clear why the option through the template manager is not working we will post the info and hopefully solution here, for other users.

Many thanks,
Alex


: Re: Bug? Google Analytics script not working
: mikenicoll March 13, 2014, 05:48:46 PM
NP

-Mike