Google Analytics not working after update

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Mar 11, 2014 5:01 pm
Reply with quote
Report this post
Today i updated the template to the latest version, 3.11.
In this release there is a change in the google anyltics code position. It seems to be that google analytics is not working anymore now. I tried from several computers and browser, but no realtime information anymore. I check the template settings, but the GA code is still there.

Can anyone help? http://www.waterpijp-bong.nl
User avatar
Expert Boarder

GK User
Tue Mar 11, 2014 5:47 pm
Reply with quote
Report this post
Please check if in template settings google analytics is enabled and you have correct analytics ID entered in the settings.
User avatar
Moderator

GK User
Wed Mar 12, 2014 12:02 pm
Reply with quote
Report this post
The Google Analytics is enabled in template, meaning, the GA-code rule has been added. Is there another setting to 'enable' it, besides just adding a rule?
The ID is correct.

For the information: first I was using this template. After that I copied and renamed the template to use that one. Now I reinstalled the template again and using it with the original name. The template has been installed twice somehow, with the same template ID. Is this maybed causing the problem?

Image
User avatar
Expert Boarder

GK User
Wed Mar 12, 2014 3:14 pm
Reply with quote
Report this post
First of all - with use of ftp client please remove old template folder from server (back it up locally first)). Then if GA will still not work, please write back to me.
User avatar
Moderator

GK User
Fri Mar 21, 2014 5:14 pm
Reply with quote
Report this post
Hi, I just deleted the template folder with FTP, but still Google Analytics isn't working.
In the template manager I couldn't delete the old template though.
User avatar
Expert Boarder

GK User
Fri Mar 21, 2014 5:15 pm
Reply with quote
Report this post
And there are two the samen Bike Store templates installed, as you can see on the screenshot
User avatar
Expert Boarder

GK User
Fri Mar 21, 2014 6:41 pm
Reply with quote
Report this post
No screenshot ;).
My advice... Back them up first, now change template to beeze and try uninstall any of those 2 copies. If it will fail, remove files via ftp, go to template selector and check if both of them dissapeared, and install template again via joomla template installation process.
After that check again for google analytics settings in template settings.
User avatar
Moderator

GK User
Fri Mar 21, 2014 8:04 pm
Reply with quote
Report this post
I meant the screenshot in my previous post ;)

But I uninstalled the template and reinstalled it. The strange thing is, that it again appears twice. Now with ID no 14.

Image
User avatar
Expert Boarder

GK User
Fri Mar 21, 2014 8:19 pm
Reply with quote
Report this post
Oh, and still no Google Analytics.
When searching in the browser page source, I see no ga.js in the source code. Thought it meant to be there?
User avatar
Expert Boarder

GK User
Mon Mar 24, 2014 7:54 am
Reply with quote
Report this post
Please send me a PM with:
1. URL to your website
2. login and password of user with admin/super-admin privileges (please create one for me)
3. ftp data (host, user, password)
4. link to this thread
User avatar
Moderator

GK User
Sun Mar 30, 2014 11:17 am
Reply with quote
Report this post
I have fixed your site and google analytics works now.
For the future - never, ever edit template core files. I had to take care for all those changes made to css'es etc. Use override.css instead.
User avatar
Moderator

GK User
Sun Mar 30, 2014 11:21 am
Reply with quote
Report this post
The version you currently have working on your site is either current, or old. It looks like a mixture of old and new files - this way you would not get far. I would advice to start with clean, freshly downloaded template and set all settings again, and also not touch template core css files, but use override.css as I have adviced.
User avatar
Moderator

GK User
Wed Apr 02, 2014 11:44 am
Reply with quote
Report this post
But that is just what I did, what is causing the problem. I installed a fresh template. (the old template I used, is shown as a separate template, with other name and other files). Wen I installed this freshy downloaded template, it installs itself twice, with the same ID number.

I will try again, but I think again there will be two records (with ID 15 now I suppose). Or do you think that doesn't matter?

Which files are mixup? Only template files, or also virtuemart / joomla core files?
User avatar
Expert Boarder

GK User
Wed Apr 02, 2014 3:21 pm
Reply with quote
Report this post
Sorry but with merging I can't help you much.
What I would suggest is to completely remove current template (use extension manager and remove it from there), then install fresh template and configure it to your taste.
Then you can start bringing your changes back (I did it without any problems, but site looked bad so I have cleaned up template data and restored your files with small fix for GA.
User avatar
Moderator

GK User
Thu Apr 03, 2014 5:18 pm
Reply with quote
Report this post
Hi.

i've got the same problem (google analytics code dont' work).

i'm using the last version of the template.

can you suggest how correct the problem, please?

the url website: http://www.bmxolgiatecomasco.com

thanks!!!

Peter.
User avatar
Senior Boarder

GK User
Thu Apr 03, 2014 6:26 pm
Reply with quote
Report this post
Please send me a PM with:
1. URL to your website
2. login and password of user with admin/super-admin privileges (please create one for me)
3. ftp data (host, user, password)
4. link to this thread
User avatar
Moderator

GK User
Fri Apr 04, 2014 9:44 am
Reply with quote
Report this post
hi Cyberek.

first of all, thanks for your reply.

i'm sorry, but i cannot send you ftp access, because this site is into a shared server with only one userId and password.

would you mind tell me (if possible) what i've to control (and eventually modify) into the template's standard code?


thanks!


Cyberek wrote:Please send me a PM with:
1. URL to your website
2. login and password of user with admin/super-admin privileges (please create one for me)
3. ftp data (host, user, password)
4. link to this thread
User avatar
Senior Boarder

GK User
Fri Apr 04, 2014 3:28 pm
Reply with quote
Report this post
You need to check where in your template this line:
Code: Select all
echo $this->parent->social->googleAnalyticsParser()

is called and if it is not placed in an php if statement that is blocking it from running.
User avatar
Moderator

GK User
Sat Apr 05, 2014 3:45 pm
Reply with quote
Report this post
hi Cyberek.

i've searched and... the code you wrote is missing.

so, i compared with an old version of the template and i've found the solution.

into the file: layout/blocks/social.php

i've inserted your code

Code: Select all
<?php
   // put Google Analytics code
   echo $this->parent->social->googleAnalyticsParser();
?>


and... it works.
:-)

after a control into google's panel it seems to be working right.


problem solved!

thank you!!!
:-)
User avatar
Senior Boarder

GK User
Mon Apr 07, 2014 4:31 pm
Reply with quote
Report this post
That was the next thing I would advice. In previous example google code was in different place (Ie8 php conditional).
It's strange - I have checked current version of template and it has this part of code in correct place. Perhaps removing template manually and uploading manually unzipped template would help?
User avatar
Moderator

GK User
Wed Apr 09, 2014 5:27 pm
Reply with quote
Report this post
Hi Cyberek

Cyberek wrote:That was the next thing I would advice. In previous example google code was in different place (Ie8 php conditional).
It's strange - I have checked current version of template and it has this part of code in correct place. Perhaps removing template manually and uploading manually unzipped template would help?


i've just controlled again the old version and the current one.
both don't have ie8 php conditional. :-(

by the way, now the code is present with all browser (ie 8 and later, firefox, chrome, safari and opera),
using the code i wrote with your help, so... i think all may be ok.

thanks!!!


Peter.
User avatar
Senior Boarder

GK User
Thu Apr 10, 2014 6:46 am
Reply with quote
Report this post
@bluepeter - if it works, there is no point of breaking it again ;).
User avatar
Moderator


cron