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

Simple Google Analytics - Support

Views: 451,121

Results 1,681 to 1,700 of 2,165
4 Dec 2011, 10:49 PM
#1681
coffeecanada avatar

coffeecanada

New Zenner

Join Date:
Oct 2011
Location:
Toronto
Posts:
30
Plugin Contributions:
0

Simple Google Analytics - Support

I went ahead and installed SimpleGA to see what difference it would make. There's two things that are confusing me though:

  1. The include is at the bottom of the page, just before </body> whereas Google Analytics instructions say to put it before the </head> tag.

  2. There's a question in the install file:

QUESTION: I installed the new code, but now I am getting a JavaScript error on my pages that refers to "__utmSetTrans();". What does this mean
and how do I get rid of it?

ANSWER:
If you are receiving this error message, that means you did not follow step 8 included in these instructions. This included the removal of the line
of code that looks like "__utmSetTrans();" from the following file on your site /includes/modules/pages/checkout_success
But the steps only go up to 4. Is this reminents of a previous install file?

5 Dec 2011, 4:08 PM
#1682
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

JSWeb:

Hi Eric

Might be worth you adding a description here& in the README to explain how to get the module to display in ADMIN 1.5

Admin > Admin Page Registration

Page Key: (e.g. myModPageName)
Page Name: (e.g. BOX_MY_MOD_PAGE_NAME)
Page Filename: (e.g. FILENAME_PAGE_NAME)
Page Parameters: (e.g. option=1 or, more usually, leave blank)

Note we got it to display by delving directly into the ZC DB and new tables to cater for this..

Good idea Jamie. Thanks for the post!

5 Dec 2011, 4:10 PM
#1683
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

coffeecanada:

I copied + pasted my Google Analytics code directly into tpl_header, and when I log into analytics.google.com it isn't properly tracking paid vs. organic search.

It also won't track the dollar value on conversion, but it does properly detect conversions.

Will using Simple GA fix this?

Yes, Simple Google Anlaytics fixes it all for you.

The first thing you have to do is completely REMOVE any trace of code you personally pasted into your site. Then install my Simple Google Analytics mod (follow the readme, it's pretty straight forward).

If using Zen 1.5 you'll need to register the page in the admin (if not, no worries).

Then from the admin configuration just enter your Analytics tracking id (and Adwords conversion tracking if you are using that).

Save and you're all set.

5 Dec 2011, 4:13 PM
#1684
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

coffeecanada:

I went ahead and installed SimpleGA to see what difference it would make. There's two things that are confusing me though:

  1. The include is at the bottom of the page, just before </body> whereas Google Analytics instructions say to put it before the </head> tag.

  2. There's a question in the install file:

But the steps only go up to 4. Is this reminents of a previous install file?

My code (Simple Google Analytcis) never uses nor requires you to add that type of code to your site. You probably have the contribution called "Andrews Google Analaytics" installed and that has a few more edits that are made to make it work (but it has some native problems with tracking I am told in a few areas.)

You'll need too COMPLETELY remove all traces of the previous version then install my version for it to work. The problems in the other analytics version cause inconsistencies with my tracking.

That is likely what is throwing you off. It has to be one tracking module or the other ... not both.

6 Dec 2011, 8:26 PM
#1685
scisupply avatar

scisupply

New Zenner

Join Date:
Dec 2011
Location:
Hamilton, OH USA
Posts:
10
Plugin Contributions:
0

Re: Simple Google Analytics - Support

V 1.3.9h with language packs
website: https://www.physics6.com

Eric,

I've spent considerable time trying to troubleshoot a fresh v 1.2.5 install on Zen V 1.3.9h. I've gone through all steps in the install, and I'm having trouble with the step #2. Although I have v 1.3.9h, it is heavily modified, and I cannot locate the following code in /public_html/includes/templates/template_default/common/tpl_main_page.php:

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
  • I proceeded through the rest of the steps even though this was missing, and completed the SQL patch install. I entered my analytics account info into the zencart module, and attempted to check status on google analytics page, but it is still saying tracking not installed, which is to be expected given the missing code above.

** The first troubleshooting paragraph deals with this issue, but I'm not able to understand exactly how to proceed, and I'm worried about screwing up the code / site by making an improper change to the tpl_main_page file. I'm not entirely certain about where and how to make the appropriate changes.

Question - Can you please clarify where this change is to be made in my tpl_main_page.php. The way I'm interpreting your instructions, I would add my current body contents to two areas as below, and the file would look like below after modification:

<?php if($page_directory == 'includes/modules/pages/checkout_success') { echo '<***PLACE MY BODY CONTENTS HERE*** onLoad="javascript:__utmSetTrans()">'; } else { echo '<***PLACE MY BODY CONTENTS HERE***>';} ?>

THANK YOU VERY MUCH FOR THIS GREAT CONTRIBUTION. I appreciate any help you can offer in getting it successfully installed...

6 Dec 2011, 10:57 PM
#1686
coffeecanada avatar

coffeecanada

New Zenner

Join Date:
Oct 2011
Location:
Toronto
Posts:
30
Plugin Contributions:
0

Re: Simple Google Analytics - Support

econcepts:

My code (Simple Google Analytcis) never uses nor requires you to add that type of code to your site. You probably have the contribution called "Andrews Google Analaytics" installed and that has a few more edits that are made to make it work (but it has some native problems with tracking I am told in a few areas.)

You'll need too COMPLETELY remove all traces of the previous version then install my version for it to work. The problems in the other analytics version cause inconsistencies with my tracking.

That is likely what is throwing you off. It has to be one tracking module or the other ... not both.

In the README right in the zip:




Contribution Name: Simple Google Analytics
Version Date: v 1.2.5 10/31/2011 Eric Leuenberger (Zen ID: econcepts) http://www.ecommerceamplifier.com

License: under the GPL - See attached License for info.

Designed for: Zen Cart v1.3.6 and higher. Release can be compatable with older versions as well.

Portions copyright Andrew Berezin
Portions copyright Dayne Larsen

Description: This new module version 1.2.5 enables you to integrate the Google Analytics service
with both e-commerce tracking and Conversion Tracking capabilities as described here:
http://www.google.com/analytics/ using the new release of "ga.js" code (replacing the "urchin.js" version)
released by Google in December of '07 and documented here:
http://analytics.##########################/2007/12/announcing-new-graphing-tools-gajs.html
OR by using the Asyncronous tracking code released in December of 2009 by Google documented here:
http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html

Zen Cart Support forum thread here: http://www.zen-cart.com/forum/showthread.php?t=53701





What This Contribution Does

Installs Google Analytics tracking capability on your site using either the legacy (urchin) version, "ga.js", or "asyncronous" tracking Google code version including:
a) E-Commerce Tracking
b) Adwords (pay per click) Conversion Tracking
c) Enables you to customize the tracking code to your liking to add additional elements per Google terms.
d) Allows dynamic tracking of revenue for Conversion and Ecommerce. (Pulls actual order amount from cart and enters in your Google Analytics account.)
e) Enables tracking of new pagetime variable for monitoring load times of your site.

##############################################################################
Installation Instructions (New Installs ONLY and upgrade from oldest 1.0 version)
##############################################################################

NOTE 1: Follow these set of instructions ONLY if you have never had any of the Simple Google Analytics Modules installed.
If you have had any other version (1.0 or 1.1) prior to this, then follow the upgrade instructions for your version.

NOTE 2: Where ever you see the words "your_template" (in either these instructions, or the file folders included with the install)
you should REPLACE that with the directory name that yoru template is running from. So for example, if you are running a
custom template and the directory that you decided to keep those template files in is called "mycustomtemplate" then, where ever
you see the words "your_template", you would change it to "mycustomtemplate".

  If you are using the default template provided with zen cart, then you would replace each instance of "your_template" with the 
  following: "template_default"

HINT: If you don't know what the directory name is you are using, then you can find it out by following these steps:
		1) Login to your Zen Cart admin
  	2) Go to "Tools > Template Selection" from the menu
  	3) From the screen that shows, look under the column that is titled "Template Directory". The name you find under that column is the
  	   name of the directory that your zen cart site design is running in. This EXACT name is the one that you will use to replace
  	   each instance of "your_template".

######################

STEP 1:

######################

After you have identified the directory that your template is running from and determined where you will be uploading the files to,
upload the included install files and directories to your zen cart site.

##################################################

STEP 2: (FTP files to the internet)

##################################################

Make sure your body tag in /includes/templates/[your_template]/common/tpl_main_page.php
includes this code (if not see trouble shooting below it is not neccassary but an addition
to your template needs to be made):

**** HELPFUL HINT: ****
If you are runnning any of the 1.3.x versions of Zen Cart, this line is already
included with those installs and you can safely skip this step. You may need to check earlier
versions for it though.


<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>

###################################################################

STEP 3: (Make alterations to tpl_main_page.php file)

###################################################################

PART A:

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'); } ?>

=====================
NOTE: If you were using a previous version (1.2.x) of Google Analytics (prior to 1.2.3) then you'll need to change the code in the previous location

At the bottom of /includes/templates/[your_template]/common/tpl_main_page.php

Find the lines of code that look like this (found below) just before the </body> tag:

<?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); } ?>

CHANGE / replace the lines of code to look like this:

<?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { // Do nothing } else { require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php'); } ?>

############################################

STEP 4: (Apply the SQL Patch)

############################################

If this is a BRAND NEW install, you will need to update your database with the googleanalytics-INSTALL.sql file.
If you are upgrading (from the oldest 1.0 version), you will need to use the upgrade SQL file that is included.
In your site admin go to Tools->Install Sql Patches and apply the googleanalytics.sql patch included.

NOTE to those upgrading from version 1.1

If you are upgrading from the previous 1.1 version, then follow the upgrade instructions included for that version located
in the above section. Do not use these instructions.

NOTE to those upgrading from version 1.0

The new "ga.js" version of tracking does not need one bit of JavaScript that was included in the previous "urchin.js"
versions. You will need to DELETE this line from your code.

includes/modules/pages/checkout_success/on_load_main.js

REMOVE the following line from that file "javascript:__utmSetTrans();"

If that is the ONLY line you see in the file, than it is safe to completely DELETE the file. If this is not the only
line found in that file, then delete only that line, and save the file. Re-upload the new version to your site.
Keeping this line in when using the new ga.js tracking code can cause JavaScript errors to pop up on your site (since
the new code does not refer to this function anymore).


How to use this module

  1. Once you have completed a successful install or upgrade, login to your Zen Cart admin and go to configuration->google analytics configuration and set your google
    analytics account number and any of the other settings as you see fit.

  2. Login to your Google Analytics account and make sure your site is set to "receiving data"
    or "waiting for data" (this means you have sucessfully installed the analytics code on your
    site.)

  3. To take advantage of Google Analytics E-Commerce Tracking, you must login to your Google
    Analytics account after installing this contribution and enable e-commerce reporting as follows:

    a. Log in to your account.
    b. Click "Edit" next to the profile you'd like to enable.
    c. On the Profile Settings page, click "edit" next to Main Website Profile Information.
    d. Change the E-Commerce Website radio button from No to Yes.
    e. Save your changes


Troubleshooting

QUESTION: The "body tag" of my site is different from that which is shown in these instructions and does NOT include the "$zv_onload" code.
What should I do to install Simple Google Analytics?
ANSWER:
If your body tag is different (does not have the $zv_onload code) replace with this code:

<?php if($page_directory == 'includes/modules/pages/checkout_success') { echo '<body onLoad="javascript:__utmSetTrans()">'; ///This should be changed to match your current body code plus the onLoad="javascript:__utmSetTrans()" call } else { echo '<body>'; ////THE <body> SHOULD BE CHANGED TO WHATEVER YOUR CURRENT BODY CODE IS } ?>


QUESTION: I installed the module, but now I recieve an error message at the bottom of my page(s) that looks similar to the following:

Warning: main(includes/templates/template_default/google_analytics/google_analytics.php): failed to open stream: No such file or directory in xxx/catalog/includes/templates/custom/common/tpl_main_page.php on line 182
Warning: main(includes/templates/template_default/google_analytics/google_analytics.php): failed to open stream: No such file or directory in xxx/catalog/includes/templates/custom/common/tpl_main_page.php on line 182
Fatal error: main(): Failed opening required 'includes/templates/template_default/google_analytics/google_analytics.php' (include_path='.:/usr/local/lib/php') in xxx/catalog/includes/templates/custom/common/tpl_main_page.php on line 182

What have I done wrong?

ANSWER:
This type of error message means that the files which were uploaded were not put into the proper location. Specifically, the install file found at
/templates/your_template/google_analytics/google_analytics.php
was not uploaded to the correct location. Once that is in the correct location, this error message will go away. Here is further detail on how to put it into
the correct location.

Againg, this error is a direct result of not installing the "google_analytics" directory to the proper location (it contains the file that in included on the page
with the snippet of code you put into your "tpl_main_page.php" file.

The location of the directory should be in the following area:
/includes/templates/[YOUR CUSTOM TEMPLATE HERE]/

So, once you upload, your directory structure will look like this:
/includes/templates/[YOUR CUSTOM TEMPLATE HERE]/google_analytics

If you are using the default template, then obviously the path would look like this:
/includes/templates/template_default/google_analytics




QUESTION: I installed the new code, but now I am getting a JavaScript error on my pages that refers to "__utmSetTrans();". What does this mean
and how do I get rid of it?

ANSWER:
If you are receiving this error message, that means you did not follow step 8 included in these instructions. This included the removal of the line
of code that looks like "__utmSetTrans();" from the following file on your site /includes/modules/pages/checkout_success

Open that file, remove that line (or, if it is the only line shown in that file then you can remove the entire file) and the error should go away.


Zen Cart Commercial Support Resource

If you are still having problems or want to learn how to use Google Analytics to increase sales
from your website, vist the forums at: http://www.EcommerceAmplifier.com/forum/

6 Dec 2011, 10:57 PM
#1687
coffeecanada avatar

coffeecanada

New Zenner

Join Date:
Oct 2011
Location:
Toronto
Posts:
30
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Note that I did install it - and it did track yesterday's sales.

7 Dec 2011, 4:58 PM
#1688
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

coffeecanada:

Note that I did install it - and it did track yesterday's sales.

Excellent! Glad to hear everything is working for you!

8 Dec 2011, 3:21 PM
#1689
skinnyalbert avatar

skinnyalbert

New Zenner

Join Date:
Sep 2007
Posts:
30
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hello,

I saw a question in the thread previously, but didn't see an exact answer to my question.

I'm using a previous version of your analytic plugin on a site. I see eCommerce and conversions, but the source of all sale show my main page. I believe this is due to using a shared ssl and being redirected to a host gator https page during checkout.

Would updating the plugin address this issue, or could it be caused by something I'm not thinking of?

Thanks for the great plugin. Getting much more data than before, but need to find source of sale.

Thanks again!

9 Dec 2011, 7:17 PM
#1690
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

skinnyalbert:

Hello,

I saw a question in the thread previously, but didn't see an exact answer to my question.

I'm using a previous version of your analytic plugin on a site. I see eCommerce and conversions, but the source of all sale show my main page. I believe this is due to using a shared ssl and being redirected to a host gator https page during checkout.

Would updating the plugin address this issue, or could it be caused by something I'm not thinking of?

Thanks for the great plugin. Getting much more data than before, but need to find source of sale.

Thanks again!

The new plugin won't correct that. This sounds like an issue with either how you have your Google Analytics account setup (filters, goals, funnels etc..?) or with the redirect.

Does it track the keywords, etc... (along with the page) and are the keywords etc... all different (the keyword that generated the sale.) I'm trying to figure out what setting within your Analytics you might need to tweak but need more information.

9 Dec 2011, 7:51 PM
#1691
skinnyalbert avatar

skinnyalbert

New Zenner

Join Date:
Sep 2007
Posts:
30
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Thanks for the reply,

I installed the latest version anyway and along with the latest view of analytics, found more info than before by creating a goal, that tracks those that "Add to Cart" and then Login. Most of my logins are from purchases, so this almost works. I do see keywords and such for the site in general, but in relation to eCommerce the "Source" shows as my domain name.

Not sure if that helps. Thanks again for looking into this.

13 Dec 2011, 10:40 PM
#1692
scisupply avatar

scisupply

New Zenner

Join Date:
Dec 2011
Location:
Hamilton, OH USA
Posts:
10
Plugin Contributions:
0

Re: Simple Google Analytics - Support

scisupply:

V 1.3.9h with language packs

Eric,

I've spent considerable time trying to troubleshoot a fresh v 1.2.5 install on Zen V 1.3.9h. I've gone through all steps in the install, and I'm having trouble with the step #2. Although I have v 1.3.9h, it is heavily modified, and I cannot locate the following code in /public_html/includes/templates/template_default/common/tpl_main_page.php:

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
  • I proceeded through the rest of the steps even though this was missing, and completed the SQL patch install. I entered my analytics account info into the zencart module, and attempted to check status on google analytics page, but it is still saying tracking not installed, which is to be expected given the missing code above.

** The first troubleshooting paragraph deals with this issue, but I'm not able to understand exactly how to proceed, and I'm worried about screwing up the code / site by making an improper change to the tpl_main_page file. I'm not entirely certain about where and how to make the appropriate changes.

Question - Can you please clarify where this change is to be made in my tpl_main_page.php. The way I'm interpreting your instructions, I would add my current body contents to two areas as below, and the file would look like below after modification:

<?php if($page_directory == 'includes/modules/pages/checkout_success') { echo '<***PLACE MY BODY CONTENTS HERE*** onLoad="javascript:__utmSetTrans()">'; } else { echo '<***PLACE MY BODY CONTENTS HERE***>';} ?>

THANK YOU VERY MUCH FOR THIS GREAT CONTRIBUTION. I appreciate any help you can offer in getting it successfully installed...

Can anyone offer assistance for the above? Thanks...

17 Dec 2011, 10:32 AM
#1693
jameszxc avatar

jameszxc

New Zenner

Join Date:
Nov 2011
Posts:
12
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I am using zen-cart 1.39H
I did everything according to the readme.tex, and I can see "Google Analytics Configuration"in the admin page! but on the bottom of my site it shows:pageTracker._trackPageview(); pageTracker._trackPageLoadTime();
and on google analytics page, shows I have not installed the code, anyone knows what's wrong?this is the /common/tpl_main_page.php I added:```php
?>

<!--eof- banner #6 display --> <?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { // Do nothing } else { require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php'); } ?> </body> ``` and the configaration-"Google Analytics Configuration" I PASTE CODE```php <script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-27542444-1']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script> ```:oops:
18 Dec 2011, 5:24 PM
#1694
wicked_incense avatar

wicked_incense

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Re: Simple Google Analytics - Support

hello, i was going to install this module , got my files transfered , my theme is andover_modern...

/includes/templates/andover_modern/common/tpl_main_page.php

does not exist , so where am i to put the code that's supposed to go there ?

19 Dec 2011, 3:34 PM
#1695
fabienne avatar

fabienne

Zen Follower

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

Re: Simple Google Analytics - Support

Dear Eric-Thanks so much for your reply to my other question on another thread. You said for us to respond here. I did have my PHP nerd take off the old Analytics module and put on the new module. It now offers an "asychronous" Google Tracking Code type so I think we got it on there.

I did put in my account number (the UA-XXXXXXX-X number) and my conversion tracking number in the spaces provided and then chose Asynchronous and sat back waiting for data. There wasn't any. Maybe no one is responding to the Google ads but I doubt that is the case. So, I went to my ..../tpl_main_page.php page to see what was on there. I found this:

!--eof- banner #6 display -->

<?php /* Begin Simple Google Analytics */ if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { // Do nothing } else { require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); } /* End Simple Google Analytics */ ?>

// <script type="text/javascript">
//
// var _gaq = _gaq || [];
// _gaq.push(['_setAccount', 'UA-XXXXXXXX-1']);
// _gaq.push(['_trackPageview']);
//
// (function() {
// var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
// ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
// var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
// })();
//
// </script>

</body>

As you can see, the conversion tracking number is not on it. Should I put that in manually? Simple Google Analytics does not look like it put that in, should it have? I suspect it should look like this:
// _gaq.push(['_trackPageview','XXXXXXXXXX']);
With all of the X's being the conversion tracking number. Am I right, should I do that? Or has something else gone amiss? Thanks.

20 Dec 2011, 2:15 PM
#1696
wicked_incense avatar

wicked_incense

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Wicked-Incense:

hello, i was going to install this module , got my files transfered , my theme is andover_modern...

/includes/templates/andover_modern/common/tpl_main_page.php

does not exist , so where am i to put the code that's supposed to go there ?

Anything ? , should i just put it into my thank you for purchase part or what !?

20 Dec 2011, 10:15 PM
#1697
fabienne avatar

fabienne

Zen Follower

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

Re: Simple Google Analytics - Support

One simple question: The explanation on the Simple Google Analytics Module indicates that the Google Adwords Conversion Tracking number is 11 digits long, mine is only 10. Is there some extra number that you can put on the end of it? Have I chosen the wrong tracking number? I got it from this line of code that Google generated:

var google_conversion_id = XXXXXXXXXX;

I don't need the ; at the end do I? Thanks.

20 Dec 2011, 10:28 PM
#1698
fabienne avatar

fabienne

Zen Follower

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

Re: Simple Google Analytics - Support

My time is up for editing my question above, and (of course) I found a refinement to the question, so here it is:
I did start to get data, so perhaps it all had to percolate through the system. However, I am still not getting the data on conversion from my tpl_main_page.php. I know how many people came in because of paid advertising but did they buy anything? That is the question I can't answer. I must have a problem somewhere but I don't know where it is. I still wonder if the area above is not filled in correctly with my Conversion Tracking Number.

However, there is a small catch that worries me. The explanation on the Simple Google Analytics Module indicates that the Google Adwords Conversion Tracking number is 11 digits long, mine is only 10. Is there some extra number that you can put on the end of it? Have I chosen the wrong tracking number? I got it from this line of code that Google generated:

var google_conversion_id = XXXXXXXXXX;

I don't need the ; at the end do I? Thanks.

21 Dec 2011, 3:29 PM
#1699
wicked_incense avatar

wicked_incense

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Could someone please @ least give me a guesstimate that would be worth trying ? I'd really like to track my conversions.

28 Dec 2011, 9:14 PM
#1700
eastboy avatar

eastboy

New Zenner

Join Date:
Dec 2011
Posts:
27
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hello

I am running zen cart v1.3.9h and Mysql 5.5

I installed all the files and edited the tpl_main_page file

i then tried to install the SQL commands in Admin but got an error

1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 1
in:
[CREATE TABLE google_analytics_languages ( languages_id int(11) NOT NULL auto_increment, name varchar(50) NOT NULL default '', code char(10) NOT NULL default '', sort_order int(3) default NULL, PRIMARY KEY (languages_id), KEY idx_languages_name_zen (name) ) TYPE=MyISAM;]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

Any help please

thanks