Forum Support

Shape 5
March 29, 2024, 07:36:51 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Bug? Google Analytics script not working  (Read 543 times)
alexv123
Jr. Member
**
Offline Offline

Posts: 43



« on: 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
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #1 on: 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
Logged

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
alexv123
Jr. Member
**
Offline Offline

Posts: 43



« Reply #2 on: 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
Logged
alexv123
Jr. Member
**
Offline Offline

Posts: 43



« Reply #3 on: 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
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #4 on: 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
Logged

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
alexv123
Jr. Member
**
Offline Offline

Posts: 43



« Reply #5 on: 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
Logged
mikenicoll
Global Moderator
*****
Offline Offline

Posts: 20162



WWW
« Reply #6 on: March 13, 2014, 05:48:46 PM »

NP

-Mike
Logged

Mike Nicoll
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.