If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Google Adwords Conversion Tracking code help.

Google Adwords Conversion Tracking code help.

Started by wondergirl on 23 Nov 2006, 3:18 PM · Views: 29,608

Results 21 to 40 of 40
20 Jul 2007, 10:33 PM
#21
econcepts avatar

econcepts

Totally Zenned

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

Google Adwords Conversion Tracking code help.

Alan,

I'm actually just completing a new workbook called "Google Analytics Uncovered for Zen Cart: The Workbook".

It is set for release from my website on or around August 15th. You may also be interested in my latest 6 Part series on Google Analytics and Zen Cart.

Just some thoughts for "Best Practices" on that side.

Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information

10 Aug 2007, 3:32 PM
#22
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Adwords Conversion Tracking code help.

I posted a similar comment in another thread, but this thread seems to be appropriate for a like post ... so here goes.

After working through all the questions in the forums regarding Google Analytics, one common theme among users is "how do I install it", and how can I add "Conversion Tracking" as well?

Up until now, the only way to add Conversion Tracking was to manually add the code.

That has now changed. I decided to re-work the original Simple Google Analytics contribution to address several issues I continue to hear.

This new version (1.1.0) now provides the ability for users to configure Google Conversion Tracking directly from within the Admin section.

I have also reworked a few of the previous items to include more "instruction" on what each item is, what you use it for, and how you use it. There were many questions like "What is the Target Address?" ; "What is the SKU/Code?" etc...

These are all answered in the new version as well.

How to Download the new version 1.1.0

You can download the new version complete with Conversion Tracking support by going to the following link in the Zen Cart downloads section:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_47&products_id=412

Where to get more information on the newest release

To get more information on this newest release, along with screenshots and some helpful tips on installing it, you can go to:

http://www.zencartoptimization.com/2007/08/10/new-release-simple-google-analytics-v110-now-with-conversion-tracking/

Enjoy!

Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information

30 Aug 2010, 6:15 AM
#23
darla avatar

darla

New Zenner

Join Date:
Jun 2010
Posts:
42
Plugin Contributions:
0

Re: Google Adwords Conversion Tracking code help.

Posted 3 days ago on another forum but no reply so posted it here.
Adding Google CONVERSION TRACKING CODE

I'm lost and have read at least 30 replies on several threads concerning adding Google CONVERSION TRACKING CODE. Today is Aug 2010 I'm running ZC v1.3.9b and I need up to date help.

Google gave me a small bit of code to insert. Here it is (personal numbers are changed):
<!-- Google Code for search Conversion Page -->

<script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = XXXXXXXXXX; var google_conversion_language = "en"; var google_conversion_format = "2"; var google_conversion_color = "ffffff"; var google_conversion_label = "-zQjl3QEQuJqz4AM"; var google_conversion_value = 0; /* ]]> */ </script> <script type="text/javascript" src="http://www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/1007471928/?label=-zQjl3QEQuJqz4AM&guid=ON&script=0"/> </div> </noscript>


Googles PHP INSERTION INSTRUCTIONS state:

  1. Open your conversion confirmation page PHP file. If multiple pages are generated from the same file, find the section in the PHP file which generates your conversion page.

  2. Insert the conversion tracking code onto the conversion confirmation page. Make sure that the code appears within a static HTML section, not contained within an PHP code section (delineated by <? and ?> markers).

Insert the conversion tracking code snippet directly into the body of the conversion confirmation page. Search for the </body> tag and place the code immediately above it.
If the </body> tag is not located within the static portion of the HTML page, make sure that you add the code snippet so that it appears within the <body> section of the page.

Reading the ZC forum it seems there are two flies that need altering which I think are first:
/includes/modules/pages/checkout_success/header_php.php
I INTEND TO OPEN THE FILE and insert the above Google code after line 54 which reads:
$orders_id = $zv_orders_id;
IS THIS CORRECT? IT IS IN CONFLICT WITH GOOGLES INSTRUCTIONS FROM ABOVE.

and second:
tpl_footer.php (don't know where to find this or what code to add at what insertion point?). GOOGLE ONLY PROVIDED ONE BIT OF CODE SHOWN ABOVE.

Really need help. As you can surmise I do not know PHP but do know HTML. Grateful for any clear instruction you can provide.

31 Aug 2010, 1:34 PM
#24
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Adwords Conversion Tracking code help.

Darla,

Just install my Simple Google Analytics module and this is all pre-built into it. NO coding needed. :) My module includes tracking for standard Google Analytics, Ecommerce Tracking, Google Adwords Conversion Tracking, Google Goals, Google Funnels.

Just make sure if you tried to hand enter any code for tracking into your site you REMOVE it completely or you'll see duplicate numbers within your reports.

Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information

2 Sep 2010, 7:47 AM
#25
darla avatar

darla

New Zenner

Join Date:
Jun 2010
Posts:
42
Plugin Contributions:
0

Re: Google Adwords Conversion Tracking code help.

Many thanks for responding. Am puzzling through the Read Me for the link to the new install you provided. I'm running ZC v1.3.9b and have some questions.

Looked for and could not find: /includes/templates/classic/common/tpl_main_page.php
All I found were two files: includes/templates/classic/common/tpl_footer.php> and includes/templates/classic/common/tpl_header.php>

Also I updated the Database with the file googleanalytics-INSTALL.sql
However I did not remover the text "-INSTALL" from the file name. How can I fix that mistake - or is it a mistake?

Thanks.

2 Sep 2010, 1:08 PM
#26
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Adwords Conversion Tracking code help.

Darla:

Looked for and could not find: /includes/templates/classic/common/tpl_main_page.php
All I found were two files: includes/templates/classic/common/tpl_footer.php> and includes/templates/classic/common/tpl_header.php>

You'll have to COPY (don't move) the file from the same location but in the 'template_default' directory. Copy it to your classic folder (if that is the template you are using) add the line of code indicated, and you're all set.

Darla:

Also I updated the Database with the file googleanalytics-INSTALL.sql
However I did not remover the text "-INSTALL" from the file name. How can I fix that mistake - or is it a mistake?

That is not a mistake. As long as you got the green message saying that all the statements were processed and no errors, you're fine.

Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information

2 Sep 2010, 10:33 PM
#27
darla avatar

darla

New Zenner

Join Date:
Jun 2010
Posts:
42
Plugin Contributions:
0

Re: Google Adwords Conversion Tracking code help.

I was able to find and correct tpl_main_page.ph and place it into the correct common folder.

The file googleanalytics-INSTALL.sql was uploaded to the database but I did not see the green message saying that all the statements were processed and no errors. So how can I check that? Or should I upload the same file again?

Thanks for the clear instructions.

5 Sep 2010, 12:14 PM
#28
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Adwords Conversion Tracking code help.

Don't upload the file. Open it, copy and paste the entire contents of it to the SQL Patch section in your admin.

It won't hurt anything to run it again.

Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information

9 Jan 2011, 2:13 AM
#29
geekgirl avatar

geekgirl

New Zenner

Join Date:
Aug 2007
Location:
Slidell, LA
Posts:
9
Plugin Contributions:
0

Re: Google Adwords Conversion Tracking code help.

Hi there, I was wondering if your module was backwards compatible with 1.3.8a?

I am afraid to upgrade as everytime I have it has broken my site. Database not compatible every time.

The knack of flying is learning how to throw yourself at the ground and miss.

--Hitchhikers Guide to the Galaxy

11 Jan 2011, 4:27 PM
#30
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Adwords Conversion Tracking code help.

Yes, this module is fully compatible with ALL versions of zen cart new and old. No problems at all.

Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information

7 Dec 2011, 2:46 PM
#31
fabienne avatar

fabienne

Zen Follower

Join Date:
May 2007
Location:
Cincinnati, Ohio
Posts:
246
Plugin Contributions:
0

Re: Google Adwords Conversion Tracking code help.

I read through this thread with great interest. I just got Google Adwords and the Conversion Code I was to put on the checkout page. Cutting through all of the extra info here is my question:

I have version 1.3.9h installed now. I also have something called Google Analytics Configuration installed on my configuration.

I am getting stats for my Adwords account but I am not getting any conversion data from the page where I put it (thinking that this is the proper "check out page") (...includes/templates/magic/common/tpl_main_page.php).

So, I want to know:

1)Should I some how take off "Google Analytics Configuration" (which I THINK was an add on from long ago) and then put on Simple Google Analytics?

2)I think I should remove the extra analytics code from the ...includes/templates/magic/common/tpl_main_page.php page, right?

  1. I wonder if I take off the Google Analytics Configuration from my cart, will it leave behind the code it put on all the pages of my site and will I have to take that off manually? How would I do that?

What I ultimately want is to have the analytics info and the conversion info.

I suspect that the "Google Analytics Configuation" is not allowing proper data collecting. Thank you for any guidance on this.

The Zen of cat.

7 Dec 2011, 4:57 PM
#32
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Adwords Conversion Tracking code help.

fabienne:

I read through this thread with great interest. I just got Google Adwords and the Conversion Code I was to put on the checkout page. Cutting through all of the extra info here is my question:

I have version 1.3.9h installed now. I also have something called Google Analytics Configuration installed on my configuration.

I am getting stats for my Adwords account but I am not getting any conversion data from the page where I put it (thinking that this is the proper "check out page") (...includes/templates/magic/common/tpl_main_page.php).

So, I want to know:

1)Should I some how take off "Google Analytics Configuration" (which I THINK was an add on from long ago) and then put on Simple Google Analytics?

2)I think I should remove the extra analytics code from the ...includes/templates/magic/common/tpl_main_page.php page, right?

  1. I wonder if I take off the Google Analytics Configuration from my cart, will it leave behind the code it put on all the pages of my site and will I have to take that off manually? How would I do that?

What I ultimately want is to have the analytics info and the conversion info.

I suspect that the "Google Analytics Configuation" is not allowing proper data collecting. Thank you for any guidance on this.

Good questions. Here is what you want to do.

  1. Never 'manually install' any Google Analytics tracking into Zen Cart. Why? It can be done, but to do it right, with all the right tracking (including dynamic data insertion) variables on the right pages, etc... it usually ends up resulting in missing info.

  2. If you have manually installed any tracking that Google provided to you then remove it all. (we'll get tracking back for you in a minute here.)

  3. If you had previously installed the Google Analytics by Andrew version (a zen cart add-on) then completely uninstall it and remove all traces / changes to files it told you to do (there are a number of native problems with that module which cause tracking not to work accurately.)

  4. Download and install my most recent version of Simple Google Analytics ( http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=412 ). This is where the 'Google Analytics Configuration' menu comes in in your zen cart admin.

  5. After installed, go to the configuration options in your Zen Cart admin for Google Analytics and insert your Tracking ID (Google provided) into the space provided. Choose the type of tracking you want to use (options are legacy / urchin, ga.js, or asynchronous)

  6. IF (and only IF) you are running Google Adwords and want to also track conversion from those PPC campaigns, then activate the "conversion Tracking" (select the proper radio button from the configuration menu), insert your Google AdWords provided (NOT ANALYTICS) tracking number (different than the "UA- number) into the space provided and click save.

You're all set now to start tracking anything you want with zen.

Here is what you can track (and it is very accurate with my mod):

  1. Ecommerce transactions
  2. Goals / Funnels
  3. Standard Google Analytics informtion
  4. Adwords Conversion Tracking
  5. any other custom variables you want to include in your tracking code (by using the 'custom tracking' section of my mod.)

Having said that, if you are not receiving proper tracking within Google Analytics then one of the following is incorrect and needs to be adjusted:

a) No 'Ecommerce Transaction' data. (make sure you tell Google you are an 'ecommerce site' and want to track those items. If you don't do this you won't get the info picked up.)

b) make sure you have the proper tracking codes inserted in the right locations within the configuration menu. You get your tracking ids (NOT the entire code ... just the tracking ids) by requesting the tracking snippet from Google and then pulling out only the tracking id numbers.

Simple Google Analytics is the original tracking mod made for Zen Cart. A few others came along which confused people and to make matters worse, those other options had some flaws apparently.

If you go with Simple Google Analytics and follow the easy install read me you should find everything working to your liking.

The Support forum for that module is found at (so post any followups to that mod in there.)

http://www.zen-cart.com/forum/showthread.php?t=53701

I hope that helps!

Let me know if you need anything else.

Eric
20 Ways to Increase Sales Using Zen Cart
Zen Cart contribs: Simple Google Analytics, Export Shipping Information

16 Dec 2011, 6:27 PM
#33
thomaswhiteeagle avatar

thomaswhiteeagle

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Google Adwords Conversion Tracking code help.

Does this mod track order total for a ppc campaign?

21 Dec 2011, 5:42 PM
#34
thomaswhiteeagle avatar

thomaswhiteeagle

New Zenner

Join Date:
May 2007
Posts:
93
Plugin Contributions:
0

Re: Google Adwords Conversion Tracking code help.

thomaswhiteeagle:

Does this mod track order total for a ppc campaign?

Anyone know if this mod tracks revenue?

10 Feb 2012, 12:10 PM
#35
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Google Adwords Conversion Tracking code help.

Hi

I cannot where i find the 'Google AdWords Conversion Tracking Number' so i cannot properly configure the module. I have followed the instructions here http://www.zencartoptimization.com/2007/08/10/google-analytics-demystified-part-4-conversion-tracking/, HOW TO INSTALL CONVERSION TRACKING, but, i think they are dated and cant seem to achieve following these instructions.

can you advise where i might find the Google AdWords Conversion Tracking Number?

10 Feb 2012, 12:31 PM
#36
mattys avatar

mattys

Zen Follower

Join Date:
Sep 2006
Location:
North Devon, England, UK
Posts:
289
Plugin Contributions:
0

Re: Google Adwords Conversion Tracking code help.

think i've sorted it, went into conversion tracking as if getting code, looked at code snippet, was in there, i'm not using code snippet though as using your module to insert

18 Feb 2012, 4:17 PM
#37
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Google Adwords Conversion Tracking code help.

ZC 1.39
Trying to install this and have a question about Step#3 of the instructions:> 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:

<?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { // Do nothing } else { require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php'); } ?>I do not have this file.

Do simply copy it from **public_html/includes/templates/template_default/common/tpl_main_page.php **and then add the stated text?

19 Feb 2012, 2:17 PM
#38
serious avatar

serious

Totally Zenned

Join Date:
Feb 2011
Posts:
686
Plugin Contributions:
0

Re: Google Adwords Conversion Tracking code help.

d'Oh!
Basic templates overrides stuff.

I actually figured it out all by my lonesome!:D

19 Feb 2012, 2:42 PM
#39
trieuhavn avatar

trieuhavn

New Zenner

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

Re: Google Adwords Conversion Tracking code help.

I still cannot figure it out.
Thanks in advance.
khoa van tay- khóa vân tay

16 May 2012, 3:21 PM
#40
Join Date:
Jul 2011
Posts:
6
Plugin Contributions:
0

Re: Google Adwords Conversion Tracking code help.

Hi,
This all seems relatively straight forward but of course it's not working!

I have setup conversion tracking it my adwords and generated my code. I've logged in to my zen cart account /google analytics configuration/ and activated and added the code in Google AdWords Conversion Tracking Number.

I've had a couple of sales via PPC but in my adwords account its still showing my tracking status as unverified which I thinks means its not connecting.

Any ideas on how I find out what the issue may be.

Thanks in advance