If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Google Analytics Integration

Google Analytics Integration

Started by a_berezin on 20 Aug 2006, 8:28 AM · Views: 226,077

Results 21 to 40 of 660
31 Aug 2006, 11:22 PM
#21
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Google Analytics Integration

Andrew's great mod does it for you. :D

If you're still using 1.2.x you'll need to use the modified jscript_google_analytics.js code he posted above.

1 Sep 2006, 12:23 AM
#22
stephen avatar

stephen

New Zenner

Join Date:
Jul 2006
Posts:
12
Plugin Contributions:
0

Re: Google Analytics Integration

I am using 1.302, and I think Google is tracking without installing any other code, though I guess that statistics are compiled daily, so I'll have to wait a bit to see results show up on Google.
Thanks for the tip.

1 Sep 2006, 4:38 PM
#23
stephen avatar

stephen

New Zenner

Join Date:
Jul 2006
Posts:
12
Plugin Contributions:
0

Re: Google Analytics Integration

Note:
Google has changed the Analytics account to allow for monitoring of multiple sites, from one account.
So now your account number has an extra digit appended, e.g.
UA-64XXXX-1 for site one.
UA-64XXXX-2 for site two.
Make sure to use this complete number in your Zencart admin. settings for the Analytics mod. The default account ID shown in the mod is UA-64XXXX.

4 Sep 2006, 9:10 AM
#24
blessisaacola avatar

blessisaacola

Totally Zenned

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

Re: Google Analytics Integration

kelvyn:

Does anyone know if this mod works with the 1.3.5d release announced this morning?

Kelvyn, perhaps you should test some of the mods with 1.3.5 and report back if it works or not instead of post all over the forum about compatibility issues. 1.3.5 has just been released and people installing and testing it, give it some time for people to start reporting back.

4 Sep 2006, 9:18 AM
#25
blessisaacola avatar

blessisaacola

Totally Zenned

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

Re: Google Analytics Integration

No ill-will intended, I am testing as we speak right now some of the mods you mention and should be able to report back later if someone else didn't beat me to it. This thing is hot off the press you know! :)

4 Sep 2006, 1:03 PM
#26
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Google Analytics Integration

a_berezin:

For zen-cart 1.2 you may use this jscript_google_analytics.js:

/**

google_analytics_url = "http://www.google-analytics.com/urchin.js";
if (p = window.location.protocol) {
if (p == 'https:')
google_analytics_url = "https://ssl.google-analytics.com/urchin.js";
}
var oTheHead = document.getElementsByTagName("head").item(0);
var scrUTM = document.createElement("script");
scrUTM.type = "text/javascript";
scrUTM.src = google_analytics_url;
oTheHead.appendChild(scrUTM);
scrHTML = '';
scrHTML += "\n_uacct = '"+GOOGLE_ANALYTICS_UACCT+"';\n";
scrHTML += "urchinTracker();\n";
var scrUTM = document.createElement("script");
scrUTM.type = "text/javascript";
scrUTM.innerHTML = scrHTML;
oTheHead.appendChild(scrUTM);



Andrew,

This seems to break my store when viewed via IE6. Error: IE can not open the internet page www......... Operation aborted. It then goes to page not found.

Fine in FF but the google code is not properly loaded. I had assumed all was well as Firebug was picking it up.

Removing the .js resolves my problem.

Any ideas?

Thanks

Brent
4 Sep 2006, 4:24 PM
#27
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

Brent:

This seems to break my store when viewed via IE6. Error: IE can not open the internet page www......... Operation aborted. It then goes to page not found.I can not it understand :( In 1.3.5 i can't load in IE ANY jscript_*.js. But when I rename it to jscript_test.js it's work fine! Try to rename this js.
Brent:

Fine in FF but the google code is not properly loaded.You are sure? How you checked?

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

4 Sep 2006, 6:54 PM
#28
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

a_berezin:

I can not it understand :( In 1.3.5 i can't load in IE ANY jscript_*.js. But when I rename it to jscript_test.js it's work fine! Try to rename this js.I can't understand anything about IE! :( Now all work normal.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

4 Sep 2006, 9:48 PM
#29
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Google Analytics Integration

a_berezin:

I can not it understand :( In 1.3.5 i can't load in IE ANY jscript_*.js. But when I rename it to jscript_test.js it's work fine! Try to rename this js

No still consistent with me but I don't think it your mod :D Even in I load a blank .js I get the error so it must be something in 1.2.7 conflicting with other modifications I have made.

a_berezin:

You are sure? How you checked? Yes, my site loads without a problem in FF. I If I view the page source I get <script language="javascript" src="includes/templates/mytemplate/jscript/jscript_test.js"> but none of the code is loaded. Viewing with Firebug though it is all visible.

My test store directory is password protected so if you don't mind I'll PM the details so that you can see this for yourself first hand?

Regards

Brent

5 Sep 2006, 2:27 AM
#30
apinkpony11 avatar

apinkpony11

Zen Follower

Join Date:
Aug 2006
Posts:
112
Plugin Contributions:
0

Re: Google Analytics Integration

Hello.

Thanks for the module. I seem to be having some problems though. At first, it showed low-numbers of site views (1,2), but now it is showing absolutely none. I know I am getting site views, since when I visit my adsense account for the same day in question, it says things such as "56 views (low, but still better)", etc.

I have my information entered as the following.

Analytics Account UA-44XXXX-3
Target Address customers
Use sku/code products_model

Do you think I should go reupload the pages to my website? Perhaps they've been messed up somehow.

Thanks.

5 Sep 2006, 7:52 AM
#31
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

Brent:

Yes, my site loads without a problem in FF. I If I view the page source I get <script language="javascript" src="includes/templates/mytemplate/jscript/jscript_test.js"> but none of the code is loaded.Select all, View selected source code.

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

5 Sep 2006, 8:48 AM
#32
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Google Analytics Integration

Thank you :D I've always assumed that's what View Page Source (CTRL U) did.

Now just need to find out why my site won't load in IE.

7 Sep 2006, 10:38 PM
#33
kevnj avatar

kevnj

New Zenner

Join Date:
Jun 2006
Posts:
60
Plugin Contributions:
0

Re: Google Analytics Integration

Can we have a mod fix the first post as the information there is wrong on how to go about installing this. You have to read through to figure it out.

But seems as though I havent figured it out because when I click on check status on the google analyistics page it says not installed.

Does ont have to add this to every page/item?

7 Sep 2006, 11:00 PM
#34
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Google Analytics Integration

What is the "correct" way?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Sep 2006, 3:56 AM
#35
kevnj avatar

kevnj

New Zenner

Join Date:
Jun 2006
Posts:
60
Plugin Contributions:
0

Re: Google Analytics Integration

Well if one is going to release a product the correct installation information should be in the first post. not correct by someone else in the second post or tidbits of information found through a thread.

8 Sep 2006, 4:38 AM
#36
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Google Analytics Integration

I meant "what is the correct way to install it" ... not "what is the correct way to moderate" or "correct way to make a contribution".

Sounds like you've had some frustration with this contribution. I'm sure the author is sad to hear that.

If someone were to rewrite the installation instructions in full, and test that those new instructions were certain to work, and post those here, then a moderator might be convinced to add clarification to the original post.

Alternatively you might make a sizable donation to the author in appreciation for the great things this module is doing for your business, and thus convince him to do the rewrite for you and perhaps pay more attention to ensuring he made no more mistakes in future contributions he makes. :P

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

8 Sep 2006, 4:41 AM
#37
kevnj avatar

kevnj

New Zenner

Join Date:
Jun 2006
Posts:
60
Plugin Contributions:
0

Re: Google Analytics Integration

if i get the thing to work then i will.. until then this mod isnt working for me so there for i wont.... and if he only accepts paypal i won either cause im an anti paypal person... and since i just signed up for analystics im not even sure exactly what it does cause i cant get it to work so not sure if it will even be beneficial to my business

8 Sep 2006, 8:03 AM
#38
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

If you can't correct install such simple module, may be it's not for you? There can be to you better all make manually?

NOTE: We are sorry that Andrew is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

16 Sep 2006, 5:35 AM
#39
lala_g_clef_jewelry avatar

lala_g_clef_jewelry

Zen Follower

Join Date:
Apr 2006
Location:
Kansas
Posts:
233
Plugin Contributions:
0

Re: Google Analytics Integration

other than not wrapping MY mind around where to put my darn script from google, lol...

this mod was very easy to install and works like a charm!

Thanks!!!

G Clef Jewelry
Dichroic and Beaded Jewelry

21 Sep 2006, 9:17 PM
#40
jrb1512 avatar

jrb1512

Zen Follower

Join Date:
Sep 2006
Location:
Cheshire, UK
Posts:
100
Plugin Contributions:
0

Re: Google Analytics Integration

my analytics code is showing on my page source for shop pages but its not tracking in analytics the code is in the <head> tags for some reason?

Can this be corrected/