Re: Simple Google Analytics - Support
Hi, I'm not sure whether anyone has already answered this question but I have been searching through the threads for hours and can't seem to find anything,
I'm also not sure which google analytics mod our original site developer uploaded to our store as I have also found forum threads about the a_berezin mod.
Now to our issue, hope someone can clarify for me,
I was speaking with google about our adwords acount this week and they told me our analytics code is in the wrong place!
That currently the code is placed just before the </body> tag,
and that a few weeks ago they changed this so that it should be placed
Quote:
2. Paste this code on your site
Copy the following code, then paste it onto every page that you want to track immediately before the closing </head> tag
url: http://www.clicknorder.co.uk
Can anyone clarify this for me?
I am wondering whether my original site developer had installed the a_berezin mod and now I need to uninstall and reinstall this new mod simple google analytics instead?
Thanks in advance
Re: Simple Google Analytics - Support
I just downloaded this simple google analytics mod and compared the files to what is currently on my site and it does seem to be the same, it looks like i have version 1.2.3 on my site and it seems that the latest is version 1.2.5
So can anyone answer my question regarding the positioning of the google analytics code?
I read some earlier posts by 'Cuda' who stated that he had wanted to amend the original mod by a_berezin so that the code is now placed just before the closing </body> tag instead of just before the closing </head> tags as this would mean your store is at risk of going down.
But now it seems that google ask you to place before the closing </head> tag??
Any help gratefully appreciated
thanks
Re: Simple Google Analytics - Support
Palagio,
It appears from a bit of web research that placement of the code may be either in the head or the body, just before the closing tag (</head> or </body>). I did see that Google is now stating:
Quote:
Once you find the code snippet, copy and paste it into your web page, just before the closing </head> tag*. If your website uses templates to generate pages, enter it just before the closing </head> tag in the file that contains the <head> section. (Most websites re-use one file for common content, so it's likely that you won't have to place the code snippet on every single page of your website.)
The placement is designed to avoid conflict with other scripts. Google Analytics states, after advising to place the code in the head section:
Quote:
For the best performance across all browsers we suggest you position other scripts in your site in one of these ways:
1. before the tracking code snippet in the <head> section of your HTML
2. after both the tracking code snippet and all page content (e.g. at the bottom of the HTML body)
Google then explains that the change from body to head sections is due to the code being now asynchronous:
Quote:
One of the main advantages of the asynchronous snippet is that you can position it at the top of the HTML document. This increases the likelihood that the tracking beacon will be sent before the user leaves the page. It is customary to place JavaScript code in the <head> section, and we recommend placing the snippet at the bottom of the <head> section for best performance.
Quote:
You'll notice one key difference between placements of the asynchronous tracking code and the traditional tracking snippet:
the asynchronous snippet is placed at the bottom of the <head> section of your HTML file or template.
the traditional snippet is placed at the bottom of your page, just before the closing </body> tag.
Because the asynchronous tracking snippet can execute without blocking other code or content, we recommend placing it at the bottom of the <head> section for the best tracking results.
Apparently, there are certain things that can conflict with Google Analytics and the recommendation to place the asynchronous code in the head is to avoid such conflicts, and also capitalize on the apparent speed of the asynchronous code to capture visits even if the visitor leaves before a "script-heavy" page is loaded, or before someone with a slow connection decides to leave the page.
I read somewhere that if the tracking code is placed in the body, more data is tracked even though some viewers who do not stay for the full loading of the page are not tracked.
The Simple Google Analytics version 1.2.3 placed the code in both head and body. It would be interesting to learn why the 1.2.5c eliminated the code in the head, and what the logic of the module actually is.
It looks like Google Analytics actually supports either placement, currently, from the above quotes, which are on the Google Analytics installation/placement instructions.
Notageek
Re: Simple Google Analytics - Support
I'm still trouble-shooting why my Google Analytics code disappeared shortly after I installed the Links Manager module by Clyde Jones (Deceased). Google Analytics continued tracking my second website.
Today I uninstalled the Links Manager Module, and reinstalled it. In the process, I found a couple of things were not working correctly in Admin, and that's when I realized that the most basic difference between both of my version 1.3.9h websites is that my karaoke site is bilingual (English and Spanish). I had hurriedly installed the Links Manager and had not taken the time to create the Spanish language files that would parallel the English files.
Today, I did the work of translating and adding the Spanish language equivalent files in Links Manager. I can see that things that did not work well before I did that are now working better, if not perfectly. There are a couple of problems with tables in PHPMyAdmin not showing the Spanish versions of the files.
It looks like I will be going to the Links Manager thread to see if someone can shed light on this situation. If I learn what is interfering with Simple Google Analytics, I will post the information here.
Thanks for the help so far.
Notageek
Re: Simple Google Analytics - Support
Hi again. My query to the Link-Manager forum was futile, as no one has mentioned failure of Google Analytics in all of those voluminous pages and I anticipate no reply. So far today I tried to debug my home page using Firefox with Firebug and Google Chrome's ga.debug.js Google Analytics debugger, but since the code I am using is asynchronous from Simple GA version 1.2.5c, it does not quite fit the debug instructions.
No errors are coming up. The view source just completely omits the Google Analytics script which does show up in my nonbilingual site.
I tried placing the code just before the </head> tag, and it still does not show up in the View Source, even though it is in both that position and also just before the </body> position which used to track.
I'll just keep plugging away, I guess. It seems kind of hopeless right now.
Notageek
Re: Simple Google Analytics - Support
Just to add to the mystery of the disappearing Google Analytics code on my bilingual website, on visiting Google Analytics yesterday I saw that I had 1 visitor from Bogota, Columbia on 6/12/12. That's the sole visitor recorded since GA stopped being tracked. Of course, my webstats show many visitors, and everytime I go online there are several people on the page.
Notageek
Re: Simple Google Analytics - Support
Hi. I had previously upgraded from 1.2.3 to 1.2.5c to try to regain my GA code when it stopped suddenly. Today I uninstalled Simple GA and performed a new installation, and now I can see the script where it should be at the bottom of the includes/templates/mytemplate/common/tpl_main_page.php, when I "view source" on right click of the page.
I feel sure it will start tracking again, as nothing has been changed in www.google.analytics.com, which has always said it is tracking.
On comparing the 1.2.5c files with the 1.2.3 files, there are 2 items that I did not have installed: the jscript folder and the jscript_google_analytics.php file within that folder. Otherwise, the file structure was the same.
I did need to change the TYPE=MyISAM to ENGINE=MyISAM in the googleanalytics_INSTALL.sql, because that language has been changed as of PHP 5.1.
I hope my troubles have benefitted someone.
Notageek
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
notageek
Hi. I had previously upgraded from 1.2.3 to 1.2.5c to try to regain my GA code when it stopped suddenly. Today I uninstalled Simple GA and performed a new installation, and now I can see the script where it should be at the bottom of the includes/templates/mytemplate/common/tpl_main_page.php, when I "view source" on right click of the page.
I feel sure it will start tracking again, as nothing has been changed in
www.google.analytics.com, which has always said it is tracking.
On comparing the 1.2.5c files with the 1.2.3 files, there are 2 items that I did not have installed: the jscript folder and the jscript_google_analytics.php file within that folder. Otherwise, the file structure was the same.
I did need to change the TYPE=MyISAM to ENGINE=MyISAM in the googleanalytics_INSTALL.sql, because that language has been changed as of PHP 5.1.
I hope my troubles have benefitted someone.
Notageek
Quote:
On comparing the 1.2.5c files with the 1.2.3 files, there are 2 items that I did not have installed: the jscript folder and the jscript_google_analytics.php file within that folder. Otherwise, the file structure was the same.
No wonder it didn't work and show up on your page. Always make sure all files uploaded correctly.
Quote:
I did need to change the TYPE=MyISAM to ENGINE=MyISAM in the googleanalytics_INSTALL.sql, because that language has been changed as of PHP 5.1.
The MyISAM in googleanalytics_INSTALL.sql in version 1.2.5c the type will default to what ever =MyISAM your sever is running. I left it blank on purpose to do that. That was change back in March, 2012.
Re: Simple Google Analytics - Support
Can someone please help me. I've been struggling with installing this addon for a couple days now. I've tried to read the instructions and follow them and figure things out on my own but I am not getting anywhere.
I think there is an obvious step I am missing or I have assumed something incorrectly. I have a new website for a college class I am setting up. I am trying to install Google Analytics using this addon, but apparently I am making a bit of a mess of things.
Which directory should I be installing from? I have the entire unzipped package sitting in my /zencart directory. Should I have uploaded it to the template directory? I'm somewhat lost on where this should be at on my server.
My admin directory is named adminurrhtcqq so i changed the file name from "admin" to "adminurrhtcqq"
My template is "classic" but it seems to have only a color of green for the default temple. I tried running the SQL using both temple names.
Nothing seems to happen, at least when I look at the admin configuration menu in the zencard admin tool, the google analytics does not appear as an option.
If one of you guys could help me I would really appreciate it.
Re: Simple Google Analytics - Support
Hi,
I installed this module and almost everything works.
E-commerce tracking records just sales payed with bank transfer.
I also have Paypal Payment and sales payed with paypal don't work.
I think the reason is that customer makes the transaction on paypal and not on my website...
I searched around in many threads and tutorials and I've seen somebody to edit two files:
includes/templates/template_default/template/tpl_checkout_success_default.php
includes/templates/custom_template/template/tpl_checkout_confirmation_default.php
Is this Solution compatible with Simple Google Analytics Module ?
Help me please...