Zen Cart Logo
Forums / All Other Contributions/Addons / Simple Google Analytics - Support

Simple Google Analytics - Support

Views: 451,123

Results 1,861 to 1,880 of 2,165
4 Jun 2012, 2:22 AM
#1861
amagad avatar

amagad

New Zenner

Join Date:
Jun 2012
Posts:
1
Plugin Contributions:
0

Simple Google Analytics - Support

I have the latest version of zencart and set up everything per the instructions along with some instructions only found in the forums (for the missing tab in the configuration drop down list). My only problem is not seeing historical data in google analytics. I only see the analytics work when I select the Real-Time Beta option. But everything else is just 0 or not logged. Does anyone have experience with this?

7 Jun 2012, 9:14 PM
#1862
lafaverp avatar

lafaverp

New Zenner

Join Date:
Sep 2011
Posts:
27
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Your install.txt reads: "NOTE 1: Follow these set of instructions ONLY if you have never had any of the Simple Google Analytics Modules installed."

What if you HAVE had a previous version of Simple Google Analytics Modules installed?

7 Jun 2012, 9:46 PM
#1863
lafaverp avatar

lafaverp

New Zenner

Join Date:
Sep 2011
Posts:
27
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Never mind. Dumb question.

12 Jun 2012, 5:25 AM
#1864
baron5 avatar

baron5

New Zenner

Join Date:
Jan 2012
Posts:
8
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have tried using this new_installation files for my zencart site (running v1.5) but google analytics does not detecting my tracking code. I'm certain i followed the steps correctly however the on_load_main.js does not exist in the folder you said it will in the text instructions, I did find it in the login folder but it did not have the line you specified anyway? my site is worldwideweb . i n n a t e s t r e e t w e a r . com.au have any ideas what i have done wrong here? I also have tried setting the tracking to asynchronous and also to its default in the admin settings which has not change anything, I also tried pasting the custom code from the analytic settings page into the custom tracking code area in GA settings.

14 Jun 2012, 1:19 PM
#1865
palagio avatar

palagio

New Zenner

Join Date:
Jan 2011
Posts:
43
Plugin Contributions:
0

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

  1. 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

14 Jun 2012, 1:29 PM
#1866
palagio avatar

palagio

New Zenner

Join Date:
Jan 2011
Posts:
43
Plugin Contributions:
0

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

17 Jun 2012, 4:42 AM
#1867
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

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:

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:

> 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:

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.

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

17 Jun 2012, 4:53 AM
#1868
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

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

17 Jun 2012, 7:42 PM
#1869
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

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

17 Jun 2012, 8:13 PM
#1870
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

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

17 Jun 2012, 10:08 PM
#1871
notageek avatar

notageek

Zen Follower

Join Date:
Mar 2009
Posts:
418
Plugin Contributions:
0

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 https://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

17 Jun 2012, 11:13 PM
#1872
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Simple Google Analytics - Support

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

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.

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.

5 Jul 2012, 9:28 PM
#1873
ladyhawke avatar

ladyhawke

New Zenner

Join Date:
Jul 2012
Posts:
1
Plugin Contributions:
0

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.

19 Jul 2012, 10:31 AM
#1874
diego_rock avatar

diego_rock

New Zenner

Join Date:
Jun 2012
Posts:
3
Plugin Contributions:
0

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...

21 Jul 2012, 8:18 AM
#1875
diego_rock avatar

diego_rock

New Zenner

Join Date:
Jun 2012
Posts:
3
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Now it works.
the problem is that after paying with paypal the user has to redirect to checkout success page otherways Analytics won't track the Purchase.

22 Jul 2012, 10:07 AM
#1876
kezerb avatar

kezerb

New Zenner

Join Date:
Sep 2008
Posts:
46
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Wow, the included installation file has to be the worst one I have seen!
Step 2

Make sure your body tag in /includes/templates/[your_template]/common/tpl_main_page.php
includes this code (if not see trouble shooting below it is not neccassary but an addition
to your template needs to be made):

Ok...what code?

22 Jul 2012, 10:31 AM
#1877
kezerb avatar

kezerb

New Zenner

Join Date:
Sep 2008
Posts:
46
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I give up. I cannot install this with the shoddy instructions!

22 Jul 2012, 7:54 PM
#1878
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

Re: Simple Google Analytics - Support

kezerb:

I give up. I cannot install this with the shoddy instructions! > Wow, the included installation file has to be the worst one I have seen!

Well, keep in mind that this mod is FREE so bashing the developer is not usually the easiest way to get support. I understand you're frustrated with the installation instruction but there's a better way to communicate that than how you're going about it. Obviously, there are 1,000s of site using this successfully (including ours) so the installation instruction cannot be that bad.

Which version of the mod are you trying to install? 1.2.5c? Which version of Zen Cart are you running? 1.3.9 or 1.5.0?

23 Jul 2012, 5:00 PM
#1879
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Simple Google Analytics - Support

kezerb:

Wow, the included installation file has to be the worst one I have seen!
Step 2

Make sure your body tag in /includes/templates/[your_template]/common/tpl_main_page.php
includes this code (if not see trouble shooting below it is not neccassary but an addition
to your template needs to be made):

Ok...what code?

kezerb:

I give up. I cannot install this with the shoddy instructions!

BlessIsaacola:

Well, keep in mind that this mod is FREE so bashing the developer is not usually the easiest way to get support. I understand you're frustrated with the installation instruction but there's a better way to communicate that than how you're going about it. Obviously, there are 1,000s of site using this successfully (including ours) so the installation instruction cannot be that bad.

Which version of the mod are you trying to install? 1.2.5c? Which version of Zen Cart are you running? 1.3.9 or 1.5.0?Here here!!! Absolutely not the right way to go about asking for help around here..:no: While the instructions are not the best, they aren't that unclear either.. As you pointed out 1000s of other site couldn't be running this add-on if they were COMPLETELY unclear..:smile:

That said to address kezerb's issue this should help:

At the bottom of /includes/templates/[your_template]/common/tpl_main_page.php copy and paste the following lines of code just before the </body> tag:

<!--bof- Google Analytics Code --> <?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { // Do nothing } else { require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php'); } ?> <!--eof- Google Analytics Code -->

If your template doesn't include this file simply copy it from the default_template folder to your template. (See Zen Cart FAQs on the template override system if you need an explanation why you need to do it this way)
27 Jul 2012, 11:55 PM
#1880
limitless avatar

limitless

Inactive

Join Date:
Jan 2012
Posts:
496
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Figured I would post this updated information here.

This might be important if you pay attention to google analytics bounce rate. I utilize several comparison shopping engines and some shoppers hit the one item, read the description, etc. and leave. While 'technically' a bounce, it isn't really.

Google has updated their analytics code to allow for better tracking in these types of situations.

Here is the article posted on Googles blog with the code.

The updated code is in BOLD.


Link to original article.

Tracking Adjusted Bounce Rate In Google Analytics

Wednesday, July 25, 2012 | 9:00 AM

Labels: Code and Configuration

Have you ever wondered how many visitors really pay attention to your website before exiting the page? Have you wondered how many of those “bounced” visitors will remember where they’ve been in future? How many of them are totally useless, how many are not?

There is a way to track this!

“Bounce rate” in Google Analytics is one of the key metrics that helps to evaluate the quality of your traffic. “Bounce” happens when the visitor exited the website right from the landing page, without going to any other page. This is a great indication on how relevant the content was for the user and how engaged they were with your website.

While working perfect for most websites, there are categories of sites where this metric is not enough.

Imagine you’re promoting a blog post that describes all the benefits of your company. The visitor might read the whole post and remember your company and products really well - they might even go to search for your product on one of the search engines straight away. However, since the visitor only looked at 1 page (exactly where the blog post is) they will be recorded as bounced visitor.

Another example if you have a description of the product right on the landing page, and your phone number on the same page. The visitor might study the description and call straight away - again, they will be recorded as a bounced visitor, as only 1 page was viewed. There are many more examples, and even traditional websites may benefit from the method described below as opposed to the standard bounce rate.

There is a solution to this - something that we call “Adjusted bounce rate”. You implement a small tweak to your Google Analytics code, which executes an event when a user has spent over a certain amount of time on the webpage. Depending on the website, the time can range from 10 seconds to few minutes - you should decide for yourself the amount of time you consider the user to be sufficiently engaged with your website or product.

Once the event is executed, the visitor is no longer counted as “bounce,” even though no additional pageview is recorded. This will mean your bounce rate will show users who have not spent a required “minimal time” on your website - the ones who have really bounced. Here is a modification to the Google Analytics code that you need to make (on the example of the latest, asynchronous code):

<script type="text/javascript"> var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-XXXXXXX-1']); _gaq.push(['_trackPageview']); ** setTimeout("_gaq.push(['_trackEvent', '15_seconds', 'read'])",15000);** (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); </script>

The setTimeout function is the one that does the trick here, and you can set it up to whatever delay you wish (in this case, it is 15 seconds).

Moreover, since the event is created once 15 seconds lapse, you can define this event as a goal in Google Analytics, and even import this goal as a conversion to AdWords, provided the conditions are met.

We hope this small fix will allow you to track and understand the users’ behavior and quality of the traffic coming to your website more accurately, and make more informed decisions. One thing website owners should be vary of, though, that not only the function may slow down the users' experience, even insignificantly, but will also increase the volume of hits your site sends to Google Analytics, which might bring your usage over the limit (currently set at 10 mln hits per month). As such, this fix should only be applied when necessary and justified by the concept of the website and the landing pages.

Posted by Alexey Petrov, Google Analytics Insights Team