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

Simple Google Analytics - Support

Views: 451,138

Results 1,561 to 1,580 of 2,165
30 Jun 2011, 6:58 AM
#1561
bi11i avatar

bi11i

Zen Follower

Join Date:
Jun 2005
Location:
Portland, OR
Posts:
157
Plugin Contributions:
0

Simple Google Analytics - Support

Searching through threads and trying to find an answer - hoping someone here can help. It seems that no matter if I use this module or I'm inserting analytics code manually, ALL orders placed through paypal or check/money order aren't being tracked by google. Only my credit card transactions.

Is anyone else seeing this? I'm using the standard IPN paypal module. Thanks and apologies if this has been covered.

4 Jul 2011, 1:45 PM
#1562
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

If none are being tracked then there has to be a problem with how you are returning the users to the site after a successful order. The only way Google (r any other tracking system on your site) will ever be able to track a sale from a site like PayPal is if the customer returns to your site after the sale. If they don't all you'll see if them 'leaving' (going to paypal) and never returning.

I have worked with hundreds of sites that use PayPal and all track just fine with Google Analytics. I would highly recommend you use the Simple Google Analytics module to insert the code on your site. Manually inserting if not done correctly (you don't just insert the code in one spot for it to work) will get you undesired results.

5 Jul 2011, 11:19 PM
#1563
bi11i avatar

bi11i

Zen Follower

Join Date:
Jun 2005
Location:
Portland, OR
Posts:
157
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Manually inserting if not done correctly (you don't just insert the code in one spot for it to work) will get you undesired results.thanks for your help and advice. still searching on why this is happening. i've been using the module to track conversions for several months now and scrolling back, I do see orders being tracked, just not all of them and usually paypal orders.

to address your last point, do you mean to say I can't just paste the google conversion tracking code into my checkout success page and be done with it? what else would i be missing?

7 Jul 2011, 11:38 AM
#1564
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Simple Google Analytics - Support

For proper conversion tracking, can you plewase advice what setting this shouyld be set to?

Provide details about the page where this conversion will be tracked.

Page security level HTTP or HTTPS

Thanks a lot!

10 Jul 2011, 10:38 AM
#1565
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Anyone please?

I just want to make sure I've got the right settings for Adwords to track the conversions. I've spend over an hour already going through this thread, but have not found details on Adwords Conversion setting.

Thanks a lot!

11 Jul 2011, 11:53 AM
#1566
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

ttfan:

Anyone please?

I just want to make sure I've got the right settings for Adwords to track the conversions. I've spend over an hour already going through this thread, but have not found details on Adwords Conversion setting.

Thanks a lot!

From your Zen Cart admin (Simple Google Analytics Configuration) just set the "Converison Tracking" to active (on) and then add your Adwords conversion tracking id number. Save and you're all set.

Conversion tracking is added (as it should) to the checkout success pages. Remember, only conversions that came directly from a click on one of your ads will be recorded in Adwords. If you get a sale that came from a source other than Adwords, you'll see that conversion in the Analytics side of things (providing you have that all setup correctly.)

11 Jul 2011, 12:01 PM
#1567
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

bi11i:

thanks for your help and advice. still searching on why this is happening. i've been using the module to track conversions for several months now and scrolling back, I do see orders being tracked, just not all of them and usually paypal orders.

to address your last point, do you mean to say I can't just paste the google conversion tracking code into my checkout success page and be done with it? what else would i be missing?

A few things ...

  1. The only "conversion tracking" script Google provides you with either relates directly to Adwords or Optimizer. There is no 'conversion script' for Analytics. Analytics automatically tracks your conversions if you have the proper code in place.

This module places the proper code in the right locations (even for Google Adwords conversion tracking) throughout the site and on the 'checkout success' pages.

So if you go and manually try to add the code to those page(s) you'll conflict with what is already in place.

  1. If talking about Google Analytics, then the 'added tracking' which would be placed on the checkout success page is the 'ecommerce tracking'. However, this too is already inserted along with my module, so no need to manually add that either.

  2. If you just place the conversion tracking script that Google gave you (for Adwords of course) on your thank you page, you might track a conversion, but you won't have the dynamic tracking ability that my script provides. So instead of getting an order for $50 (as an example) recorded as $50, you'll get an order, but it will likely show either $1 or "$0" for the value.

The module I've built automatically takes the order information and adds it to the proper locations to be tracked.

In short, everything you need to track all types of transactions is included with the Simple Google Analytics module. You shouldn't have to place any tracking code manually anywhere on the site. Doing so could conflict with what is already being tracked.

If you added manual code you likely caused a conflict. I would recommend removing the manually inserted code and letting the module do the work for you.

11 Jul 2011, 12:22 PM
#1568
ttfan avatar

ttfan

Zen Follower

Join Date:
Jul 2010
Location:
Australia
Posts:
231
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

From your Zen Cart admin (Simple Google Analytics Configuration) just set the "Converison Tracking" to active (on) and then add your Adwords conversion tracking id number. Save and you're all set.

Conversion tracking is added (as it should) to the checkout success pages. Remember, only conversions that came directly from a click on one of your ads will be recorded in Adwords. If you get a sale that came from a source other than Adwords, you'll see that conversion in the Analytics side of things (providing you have that all setup correctly.)

Thank you for the response, but what I need to know is what Adword setting I need to have for:
Page security level: HTTP or HTTPS

Does this refer to the security level of the success page? I've currently got it set to the default of http

I've had one conversion so far, so it's obviously doing some tracking, but the URL it lists on my Adwords conversion page is the home page of my Zencart site (with the https).

Thanks for all your time you spend here... much appreciated!

12 Jul 2011, 12:12 PM
#1569
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

It doesn't matter what setting you tell Google you have (secure vs. non-secure) because my module also automatically detects that and adjusts accordingly.

The only reason Google asks you for that is so that you can generate the tracking code to place on the page, and again, you don't need the tracking code because the module already has it in place.

Let me know if that helps.

(P.S. If you really want to find out if you are https or http then you can complete an order ... it doesn't have to be after clicking one of your ads if just testing ... and then while on the checkout success page just look at the address bar of your browser to see if the page is secure or not. It can be different based on the way you installed zen cart and configured it.)

12 Jul 2011, 10:47 PM
#1570
emil_filip avatar

emil_filip

New Zenner

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

Re: Simple Google Analytics - Support

Hi!
Just installed google analytics on my website (zen cart 1.3.9), changed account number in admin/google analytics but when i checked the status , show tracking not installed. Double checked if all the files are in the right place and they are but it doesn't work. Any idea, anybody? Thanks.

13 Jul 2011, 12:12 PM
#1571
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Did you complete step 3 of the README?

What is the url of the site?

Most of the time when it still says tracking not installed, step three was skipped of the file(s) were put in the wrong location.

19 Jul 2011, 5:21 PM
#1572
jeking avatar

jeking

Totally Zenned

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

Re: Simple Google Analytics - Support

I've got this installed on a site but Google is not reporting any conversions. All the other tracking data seems to be collecting just fine.

I've placed a test order and verified to analytics code is there. Any suggestions??

20 Jul 2011, 3:06 PM
#1573
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

When you say conversions, what type do you mean. There are several ways to record 'conversions' in Google Analytics. Adwords conversion tracking, ecommerce conversion tracking, goal conversion tracking.

If you are looking to get data on ecommerce transactions, make sure you have told Google that the site is an ecommerce site and that you want to track data for it.

If you are looking to track Adwords conversions make sure you enter the Adwords (not Google Analytics) tracking ID in the "conversion" area of the admin (Google Analytics Configurate) and then turn it on by selecting the proper radio button within that same area.

Along those lines, Conversions for Adwords will only track if a visitor to your site first clicks on one of your ppc ads and then makes a purchase.

If you're trying to track Goal conversions make sure you have the Goal path setup correctly as well as the final 'thank you' page for the Goal URL.

Let me know if that helps.

20 Jul 2011, 3:26 PM
#1574
jeking avatar

jeking

Totally Zenned

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

Re: Simple Google Analytics - Support

Eric,

I'm having problems with ecommerce transactions. Goals are tracking just fine.

Google Analytics is set to Yes for ecommerce website. That's the only place it needs to be set, right?

Thanks,
Jim

20 Jul 2011, 3:28 PM
#1575
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Yes, that is the only spot it needs to be turned on.

What flavor of tracking code are you using? (Async, ga.js, Legacy / urchin.js)

20 Jul 2011, 3:43 PM
#1576
jeking avatar

jeking

Totally Zenned

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

Re: Simple Google Analytics - Support

Asynchronous

21 Jul 2011, 6:01 PM
#1577
golden_synergy avatar

golden_synergy

Zen Follower

Join Date:
Aug 2009
Location:
Westland, Michigan
Posts:
107
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Is this the script I use in the admin/ install SQL Patch ?

SET @configuration_group_id=0;
SELECT (@configuration_group_id:=configuration_group_id) FROM configuration_group WHERE configuration_group_title= 'Google Analytics Configuration' LIMIT 1;
DELETE FROM configuration WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;
DELETE FROM configuration_group WHERE configuration_group_id = @configuration_group_id AND configuration_group_id != 0;

INSERT INTO configuration_group (configuration_group_id, configuration_group_title, configuration_group_description, sort_order, visible) VALUES (NULL, 'Google Analytics Configuration', 'Set Google Analytics Options', '1', '1');
SET @configuration_group_id=last_insert_id();
UPDATE configuration_group SET sort_order = @configuration_group_id WHERE configuration_group_id = @configuration_group_id;

INSERT INTO configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added, use_function, set_function) VALUES (NULL, 'Analytics Account', 'GOOGLE_ANALYTICS_UACCT', 'UA-XXXXXX-X', 'Enter your Google Analytics account number', @configuration_group_id, 1, NOW(), NULL, NULL),
(NULL, 'Target Address', 'GOOGLE_ANALYTICS_TARGET', 'customers', 'What adress (City/State/Country to correlate the transaction with) use in Analytics transaction?', @configuration_group_id, 2, NOW(), NULL, 'zen_cfg_select_option(array('customers', 'delivery', 'billing'),'),
(NULL, 'Affiliation', 'GOOGLE_ANALYTICS_AFFILIATION', '', 'Optional partner or store affilation', @configuration_group_id, 3, NOW(), NULL, NULL),
(NULL, 'Use sku/code', 'GOOGLE_ANALYTICS_SKUCODE', 'products_id', 'Using as Product SKU code', @configuration_group_id, 4, NOW(), NULL, 'zen_cfg_select_option(array('products_id', 'products_model'),'),
(NULL, 'Use pagename', 'GOOGLE_ANALYTICS_USE_PAGENAME', 'false', 'Use pagename in tracking? Be careful when using this!', @configuration_group_id, 5, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'),
(NULL, 'Attributes Brackets', 'GOOGLE_ANALYTICS_PRODUCTS_ATTRIBUTES_BRACKETS', '[]', 'Attributes Brackets', @configuration_group_id, 6, NOW(), NULL, NULL),
(NULL, 'Attributes Delimiter', 'GOOGLE_ANALYTICS_PRODUCTS_ATTRIBUTES_DELIMITER', '; ', 'Attributes Delimiter', @configuration_group_id, 7, NOW(), NULL, NULL),
(NULL, 'Tracking Outbound', 'GOOGLE_ANALYTICS_TRACKING_OUTBOUND', 'false', '', @configuration_group_id, 21, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'),
(NULL, 'Tracking Outbound Links Prefix', 'GOOGLE_ANALYTICS_TRACKING_OUTBOUND_LINKS_PREFIX', '/outgoing/', '', @configuration_group_id, 22, NOW(), NULL, NULL),
(NULL, 'Use AdWords Conversion', 'GOOGLE_CONVERSION_ACTIVE', 'true', 'Use AdWords Conversion', @configuration_group_id, 91, NOW(), NULL, 'zen_cfg_select_option(array('true', 'false'),'),
(NULL, 'AdWords Conversion ID', 'GOOGLE_CONVERSION_ID', '', 'Enter your Google Conversion ID', @configuration_group_id, 92, NOW(), NULL, NULL),
(NULL, 'AdWords Conversion Language', 'GOOGLE_CONVERSION_LANGUAGE', 'en_US', 'Enter your Google Conversion Language', @configuration_group_id, 93, NOW(), NULL, NULL);

22 Jul 2011, 12:13 PM
#1578
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

That is not the code for the Simple Google Analytics module I built (this support thread). It looks like you have Andrew's version (which I have been told has bugs.) I would recommend downloading the Simple Google Analytics module and using that. Easy install and does more than Andrew's version.

22 Jul 2011, 2:26 PM
#1579
golden_synergy avatar

golden_synergy

Zen Follower

Join Date:
Aug 2009
Location:
Westland, Michigan
Posts:
107
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

That is not the code for the Simple Google Analytics module I built (this support thread). It looks like you have Andrew's version (which I have been told has bugs.) I would recommend downloading the Simple Google Analytics module and using that. Easy install and does more than Andrew's version.

Thank you. I downloaded your version.
before I start, I am reading your read me. I found this : Step 4
At the bottom of /includes/templates/[your_template]/common/html_header.php. For the life of me I can not find this html_header. php. All my common folders have tpl_header.php but not "html_header.php

Is that created when I add the -install SQL file?

23 Jul 2011, 6:06 PM
#1580
blessisaacola avatar

blessisaacola

Totally Zenned

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

Re: Simple Google Analytics - Support

econcepts:

Yes, actually I have it running on a few of my own sites now (converted) but need to make it "public ready" (which I have yet to do.)

Once I get to that point (MSN tracks differently than Yahoo did and a few of the variables make it a little more complex to 'standardize') I'll release it.

I am wondering if you by any chance have an approach you can share that will at least track conversion even if the revenue data is not being tracked. I have tried the conversion code from adcenter and it's not tracking. Here is the code from them that I am currently using:```

<script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};</script> <script id="mstag_tops" type="text/javascript" src="//flex.atdmt.com/mstag/site/ca8df32c-e586-4f05-8b99-a0fe58e21bd5/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1",domainId:"MASKED",type:"1",revenue:"",actionid:"28215"})</script> <noscript> <iframe src="//flex.atdmt.com/mstag/tag/ca8df32c-e586-4f05-8b99-a0fe58e21bd5/analytics.html?dedup=1&domainId=MASKED&type=1&revenue=&actionid=28215" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe> </noscript>