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

Simple Google Analytics - Support

Views: 451,190

Results 1,061 to 1,080 of 2,165
10 Nov 2009, 2:36 PM
#1061
econcepts avatar

econcepts

Totally Zenned

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

Simple Google Analytics - Support

tstanley:

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

Some thoughts to make sure you didn't miss anything:

  1. Did you turn on "Conversion Tracking" from within the Zen Cart admin and also enter your Adwords conversion tracking id?

  2. Did you turn on conversion tracking and copy the proper tracking id from the Adwords account? (You'll insert this tracking id into the Zen Cart admin under the "Conversion Tracking" text section.

  3. You do not need to alter the checkout success page etc... (my contribution automatically does that for you as long as you turn on the proper elements from within the Config section of the zen admin for SGA.)

  4. Have you setup a cookie on your computer to exclude your IP or address from the reports? If so your conversion won't track.

Let me know if that helps.

10 Nov 2009, 2:38 PM
#1062
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

bobthemolder:

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

To track the products and the amount of them you need to turn on Ecommerce Tracking (from within your Google Analytics Account).

My contribution automatically handles ecom tracking providing you have it turned on from within your GA account. You do this form under the "Profile" section of the site you wish to add.

10 Nov 2009, 2:43 PM
#1063
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

BassFace:

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:

You do NOT need to setup Goals or Funnels for Ecom transactions to work. They are handy to have but are a totally separate tracking feature provided by Google Analytics (triggered and based upon url usually).

It doesn't matter if you have your cart in a subdirectory or not as long as you setup your goals to point to the proper location (and then properly setup your funnels to do so as well.)

In  short though you do not need to set up those two in order for the transaction (ecom portion) to work.

**Here are two links that might help you figure out how to make it work:**


[Google Analytics Demystified: Part 5 Goal Tracking and Funnels](http://www.zencartoptimization.com/2007/08/16/google-analytics-demystified-part-5-goal-tracking-and-funnels/)


[Google Analytics Uncovered for Zen Cart](http://www.zencartoptimization.com/2007/08/15/now-available-google-analytics-uncovered-for-zen-cart-the-workbook/)
11 Nov 2009, 4:26 PM
#1064
bassface avatar

bassface

New Zenner

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

Re: Simple Google Analytics - Support

econcepts:

You do NOT need to setup Goals or Funnels for Ecom transactions to work. They are handy to have but are a totally separate tracking feature provided by Google Analytics (triggered and based upon url usually).

It doesn't matter if you have your cart in a subdirectory or not as long as you setup your goals to point to the proper location (and then properly setup your funnels to do so as well.)

In short though you do not need to set up those two in order for the transaction (ecom portion) to work.

Here are two links that might help you figure out how to make it work:

Google Analytics Demystified: Part 5 Goal Tracking and Funnels

Google Analytics Uncovered for Zen Cart

Thank you for those links. It has started tracking sales :clap:. Perhaps there is just a delay in the reports on the GA site?

11 Nov 2009, 7:13 PM
#1065
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Glad to see it's now working for you. :)

12 Nov 2009, 8:14 PM
#1066
unicorn avatar

unicorn

Zen Follower

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

Re: Simple Google Analytics - Support

econcepts:

Yes, the fix for how to integrate the two (JAM and SGA) can be found here:

http://www.zencartoptimization.com/2007/08/15/now-available-google-analytics-uncovered-for-zen-cart-the-workbook/

Scroll all the way to the bottom of the page (in the comments section). I've detailed out how to integrate the two there.

Let me know if you have any questions.

Thanks! Will have a look at it right away! :D

12 Nov 2009, 8:32 PM
#1067
unicorn avatar

unicorn

Zen Follower

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

Re: Simple Google Analytics - Support

econcepts:

Yes, the fix for how to integrate the two (JAM and SGA) can be found here:

http://www.zencartoptimization.com/2007/08/15/now-available-google-analytics-uncovered-for-zen-cart-the-workbook/

Scroll all the way to the bottom of the page (in the comments section). I've detailed out how to integrate the two there.

Let me know if you have any questions.

Riiight... I think I did what I was supposed to, but I have two problems now. First, I didn't find the yourdomainhere in the code, and second, the footer is messed up on my site (https://www.hjemmemamma.com/nettbutikk).

Where did I go wrong?

15 Nov 2009, 1:02 AM
#1068
tstanley avatar

tstanley

New Zenner

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

Re: Simple Google Analytics - Support

econcepts:

Some thoughts to make sure you didn't miss anything:

  1. Did you turn on "Conversion Tracking" from within the Zen Cart admin and also enter your Adwords conversion tracking id?

  2. Did you turn on conversion tracking and copy the proper tracking id from the Adwords account? (You'll insert this tracking id into the Zen Cart admin under the "Conversion Tracking" text section.

  3. You do not need to alter the checkout success page etc... (my contribution automatically does that for you as long as you turn on the proper elements from within the Config section of the zen admin for SGA.)

  4. Have you setup a cookie on your computer to exclude your IP or address from the reports? If so your conversion won't track.

Let me know if that helps.

:yes: It's working now! I did not do step 1). I thought I did everything. Thanks for the help. I am going to purchase your book right now to show my appreciation. Thanks so much!

16 Nov 2009, 5:01 PM
#1069
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Unicorn:

Riiight... I think I did what I was supposed to, but I have two problems now. First, I didn't find the yourdomainhere in the code, and second, the footer is messed up on my site (https://www.hjemmemamma.com/nettbutikk).

Where did I go wrong?

"yourdomainhere" refers to your actual domain (replace that text with your actual domain name.)

I looked at your site and it does not appear that you have the Google tracking installed at all now.

What you need to do is follow the instructions at the link I provided very closely. That should get you exactly what you need.

Let me know if that helps.

16 Nov 2009, 9:23 PM
#1070
unicorn avatar

unicorn

Zen Follower

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

Re: Simple Google Analytics - Support

econcepts:

"yourdomainhere" refers to your actual domain (replace that text with your actual domain name.)

I looked at your site and it does not appear that you have the Google tracking installed at all now.

What you need to do is follow the instructions at the link I provided very closely. That should get you exactly what you need.

Let me know if that helps.

This is the code at the bottom of that link:

< ?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
< ?php
if ($_GET['main_page']=="checkout_success") {

##########################################
## START JAM INTEGRATION WITH ZEN CART ##
## ZC Integration code by DrByte 8/2006 ##
##########################################

if (isset($zv_orders_id) && (int)$zv_orders_id > 0 && isset($order_summary) && is_array($order_summary)) {

if (!isset($_SESSION['affiliate_order_id']) || $_SESSION['affiliate_order_id'] != $zv_orders_id ) {

$_SESSION['affiliate_order_id'] = $zv_orders_id;

$commissionable_order_formatted = number_format($order_summary['commissionable_order'], 2, '.', '');

echo '';

}

}

#######################################
## END JAM INTEGRATION WITH ZEN CART ##
#######################################

} // end if for determining if this was the checkout_success page.?>

There's no "yourdomainhere" to replace..?

Earlier today I tried replacing the jam part with the code I already had, and removed that space between < and ? at the top. The footer looks fine again, but I just ran a test and jam is not working. GA tracked up until yesterday, and some today as well, though I'm not sure those hits came before I changed the code. The e-commerce tracking is still down.

17 Nov 2009, 7:42 PM
#1071
unicorn avatar

unicorn

Zen Follower

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

Re: Simple Google Analytics - Support

Now I've tried once more, doing exactly like it said - without putting my domain in there, as there was no where to put it. If you look at my site again, you'll see that the footer is a mess and that GA and JAM probably are non-functioning as well... I'll leave it like that for a few hours, but I'll have to start looking for another program if I can't get this to work... desperate
'

17 Nov 2009, 9:00 PM
#1072
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Unicorn - replace all the < ?php with <? php and see where that gets you.

17 Nov 2009, 9:38 PM
#1073
unicorn avatar

unicorn

Zen Follower

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

Re: Simple Google Analytics - Support

gothstone:

Unicorn - replace all the < ?php with <? php and see where that gets you.

Nowhere, except the footer looks fine if I do. But no GA and no JAM either... The code is not even in the php-file now, even though I put it in there in admin...

17 Nov 2009, 9:45 PM
#1074
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: Simple Google Analytics - Support

We gota go one step at a time here. You need to fix the spaceing on the php tag, what you have is just wrong, thats why it displays in the footer instead of actualy running. Once you put it that way on the site, we can look at what else the code is doing to try to find and fix the error.

17 Nov 2009, 11:13 PM
#1075
unicorn avatar

unicorn

Zen Follower

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

Re: Simple Google Analytics - Support

gothstone:

We gota go one step at a time here. You need to fix the spaceing on the php tag, what you have is just wrong, thats why it displays in the footer instead of actualy running. Once you put it that way on the site, we can look at what else the code is doing to try to find and fix the error.

That got me a nice, blank page.... :frusty:

17 Nov 2009, 11:49 PM
#1076
gothstone avatar

gothstone

Zen Follower

Join Date:
Jun 2005
Posts:
330
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I just tried a test checkout on your page (which looks fine now), but it it not running the google code. Did you remove it?

18 Nov 2009, 11:41 AM
#1077
unicorn avatar

unicorn

Zen Follower

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

Re: Simple Google Analytics - Support

gothstone:

I just tried a test checkout on your page (which looks fine now), but it it not running the google code. Did you remove it?

Thanks for trying! :)

No, I didn't... I too discovered that it was gone, so I re-installed the module, but nada... Luckily one of my computer savvy friends was online last night, so I gave him admin access, ftp info and everything. Now GA works fine, with ecommerce up and running. Don't know about the Jam just yet, I'll have to run a sale test through an affiliate link, but for some reason the cookies on this laptop are non-functioning as well... :blink:

18 Nov 2009, 1:31 PM
#1078
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Unicorn.

It sounds like when you tried to do the first alteration you inadvertently removed something that should have stayed.

Blank pages and footers that become strange are usually a result of incorrect or missing PHP (or HTML) info.

If you PM me your server login details and your Zen Cart Admin details I can take a look for you.

The install is pretty straight forward.

Shoot me that info and I'll see what I can do for you.

:)

18 Nov 2009, 5:04 PM
#1079
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Unicorn.

Go back to my post and check it out again. A user just brought it to my attention that the "yourdomainhere" portion was not in the post.

I determined that this was because my system hid that portion for security reasons. I added a space (and additional notes to step 2 that should clarify.)

Let me know if it helps.

18 Nov 2009, 10:20 PM
#1080
unicorn avatar

unicorn

Zen Follower

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

Re: Simple Google Analytics - Support

econcepts:

Unicorn.

Go back to my post and check it out again. A user just brought it to my attention that the "yourdomainhere" portion was not in the post.

I determined that this was because my system hid that portion for security reasons. I added a space (and additional notes to step 2 that should clarify.)

Let me know if it helps.

Yeah, that was me. Tried to tell you here before, but you wouldn't listen. :)

Anyways, tried your new code, footer is ok, and GA code is back, but Jam is still down, it seems. I don't know yet if the ecommerce part of GA is functioning properly, though.