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

Simple Google Analytics - Support

Views: 451,191

Results 1,041 to 1,060 of 2,165
2 Nov 2009, 5:08 AM
#1041
sevenhelmets avatar

sevenhelmets

New Zenner

Join Date:
Oct 2009
Location:
Tokyo, Japan
Posts:
52
Plugin Contributions:
0

Simple Google Analytics - Support

Hi Eric

Just wanted to say a huge thanks for the add-on, it's brilliant, and is working very well on my site.

One point I need help with is excluding dynamic IP addresses from the Google Filters - I don't want Google tracking internal (my) access. I tend to make one change to my site live, and then click refresh to see the changes, plus I'm navigating around the site CONSTANTLY, trying to test things out etc. It's probably skewing the analytics reports by a HUGE margin!

The suggestion by Google is to "add a page" to the site, and put in this line of code:

<body onLoad="javascript:pageTracker._setVar('test_value');">

In Zen Cart's case, adding a new "page" isn't that obvious. Would it be ok to alter one of the exsisting pages with the code, and reupload it?

I presume after activating this filter, it's only valid from configuration point, and is not retrospective is it?

2 Nov 2009, 3:00 PM
#1042
ben_b avatar

ben_b

New Zenner

Join Date:
Feb 2008
Posts:
31
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I've just set this up for the first time, and it now successfully say's 'waiting for data'.

I had to put the code into the header php page of my template design. Not a problem though is it?

It seems though, that since installing the addon (but before modifying any of my template files to actually add the code) I noticed that the site no longer displays any products on its welcome screen.

Any reason anyone can think of?? It shows the welcome message, products still show when I navigate to them, but not on the home page.

Please Help!

2 Nov 2009, 6:22 PM
#1043
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

rival904:

I know its been a few days, but I am still having problems.


Thanks man, any and all help is really appreciated

It says that tracking has not been installed on any of the sites. I confirmed that by going to each site and looking for myself.

Looks like you missed step 3 of the install process (you need to insert a line of code in your "tpl_main_page.php" file for the tracking to actually be displayed on the page.

Make sure you insert that code in the proper template as well (if using a custom one).

That should do it.

2 Nov 2009, 6:24 PM
#1044
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

bobthemolder:

Ditto. The "20 ways to increase zen cart conversions" from his site is pure gold. It's not a book you skim through, it's actually taken me a few days to get a few things done - but they're great suggestions. I'll be buying the book he has on the site, and probably using his affiliate link for my new PRWEB release.

Thanks to you both. It's always great to hear these comments. Makes contributing all that worth it!

Glad you found both resources helpful. I enjoyed creating them.

I've just opened a new online coaching program for zen cart users you might be interested in as well. As a member you get all the resources (books, templates additional add-ons etc... for free.)

You can learn more about that here:

http://www.ecommerceamplifier.com/ecommerce-amplifier-zen-cart-coaching-program/

2 Nov 2009, 6:28 PM
#1045
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Ben-B:

I've just set this up for the first time, and it now successfully say's 'waiting for data'.

I had to put the code into the header php page of my template design. Not a problem though is it?

It seems though, that since installing the addon (but before modifying any of my template files to actually add the code) I noticed that the site no longer displays any products on its welcome screen.

Any reason anyone can think of?? It shows the welcome message, products still show when I navigate to them, but not on the home page.

Please Help!

Sounds like you've done something when you tried to enter the code in the header.

You can add it there but the preferred method is to add it as instructed in Step 3 of the install (to the "tpl_main_page.php" file).

I would go back and look at what you altered to make sure you didn't inadvertently delete something on the template that caused your issue.

It should not cause the problems you mentioned and I've never seen that before (thousands of installs without this problem.)

Let me know if you get it corrected r if you need me to look at it further.

2 Nov 2009, 7:02 PM
#1046
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Sevenhelmets:

Hi Eric

Just wanted to say a huge thanks for the add-on, it's brilliant, and is working very well on my site.

One point I need help with is excluding dynamic IP addresses from the Google Filters - I don't want Google tracking internal (my) access. I tend to make one change to my site live, and then click refresh to see the changes, plus I'm navigating around the site CONSTANTLY, trying to test things out etc. It's probably skewing the analytics reports by a HUGE margin!

The suggestion by Google is to "add a page" to the site, and put in this line of code:

<body onLoad="javascript:pageTracker._setVar('test_value');"> ``` > > In Zen Cart's case, adding a new "page" isn't that obvious. Would it be ok to alter one of the exsisting pages with the code, and reupload it? > > I presume after activating this filter, it's only valid from configuration point, and is not retrospective is it?

Glad you like it. It has come in handy for many.

No need to do that at all (add pages, code etc...) to exclude yourself.

Here is the easiest way to exclude your own traffic from your analytics reports. go to the following link and follow the instructions. Very straight forward and easy to use. Works like a charm.

http://ecommerceamplifier.com/tools/gaexclude/

2 Nov 2009, 9:22 PM
#1047
rival904 avatar

rival904

New Zenner

Join Date:
Oct 2009
Posts:
32
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

It says that tracking has not been installed on any of the sites. I confirmed that by going to each site and looking for myself.

Looks like you missed step 3 of the install process (you need to insert a line of code in your "tpl_main_page.php" file for the tracking to actually be displayed on the page.

Make sure you insert that code in the proper template as well (if using a custom one).

That should do it.

I dont have a tpl_main_page, only a tpl_header and tpl_footer

2 Nov 2009, 9:33 PM
#1048
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

rival904:

I dont have a tpl_main_page, only a tpl_header and tpl_footerLike any other override, you need to copy the tpl_main_page from the default template folder, make the change as per the add-on instructions and copy the modified file back to your templates folder (NOT the default template folder)..

3 Nov 2009, 4:30 AM
#1049
rival904 avatar

rival904

New Zenner

Join Date:
Oct 2009
Posts:
32
Plugin Contributions:
0

Re: Simple Google Analytics - Support

DivaVocals:

Like any other override, you need to copy the tpl_main_page from the default template folder, make the change as per the add-on instructions and copy the modified file back to your templates folder (NOT the default template folder)..

I grabbed the file from the default template folder, made the change to it, then put it back into the includes/templates/currenttemplate/common

and it still isnt working, unless Im still doing this wrong.

3 Nov 2009, 4:34 AM
#1050
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

rival904:

I grabbed the file from the default template folder, made the change to it, then put it back into the includes/templates/currenttemplate/common

and it still isnt working, unless Im still doing this wrong.That's possible.. You might wanna post the contents of your tpl_main_page file here.. (Make sure you use the CODE or PHP tags when you post it:yes:) This mod is a pretty simple install..

3 Nov 2009, 12:47 PM
#1051
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

rival904:

I dont have a tpl_main_page, only a tpl_header and tpl_footer

You must have a tpl_main_page.php as all zen installs contain that file (it is one of the primary files that runs the entire cart.)

You'll find it in the includes/templates/[your template here]/common/ folder.

If you are using a custom template you need to take the tpl_main_page.php from the template_default directory and copy it into your overrides folder then alter as needed.

3 Nov 2009, 12:50 PM
#1052
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

rival904:

I grabbed the file from the default template folder, made the change to it, then put it back into the includes/templates/currenttemplate/common

and it still isnt working, unless Im still doing this wrong.

I went to your site and it says that the tracking is now installed (I also verified that by looking at your source code.)

You need to now go back into your Google Analytics accouunt and "verify" the tracking again (for that profile). That will send out Google to look and verify your tracking is installed.

Once they verify it (a few seconds) you'll see "waiting for data" ... and eventually "gathering data".

You're almost there.

3 Nov 2009, 6:52 PM
#1053
bobthemolder avatar

bobthemolder

Zen Follower

Join Date:
Nov 2008
Posts:
164
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

Glad you like it. It has come in handy for many.

No need to do that at all (add pages, code etc...) to exclude yourself.

Here is the easiest way to exclude your own traffic from your analytics reports. go to the following link and follow the instructions. Very straight forward and easy to use. Works like a charm.

http://ecommerceamplifier.com/tools/gaexclude/

:clap: :clap:

3 Nov 2009, 8:09 PM
#1054
rival904 avatar

rival904

New Zenner

Join Date:
Oct 2009
Posts:
32
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

I went to your site and it says that the tracking is now installed (I also verified that by looking at your source code.)

You need to now go back into your Google Analytics accouunt and "verify" the tracking again (for that profile). That will send out Google to look and verify your tracking is installed.

Once they verify it (a few seconds) you'll see "waiting for data" ... and eventually "gathering data".

You're almost there.

Yupp, it all seems to be working now, I guess ZenCart had to wait a bit to pull from that file? But either way, its all working now.

4 Nov 2009, 2:08 AM
#1055
sevenhelmets avatar

sevenhelmets

New Zenner

Join Date:
Oct 2009
Location:
Tokyo, Japan
Posts:
52
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

Glad you like it. It has come in handy for many.

No need to do that at all (add pages, code etc...) to exclude yourself.

Here is the easiest way to exclude your own traffic from your analytics reports. go to the following link and follow the instructions. Very straight forward and easy to use. Works like a charm.

http://ecommerceamplifier.com/tools/gaexclude/

Ah great! Thank you very much! Very VERY handy tool!

5 Nov 2009, 5:29 PM
#1056
bobthemolder avatar

bobthemolder

Zen Follower

Join Date:
Nov 2008
Posts:
164
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I remember this being mentioned somewhere - but couldn't find it through searches. I just had a customer pay through Paypal, and it didn't track the sale in GA e-commerce. Any way to get it to track the sale when customer pays with Paypal?

6 Nov 2009, 12:52 PM
#1057
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

bobthemolder:

I remember this being mentioned somewhere - but couldn't find it through searches. I just had a customer pay through Paypal, and it didn't track the sale in GA e-commerce. Any way to get it to track the sale when customer pays with Paypal?

As long as the customer is re-rerouted back to your site after the sale then they should be tracked even when paying with PayPal.

I work with a number of store owners who use PayPal in in one way shape or form on their sites and in all cases the sales are tracked ok.

Did you make sure you setup your return url in PayPal to go back to the zen cart site when the payment is complete? If not, you might want to look at doing that. The return url will then trigger the sale.

Hope that helps.

8 Nov 2009, 3:42 PM
#1058
tstanley avatar

tstanley

New Zenner

Join Date:
Oct 2008
Posts:
20
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have installed the version of the SGA Contribution v1.2.2 and using the ltest version of Zen Cart. I already had a Google Analytics Account along with Adwords. I use PayPal as my processor. I have a regular website were a "buy now" link takes you to my Zen Cart store. I am using a custom template and made the necessary modifications.

I clicked thru one of my ads and made a purchase thru my store without error. I did this twice yesterday and do not see it tracked.

I followed the directions according to the contribution. I placed the contents of both the Admin and Includes folders into the respective locations. Was I supposed to just place the folders themselves into the main directory of the store? Am I supposed to modify "checkout success" page? My web is https://www.blackoutez.com.

:frusty:

Thanks in advance

9 Nov 2009, 1:04 AM
#1059
bobthemolder avatar

bobthemolder

Zen Follower

Join Date:
Nov 2008
Posts:
164
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

As long as the customer is re-rerouted back to your site after the sale then they should be tracked even when paying with PayPal.

I work with a number of store owners who use PayPal in in one way shape or form on their sites and in all cases the sales are tracked ok.

Did you make sure you setup your return url in PayPal to go back to the zen cart site when the payment is complete? If not, you might want to look at doing that. The return url will then trigger the sale.

Hope that helps.
You're right, it did track the sale. I was too vague. It didn't track which products or how much the sale was.

9 Nov 2009, 10:50 PM
#1060
bassface avatar

bassface

New Zenner

Join Date:
Jan 2005
Location:
Aurora, CO USA
Posts:
71
Plugin Contributions:
1

Re: Simple Google Analytics - Support

I can't figure this out. I have set up GA and this mod, tracking is working but no purchase info is being tracked.
I ran a test order and verified that this code is at the bottom of the 'checkout_success' page.

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-1412881-2");
pageTracker._initData();
pageTracker._trackPageview();

pageTracker._addTrans(
"24",
"",
"91.88",
"3.40",
"0.00",
"Aurora",
"Colorado",
"United States"
);

pageTracker._addItem(
"24",
"180",
"Discovery",
"Wine of the Month Club Full Year",
"85.00",
"1"
);
pageTracker._trackTrans();</script>

I am trying to understand GA Funnels and Goals, but do I need to set a Goal and a Funnel for this transaction tracking to work?

One thing that has me very unsure is that I have my ZC installed in the /shop subdirectory, so in GA I set the site as:
http://www.mysite.com/shop/
and home page as index.php, index.php?mainpage=, index.php?mainpage=index

Any GA gurus know what I'm doing wrong here???:shocking: