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

Google Analytics Integration

Views: 225,787

Results 301 to 320 of 660
17 Jul 2007, 9:44 PM
#301
cntgifts avatar

cntgifts

Totally Zenned

Join Date:
Sep 2005
Posts:
836
Plugin Contributions:
0

Google Analytics Integration

download link for this is broke

17 Jul 2007, 11:58 PM
#302
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

Try the one in the Zen Downloads section. Other Contributions.

18 Jul 2007, 10:04 PM
#303
bonheddwr avatar

bonheddwr

Zen Follower

Join Date:
Jun 2007
Location:
Cymru
Posts:
124
Plugin Contributions:
0

Re: Google Analytics Integration

I'd like to add Google Analytics to my Zen cart store. There is a lot of conflicting advice on these forums regarding what is the best policy i.e. insert code yourself or use one of the modules. If module, which one gives the best results? Simple Google Analytics Module?

18 Jul 2007, 11:13 PM
#304
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

The easiest route is to start with the module available in the downloads section called Simple Google Analytics.

It will help with installing Google Analytics and E-Commerce tracking. However, if you want to install Conversion Tracking, you will need to manually add code to the proper page in order to get it to work.

Also, if you want to utilize Goals and Funnels, you will need to set these up separately from within your Google Analytics account.

Hopefully that helps.

19 Jul 2007, 1:50 AM
#305
oneworldstudios avatar

oneworldstudios

New Zenner

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

Re: Google Analytics Integration

hey guys,
does anyone else get a "Done, but with errors on page." error in IE?

when i had originally installed google analytics on my website (before zen) i ran into the error and google told me to try moving it to the header, before any other javascripts. this fixed the problem, but this mod puts it at the bottom of my zen pages and i'm seeing that familiar error again. any workarounds or advice?

19 Jul 2007, 2:37 AM
#306
oneworldstudios avatar

oneworldstudios

New Zenner

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

Re: Google Analytics Integration

also... when i double click to see the actual error it says "object expected" and refers to line 270 where my code says "urchinTracker ();"

19 Jul 2007, 10:58 AM
#307
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

It sounds like you might have missed adding the ".js" file to the proper directory for the analytics to start "On Load".

This would give you a js error if you loaded a page and it was given a js command to start an "object" that wasn't present (because it was never defined).

I would check to make sure you have all of the files in place (there should be 2 if you are using the Simple Google Analytics module in the dloads section).

19 Jul 2007, 8:09 PM
#308
oneworldstudios avatar

oneworldstudios

New Zenner

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

Re: Google Analytics Integration

i found that manually adding the code to my tpl_main_page.php and altering it made the error go away. i wonder if it is still working or did i kill it in the process? -i removed the closing and beginning statements from the two pieces of code because they seemed redundant...but i'm an amateur...

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> _uacct = "UA-xxxxxxx-x"; urchinTracker(); </script>
19 Jul 2007, 8:42 PM
#309
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

Make sure that if you manually add the code, that you remove the initial "third party module" as you don't want to have two different tracking codes on the same page like that (at least two of the SAME codes).

Also, did it work because you also removed the "on load" event from the page, and not just because the code was manually added?

I would check that as well.

Lastly, in the code you presented, you are missing a part. The code should look like this on the page (whether you manually enter it or use the module). In your post, it looks like you have combined everything into one .js script.

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "UA-xxxxxx-x"; urchinTracker(); </script>

I have performed it both ways on numerous sites (with the add-on and then manually without the add-on) and the only time I ever received an error was when the on load event was not correctly added to the page, or if the code split across multiple lines (when it should have been just on one line in some spots.)

Hope that helps!

19 Jul 2007, 9:15 PM
#310
oneworldstudios avatar

oneworldstudios

New Zenner

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

Re: Google Analytics Integration

yes, i combined it into one script and the error went away. do you think i killed the functionality by combining it?

onload is still there, i just took out the php code from the mod and inserted the google code manually. has removing the onload worked for you in the past?

here's mine...anything funky here?

<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
20 Jul 2007, 4:35 PM
#311
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

Not sure if you killed it, but I can tell you that it would be best to insert the code exactly as Google gives it (which is split). They have a reason for it I'm sure, and many parts of their tracking are dependent on other parts so, placement might be an issue.

You should not remove the "onload" ability as that is what "activates" the objects needed to run the tracking in the first place.

What I would recommend doing is starting over with it. From the beginning. Use the Simple Google Analytics Module as a foundation, and you should be OK.

There should be no need to manually alter code at all if you install that (unless of course you want to add Conversion Tracking, Goal Tracking, or Funnels).

20 Jul 2007, 4:44 PM
#312
oneworldstudios avatar

oneworldstudios

New Zenner

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

Re: Google Analytics Integration

from what i researched, ie7 is a nightmare regarding this issue. it's the only browser that shows the error so people are just living with it. lots of mainstream online stores get the error... i just hate seeing any errors on the site...

20 Jul 2007, 10:53 PM
#313
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

Thanks for the update Zack!

7 Aug 2007, 11:42 PM
#314
pastgentoys avatar

pastgentoys

Zen Follower

Join Date:
Jun 2007
Posts:
169
Plugin Contributions:
0

Re: Google Analytics Integration

I have analyitcs installed and it seemed to be working. I changed hosting companies and now sales are randomlly registering. E-Commerce is on but sales just aren't showing up. Any idea what could cause this?

7 Aug 2007, 11:56 PM
#315
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

A few things you could look into:

When you changed hosting companies, did you make sure you moved all the files properly?

How many sales are random? Is it a large amount or small random amount? It would be a long shot, but users who are blocking JavaScript will not be tracked by Google.

Have you run through the checkout process yourself and then did a view source on the "checkout success" page to determine if he code is present, and if it is placed correctly?

These are where I would start to find out "why"?

It shouldn't matter who you host with as long as the code is untouched and in place.

24 Sep 2007, 10:49 PM
#316
newbey avatar

newbey

New Zenner

Join Date:
Nov 2006
Posts:
22
Plugin Contributions:
0

Re: Google Analytics Integration

Has anyone successfully integrated / modified Simple Google Analytics to get conversion tracking from Yahoo! PPC Campaigns?
I have Simple Google Analytics up and running, but I can't figure out how to get conversion tracking out to my Yahoo PPC campaigns.

25 Sep 2007, 1:13 AM
#317
mrforce avatar

mrforce

New Zenner

Join Date:
Aug 2006
Location:
Big D
Posts:
36
Plugin Contributions:
0

Re: Google Analytics Integration

Newbey,

PPC tracking can be accomplished by manually inserting tracking code parameters in your campaign link addresses. These documents may help:
http://www.google.com/support/analytics/bin/answer.py?answer=27282
and
http://www.google.com/support/analytics/bin/answer.py?answer=27255&hl=en

Essentially, your yahoo link would look something like this:
http://www.mywebsite.com/my_yahoo_landing_page.html?utm_source=yahoo&utm_medium=cpc&utm_term=pet_supplies&utm_campaign=MyPetSupplyCampaign

Hope this helps,

25 Sep 2007, 1:14 AM
#318
mrforce avatar

mrforce

New Zenner

Join Date:
Aug 2006
Location:
Big D
Posts:
36
Plugin Contributions:
0

Re: Google Analytics Integration

Just to be sure this shows up correctly:

http://www.mywebsite.com/my_yahoo_landing_page.html?utm_source=yahoo&utm_medium=cpc&utm_term=pet_supplies&utm_campaign=MyPetSupplyCampaign
26 Sep 2007, 11:26 PM
#319
econcepts avatar

econcepts

Totally Zenned

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

Re: Google Analytics Integration

newbey:

Has anyone successfully integrated / modified Simple Google Analytics to get conversion tracking from Yahoo! PPC Campaigns?
I have Simple Google Analytics up and running, but I can't figure out how to get conversion tracking out to my Yahoo PPC campaigns.

Setup Cross Channel Tracking in your Google Account and that will allow you to track yahoo from within your Google account.

6 Oct 2007, 3:29 AM
#320
brent2 avatar

brent2

New Zenner

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

Re: Google Analytics Integration

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