Zen Cart Logo
Forums / All Other Contributions/Addons / Google Analytics Integration

Google Analytics Integration

Views: 225,806

Results 321 to 340 of 660
8 Oct 2007, 3:58 AM
#321
econcepts avatar

econcepts

Totally Zenned

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

Google Analytics Integration

Brent2:

Folks:
I have been using the google analytics module for months now and it has been working great. Then I was trying a bit of affiliate tracking code and deleted the google analytics code form tpl_main_page.php.
Then I put it back.
Now when I run a test transaction I get an error at the bottom of the browser of the checkout_success page that says:

Line: 25
Char: 1
Error: 'Total_Cost' is undefined
Code: 0
URL: https://I-Have-My_URL-Here.com/cart/index.php?

Is this a cache problem?
Do I need to re-install the module?

I know I didn't have the error before because I was on the look-out for that sort of error.
Any words of wisdom?
Thank you,
Brent

I would try to reinstall the module and make sure you haven't missed any files or anything. There are only a few to upload, so if that doesn't solve it, then I would check other modules you have installed as well to see if that is the culprit.

21 Oct 2007, 3:22 PM
#322
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: Google Analytics Integration

Hi

How do i Unistall this mod, i can't find the uninstall.sql in the folder

Thank you

21 Oct 2007, 3:42 PM
#323
brent2 avatar

brent2

New Zenner

Join Date:
Mar 2007
Location:
Seattle
Posts:
38
Plugin Contributions:
0

Re: Google Analytics Integration

Thank you econcepts.

21 Oct 2007, 5:10 PM
#324
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

motti:

Hi

How do i Unistall this mod, i can't find the uninstall.sql in the folder

Thank you

Run the following SQL query from within the Admin and then delete all files you installed with the contribution. Don't forget to remove the require statement from the tpl_main_page.php page.

#Uninstall Simple Google Analytics
SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4
FROM configuration_group
WHERE configuration_group_title= 'Google Analytics Configuration';
DELETE FROM configuration WHERE configuration_group_id = @t4;
DELETE FROM configuration_group WHERE configuration_group_id = @t4;
DROP TABLE IF EXISTS google_analytics_languages;

21 Oct 2007, 6:17 PM
#325
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: Google Analytics Integration

Hi

Thank you for the sql, I done it.

I need bit more help on that

  1. where is the file located tpl_main_page.php page. and what statement I need to remove

where can I find what version do I have, and how can I find out which folder to delete?, ( i assume i need to download it again and match up the files so I know which folder to delete)

I install this mod long time ago, and never really use it that’s why I don’t remember what and where

thank you

21 Oct 2007, 9:00 PM
#326
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

I'm not sure what version you are running. The most current version is 1.1.

I was not involved in version 1.0. The best thing I can tell you is to simply look at the original files that came with your install (if you don't know where they are, download a new copy of the version you have from the downloads section) and "reverse" delete them. (Look at where the files in the original install were located and find them in your install. Delete or edit as needed.

tpl_main_page.php is found in your "common" folder (start in includes to find it).

If you are running a version older than 1.0 (I think someone had even a different version running prior to that) then you'll have to find those files as reverse them as well.

The best thing I can suggest is to find your original install and "follow the dots" and "reverse follow the original instructions for install". If you trace it all backwards, you'll be able to uninstall.

Good luck!

21 Oct 2007, 11:21 PM
#327
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: Google Analytics Integration

Thank you for your help,
I folow your instruction and it work good.

26 Oct 2007, 6:43 PM
#328
motti avatar

motti

Zen Follower

Join Date:
Feb 2007
Location:
Los Angeles
Posts:
348
Plugin Contributions:
0

Re: Google Analytics Integration

Hi
I am not sure if this is the right place to post it, if It is , please let me know where should I post it.
I am using the Google analytics, with out any mod from zen
It dose track my traffic and I can see lots of reports,but it dose not track my Ecomerce sales
I did set it up as google instruction on their site
My question ,

  1. could it work with out any mod from zen?
  2. to which page do I insert the code I got from google ( it is now on my /public_html/includes/templates/my template/common/tpl_main_page.php
    and I only add one code from google
    Should I have add another code? If so which one
    Thank you for your help
27 Oct 2007, 1:59 PM
#329
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

motti:

Hi
I am not sure if this is the right place to post it, if It is , please let me know where should I post it.
I am using the Google analytics, with out any mod from zen
It dose track my traffic and I can see lots of reports,but it dose not track my Ecomerce sales
I did set it up as google instruction on their site
My question ,

  1. could it work with out any mod from zen?
  2. to which page do I insert the code I got from google ( it is now on my /public_html/includes/templates/my template/common/tpl_main_page.php
    and I only add one code from google
    Should I have add another code? If so which one
    Thank you for your help

You can use Google Analytics without the mod, BUT you would have to install and configure code by hand. It can be done though, but is a lot more trouble than simply using the mod which does it for you.

In any event, yes, you can use E-commerce tracking by installing code by hand if you want. It requires the insertion of the code using PHP into the proper files manually. There are a number of them you have to alter to do it manually, but again, it can be done, but it is time consuming when done manually.

27 Oct 2007, 5:16 PM
#330
blessisaacola avatar

blessisaacola

Totally Zenned

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

Re: Google Analytics Integration

Can someone please clarify if it makes a difference how Google AdWords Conversion Tracking Number is entered on the configuration screen. The format on the configuration side is XXXXXXXXXX and the format on google adwords side is XXX-XXX-XXXX

Thanks!

28 Oct 2007, 1:08 AM
#331
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

BlessIsaacola:

Can someone please clarify if it makes a difference how Google AdWords Conversion Tracking Number is entered on the configuration screen. The format on the configuration side is XXXXXXXXXX and the format on google adwords side is XXX-XXX-XXXX

Thanks!

Yes, it makes a difference. I have not seen a google adwords conversion tracking number with the "dashes". Unless they changed something, I am not aware of any.

In any event, the typical conversion tracking # usually does not have the dashes and thus should not be entered. If you could post a screen shot (or PM it to me), I'd be interested in seeing what you are looking at for research. It always helps to understand any latest potential changes.

Thanks!

28 Oct 2007, 1:27 AM
#332
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Re: Google Analytics Integration

Hmmm i thought it had dashes as well....

I couldn't find the number in google analytics but when I got the email for google, it said:

Your AdWords account number: ###-###-####

(# represents numbers given in email)

I assumed that was what I was suppose to put in google analytics mod.

28 Oct 2007, 6:14 PM
#333
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

The way to be sure is to login to your Google Adwords account and then get the number that way (act like you are setting up conversion tracking, and take note of the number within the script they give you to insert).

It could be that any of these variations work. I will research it to find out if there have been any alterations to the numbers recently.

28 Oct 2007, 8:26 PM
#334
trvlfox avatar

trvlfox

Zen Follower

Join Date:
Aug 2007
Location:
Fort Worth, Texas, United States
Posts:
156
Plugin Contributions:
0

Re: Google Analytics Integration

That worked perfectly.. I guess I didn't notice the Conversion Tracking tool.

25 Jan 2008, 1:35 PM
#335
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

v 2.0.0 13.01.2007 10:24

  1. Remove variant_javascript.
  2. Add conversion code (thanks econcepts).
  3. Use order class instead of db queries for building E-Commerce Transactions tracking.
  4. Add attributes to products name in E-Commerce Transactions tracking;
  5. Add F5 (page reload) protection in E-Commerce Transactions tracking.
    v 2.1.0 30.12.2007 14:32
  6. Support new version of the Google Analitycs tracking code.
    v 2.1.1 09.01.2008 19:56
  7. Add tracking clicks on outgoing links. Thanks http://designformasters.info/posts/google-analytics-advanced-use/.
    (for more information read http://www.google.com/support/googleanalytics/bin/static.py?page=troubleshooter.cs&problem=tracking&selected=tracking_outbound)
25 Jan 2008, 3:26 PM
#336
jacka avatar

jacka

Zen Follower

Join Date:
Nov 2007
Location:
Dallas, Texas USA
Posts:
180
Plugin Contributions:
0

Re: Google Analytics Integration

Two questions:

If I move my site to a different host, do I need a new analytics code and reinstall?

This mod says it applies to Zen Cart v 1.3.6. Will it work for 1.3.8a?

25 Jan 2008, 4:04 PM
#337
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

JackA:

If I move my site to a different host, do I need a new analytics code and reinstall?
No

JackA:

This mod says it applies to Zen Cart v 1.3.6. Will it work for 1.3.8a?
Yes

25 Jan 2008, 4:47 PM
#339
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
730
Plugin Contributions:
0

Re: Google Analytics Integration

Hello Andrew,

This may be just my store setup, but I installed the mod and sql patch. If I have something in my basket and go to checkout, it pops up with the following.

Do you want to display the unsecure items on this page?

YES NO

I found that if I delete the javascript file for this mod, the problem goes away. Obviously the mod won't work without them.

I added the code to the bottom of tpl_footer as stated.

I have simple google analytics by Eric also. Is that the reason?

Yours is for ecommerce tracking, and Erics covers the rest so I would like the two really.

Just thought I would let you know about it anyway.

Thanks in advance,

Heathenmagic

26 Jan 2008, 8:50 AM
#340
a_berezin avatar

a_berezin

Deceased

Join Date:
Aug 2004
Location:
Saint Petersburg, Russia
Posts:
1,782
Plugin Contributions:
5

Re: Google Analytics Integration

HeathenMagic:

Yours is for ecommerce tracking, and Erics covers the rest so I would like the two really.
You wrong. Both module tracking ecommerce and the rest. The Erics module is based on older version of my module.
Use only one module. Erics support is best!