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

Simple Google Analytics - Support

Views: 451,073

Results 1,881 to 1,900 of 2,165
28 Jul 2012, 12:04 AM
#1881
limitless avatar

limitless

Inactive

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

Simple Google Analytics - Support

In regards to the above article, It looks like it should be added to /includes/templates/<my template>/googleanalytics/google_analytics.php around line 107/108

_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);
** setTimeout("_gaq.push(['_trackEvent', '15_seconds', 'read'])",15000);**

but this has not been tested yet.

28 Jul 2012, 3:12 AM
#1882
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

Limitless... Awesome data.. thanks for sharing!!

10 Aug 2012, 2:53 PM
#1883
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi,

Thank you for this module. I have installed and configured (a new install - never installed on our site before), but I have some questions that I can't find answers to in this thread. I'm sure they must be here somewhere but I'm struggling to find them.

Very simply, we want to track the cart value of each conversion. As I understand it, this module will allow us to do this.

I have stripped out all our old analytics code which was in html_header.php (this was where we put it prior to installing this module).
I have stripped out all our old analytics conversion tracking code which was in define_checkout_success.php (this was where we put it prior to installing this module)
I have added the code for this module as instructed to tpl_main_page.php

In the config section I have ...

  1. added our Analytics Account ID
  2. activated AdWords tracking
  3. added our Google AdWords Conversion Tracking Number

Questions...

  1. Google Tracking Code Type To Use ... which type do we use to best achieve what we want to do (that is, record the cart value)?
  2. Add Custom Tracking After Main Analytics Code? ... do I need to enter something here to get AdWords to capture the cart value?
  3. Is there anything else we need to do to be able to record the cart value of each conversion? For example, at present in our Google AdWords account under Tools & Analysis > Conversions, we have defined a conversion type for 'value of order' and entered a "Conversion value" which is currently set to "order_total" so Google knows what it is looking for.

We are using 1.3.9h

Thanks

10 Aug 2012, 3:56 PM
#1884
dunk avatar

dunk

Zen Follower

Join Date:
Dec 2007
Location:
London
Posts:
184
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Sorry I should add that I'm asking on behalf of our marketing agency. They have just taken over management of our AdWords campaigns but need to know what the zen cart "cart value" identifier is so they can properly track the value of each conversion. They thought it was "order_total" but we're not sure.

15 Aug 2012, 5:16 PM
#1885
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

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?

I am the original developer. The latest mod here was updated with new instructions etc... by another zen cart contributor. I have been in the process of adding new features to the module that extend it even further, and am also updating the install instructions to be more clear. It seems to have got confusing for a few with the new setup that was contributed.

In any event, the new version is going to be 1.2.6 and it has been tested on a number of sites. Working well (with new functionality for Google Adwords Remarketing, Google Trusted Stores, and early stages for Google Experiments (formerly Google Website Optimizer.)

Just finishing up the instructions etc.. here and hope to have this newest version uploaded within the week. Then I'll be back to support this mod again here (been quite busy the last year or so.)

15 Aug 2012, 5:20 PM
#1886
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

Dunk:

Sorry I should add that I'm asking on behalf of our marketing agency. They have just taken over management of our AdWords campaigns but need to know what the zen cart "cart value" identifier is so they can properly track the value of each conversion. They thought it was "order_total" but we're not sure.

I manage a lot of AdWords campaigns for people as well, and this module will 'out of the box' track all conversion values (within Adwords) without flaw. All you have to do is turn on "conversion tracking" from the admin of your cart and add the "Adwords ID" (provided by Adwords when you click to 'get the conversion code') into the space provided (again, in the admin of your cart.)

There should be no need for them to know the order_total etc... as the module does that all dynamically for them. All they need to do is look at the reports provided by AdWords (if you want data in your Analytics on Adwords you need to link to the two accounts together within your GA end) to see what converts and what doesn't.

Let me know if that helps.

16 Aug 2012, 2:41 AM
#1887
cstahlhut avatar

cstahlhut

New Zenner

Join Date:
Aug 2012
Posts:
6
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi,

I installed this mod into https://www.recleads.com

It's showing up on the view source and when I go in to Google Analytics live version I can see when I'm on the website. When I go to reporting however it says no people have visited the site.. any insight would be appreciated!

Thanks

16 Aug 2012, 12:43 PM
#1888
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

Google does not update in real time (except for the "real time beta" reports which only show you basics of who is on site.) To get actual reporting you need to wait a bit for them to update. They typically update a few times a day and then you should see the visit in your actual stats.

16 Aug 2012, 1:04 PM
#1889
cstahlhut avatar

cstahlhut

New Zenner

Join Date:
Aug 2012
Posts:
6
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

Google does not update in real time (except for the "real time beta" reports which only show you basics of who is on site.) To get actual reporting you need to wait a bit for them to update. They typically update a few times a day and then you should see the visit in your actual stats.

Thanks for your assistance, I installed it 2 days ago and it still says no visitors :no:

16 Aug 2012, 1:07 PM
#1890
cstahlhut avatar

cstahlhut

New Zenner

Join Date:
Aug 2012
Posts:
6
Plugin Contributions:
0

Re: Simple Google Analytics - Support

My Tracking Status says "Receiving Data" too so I assume it's supposed to be working...

16 Aug 2012, 3:57 PM
#1891
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

that does mean it is working. Might just take time for Google's side to pick it up. I've heard of this before with others.

Make sure you have the exact same Analytics ID in the Admin of Zen as you see in your Analytics account. If you have a different one, the traffic may be going into that account instead.

16 Aug 2012, 11:20 PM
#1892
cstahlhut avatar

cstahlhut

New Zenner

Join Date:
Aug 2012
Posts:
6
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

that does mean it is working. Might just take time for Google's side to pick it up. I've heard of this before with others.

You were right it's kicked in! :yes::yes: Thanks for your help :laugh:

21 Aug 2012, 4:52 PM
#1893
savvonet avatar

savvonet

New Zenner

Join Date:
Aug 2010
Posts:
10
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi all, I have a strange problem with this module.
Everything was perfect, I've this mod installed for years, now on a 1.3.8, always updated with no problem at all.

Since the august 1, all my website is running fine, except the order confirm page. It hungs on "Your order is been processed, Please wait" for about 7 minutes, then all goes right, the order is correct and analytics register the conversion as normal. But you know, many customers press the back button, or close the page after some minutes, and replace orders again and again until they notice that many confirm email are yet in their mailbox.

Someone has noticed this issue? Ideas..?

Thanks!

21 Aug 2012, 5:07 PM
#1894
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Savvonet:

Hi all, I have a strange problem with this module.
Everything was perfect, I've this mod installed for years, now on a 1.3.8, always updated with no problem at all.

Since the august 1, all my website is running fine, except the order confirm page. It hungs on "Your order is been processed, Please wait" for about 7 minutes, then all goes right, the order is correct and analytics register the conversion as normal. But you know, many customers press the back button, or close the page after some minutes, and replace orders again and again until they notice that many confirm email are yet in their mailbox.

Someone has noticed this issue? Ideas..?

Thanks!

What other tracking code do you have on your Order Success page? I do not seen this problem on any sites I manage.

21 Aug 2012, 8:16 PM
#1895
2geckos avatar

2geckos

New Zenner

Join Date:
Aug 2012
Location:
Casa Grande, Arizona
Posts:
2
Plugin Contributions:
0

Re: Simple Google Analytics - Support

The instructions say to put the code before the </body> tag.

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

This was the case a few years ago but these are the current instructions.
Copy the following code, then paste it onto every page you want to track immediately before the closing </head> tag.

I've installed per the instructions but wondered about the discrepancy.
Thanks

21 Aug 2012, 11:01 PM
#1896
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

2Geckos:

The instructions say to put the code before the </body> tag.

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

This was the case a few years ago but these are the current instructions.
Copy the following code, then paste it onto every page you want to track immediately before the closing </head> tag.

I've installed per the instructions but wondered about the discrepancy.
ThanksIf you look a few posts back you will see that it's been acknowledged that the instructions in the currently available version has a few issues/discrenpancies.. you may ignore the erroneous instructions.. The only "every page" you want to copy the code into is the "/includes/templates/[your_template]/common/tpl_main_page.php".

23 Aug 2012, 4:16 AM
#1897
menappi avatar

menappi

New Zenner

Join Date:
Oct 2007
Posts:
63
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Ran into a major problem with my install (installed 1.2.5.c on 1.5), it's not receiving tracking and my website won't load now. I get a blank page, favicon and title load, but nothing else. WTF

I have to agree though, I've never had a problem installing any modules and the writeup on this could be a lot better.

I uploaded all the correct files, renamed all the directories to match my admin and template. CHECK. At the bottom of tpl_main_page, before the closing body tag, I added the code. CHECK. Ran the SQL Install code, no errors, said everything went fine. I see the option now in my config. This is where I get confused though-what is this mention about a 'ga.js' file? This is directly after the SQL step. I looked and I don't even have that file in question and the only file in my checkout success folder is a header file, so what is this about?

So I pretty much did everything correctly and now my site is down. What do i do???

24 Aug 2012, 4:16 PM
#1898
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

This sounds like an issue with something else on your site that is affecting the order process or the order confirmation page. The module should not have this type of effect at all.

24 Aug 2012, 4:18 PM
#1899
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

Follow the old instructions. They are the correct ones.

This module was updated recently by another zenner, and during that transition, the instructions were re-written. I am in the process of releasing an new version with added updates and will be reverting the instructions to a more clear set as well.

Do not post the code to every page on the site. That is incorrect.

24 Aug 2012, 4:21 PM
#1900
econcepts avatar

econcepts

Totally Zenned

Join Date:
Dec 2005
Posts:
1,505
Plugin Contributions:
2

Re: Simple Google Analytics - Support

A blank page means you have an error in your PHP somewhere. Typically this is caused when trying to insert any of the lines needed to run the module and on in removes or replaces code by accident. The new instructions are very unclear and are being re-written in my next release to go back to the previous way.

For the time being, I would revert your changes to the previous files, then start again following the instructions in the old version (just before the 1.5 upgrade version was uploaded.) You will need to register the pages with the 1.5 admin, but the instructions on what you need to do are more clear with the older install.

Let me know if that helps.