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

Google Analytics Integration

Views: 225,787

Results 381 to 400 of 660
7 Apr 2008, 8:10 AM
#381
a_berezin avatar

a_berezin

Deceased

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

Google Analytics Integration

gsdcypher:

I have this code in my tpl_footer:

<?php include($template->get_template_dir('tpl_footer_googleanalytics.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer_googleanalytics.php'); ?>
>  
> But I don't have any google analytics code in my tpl_main_page.... Is that OK???
I don't understand the question.
 
> **gsdcypher:**
>
> Also on my admin google analytics configuration I am missing the title on the 3rd and 4th lines. There is a value, but no title...
<http://www.zen-cart.com/forum/showpost.php?p=526525&postcount=378>
 
> **gsdcypher:**
>
> And my use page name is set to true... should that be set to false???
It's your choice. You must decide for yourself as you proceed.
8 Apr 2008, 3:14 PM
#382
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: Google Analytics Integration

I have this code in my tpl_footer, But I don't have any google analytics code in my tpl_main_page.... Is that OK???

<?php include($template->get_template_dir('tpl_footer_googleanalytics.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer_googleanalytics.php'); ?>

I don't understand the question.

It doesn't have to be in another place if I have it in the footer correct? I have seen other people instruct to put it in the tpl_main_page.

> And my use page name is set to true... should that be set to false???

*> *It's your choice. You must decide for yourself as you proceed. **

I phrased that badly... What does setting it true do? What does setting it to false do? BTW I have magic seo url installed if that makes a difference.

8 Apr 2008, 7:10 PM
#383
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

gsdcypher:

It doesn't have to be in another place if I have it in the footer correct? I have seen other people instruct to put it in the tpl_main_page.
Ask "other people" about it.
gsdcypher:

I phrased that badly... What does setting it true do? What does setting it to false do? BTW I have magic seo url installed if that makes a difference.[/I]
Better set it to false.

9 Apr 2008, 2:30 PM
#384
louis avatar

louis

Zen Follower

Join Date:
Jul 2006
Location:
Johannesburg
Posts:
408
Plugin Contributions:
0

Re: Google Analytics Integration

a_berezin:

Ask "other people" about it.

Better set it to false.

Come now Andrew, that was uncalled for. Why not just answer the question politely and move on.

gsdcypher, there is another contribution available in the downloads section called "simple Google analytics". It is in this contribution where it refers to tpl_main_page. I personally switched to the "simple google analytics" contribution for two reasons.

1.) SGA is fully XHTML compliant. This one is not.
2.) SGA offers the choice between the old or new Google scripts. A number of reports are out, complaining about the new script from Google not working properly. This has been confirmed by Google and they will be releasing a new version sometime in April 2008. This contribution ONLY uses the new script.
Your question regarding the true/false setting as follows: By setting this to false your actual page heading will be used as description in Google Analytics. If set to true you might get some weird page references in Google Analytics. See http://www.zen-cart.com/forum/showpost.php?p=532232&postcount=383 earlier in this thread.

9 Apr 2008, 7:20 PM
#385
gsdcypher avatar

gsdcypher

Totally Zenned

Join Date:
Feb 2007
Posts:
816
Plugin Contributions:
0

Re: Google Analytics Integration

Ahhh.... OK. That clears a lot up.
Thanks Louis. I appreciate it.
:cheers:

11 Apr 2008, 8:34 AM
#386
a_berezin avatar

a_berezin

Deceased

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

Re: Google Analytics Integration

Louis:

1.) SGA is fully XHTML compliant. This one is not.Really?
Louis:

A number of reports are out, complaining about the new script from Google not working properly. This has been confirmed by Google and they will be releasing a new version sometime in April 2008.
Please give me link to the official announcement.

I do not want to compare the ability of this module and sga. These comparisons are clearly not in favor of sga.
This module, I recommend using only those who understand that this is Google Analytics, experienced users.

Eric aka econcepts support is super!!! I recommend it to all. Especially newcomers.

12 May 2008, 1:14 AM
#387
youderian avatar

youderian

New Zenner

Join Date:
Feb 2008
Posts:
15
Plugin Contributions:
0

Re: Google Analytics Integration

First off, thanks for a great Mod Andrew! Makes GA with ZC really simple....

I've got the GA update successfully installed but the problem I'm having is that GA misses a number of my transactions (probably around 20%). I looked around in the support thread for this problem and found a few reasons for this (no javascript, page doesn't load, etc), but that was from a post 1+ years ago. Maybe the new versions have addressed these problems?

My question: Is there anything I can do/fix/check for to ensure the majority of my transactions get tracked and recorded? Is there something I'm missing or a bug I can fix? I'm currently using ZC v1.3.8 and the Analytics Mod v2.1.2. I can supply code of the checkout page if that helps.

Thanks.......

12 May 2008, 2:07 AM
#388
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: Google Analytics Integration

It seems a few people are having problems with this mod.
I like to keep thing simple and simply embed the GA code in the footer.php

No big modding, no errors. KISS?

12 May 2008, 7:24 AM
#389
numinix avatar

numinix

Totally Zenned

Join Date:
Apr 2007
Location:
Vancouver, Canada
Posts:
1,566
Plugin Contributions:
58

Re: Google Analytics Integration

bigbadboy:

It seems a few people are having problems with this mod.
I like to keep thing simple and simply embed the GA code in the footer.php

No big modding, no errors. KISS?

The author of this module has done a very good job of writing a Google Analytics script that is superior to simply embedding the code.

The modifications made to the site are not "big" and only require cutting and pasting a couple of lines of code (not much difference than cutting and pasting the GA code). The advantages of ecommerce tracking and page tracking by name is also extremely useful.

My tip to you is to try installing this module and see the difference in the statistics it generates in comparison to simply embedding the GA code.

12 May 2008, 7:58 AM
#390
bigbadboy avatar

bigbadboy

Totally Zenned

Join Date:
Apr 2008
Location:
London
Posts:
557
Plugin Contributions:
0

Re: Google Analytics Integration

I wasn't putting the mod down merely asking the question as some people are finding it difficult.

19 May 2008, 5:09 AM
#391
mauryg avatar

mauryg

Zen Follower

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

Re: Google Analytics Integration

I have 2 quick "newbie" questions. I installed the latest version of "Google Analytics by Andrew" v2.1.1 09.01.2008.

  1. my site is located at the root level, but Google Analytics would not recognize it until I put a trailing slash at the end of the URL. i.e. "www.mysite.com/" Is that normal?
  2. I inserted the required code line in tpl.main_page.php just above the </body> tag. When I view source on the page I notice that the code is 'commented'. ```
<!-- bof Google Analytics tracking --> <script type="text/javascript"> <!-- var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); //--> </script> <script type="text/javascript"> <!-- var pageTracker = _gat._getTracker('UA-XXXXXXX-X'); pageTracker._initData(); pageTracker._trackPageview(''); //--> </script> <!-- eof Google Analytics tracking -->

Is that normal?  (I deleted the tracking number for this post) 

Thanks Andrew for a great easy to use mod.
29 May 2008, 3:08 AM
#392
ipaulpro avatar

ipaulpro

New Zenner

Join Date:
May 2008
Posts:
15
Plugin Contributions:
0

Re: Google Analytics Integration

Hey all,

I ran into the ```
document.write("<script id='__ie_onload' defer='defer'></script>");


My question:

 Why are there two slashes in the script close tag? ```
<\/script>
```This is obviously what is not validating. I'm assuming there is a purpose, but am not familiar with it. :huh:

Thanks in advance.
29 May 2008, 7:46 AM
#393
mauryg avatar

mauryg

Zen Follower

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

Re: Google Analytics Integration

The extra slash on the closing tag "</script> is a technique for dynamically loading off-page javascript. For an explanation see:

http://www.codehouse.com/javascript/articles/external/

29 May 2008, 7:51 AM
#394
ipaulpro avatar

ipaulpro

New Zenner

Join Date:
May 2008
Posts:
15
Plugin Contributions:
0

Re: Google Analytics Integration

mauryg:

The extra slash on the closing tag "</script> is a technique for dynamically loading off-page javascript. For an explanation see:

http://www.codehouse.com/javascript/articles/external/
Great, thanks for taking the time to share mauryg!

23 Jun 2008, 1:44 PM
#395
gl330k avatar

gl330k

New Zenner

Join Date:
Jul 2007
Posts:
24
Plugin Contributions:
0

Re: Google Analytics Integration

Hello,

We upgraded to the new GA tracking code a couple weeks ago at which time I upgraded the ZC GA module. Since that point our GA tracking results during checkout have dropped to basically 0 results though the purchases continue like normal. (not sure if all tracking on secure pages is the issue.) It appears that tracking all other pages (product pages, etc) is working fine.

Can someone confirm that it looks like our GA is setup properly?
http://www.listenersbible.com/products

And can anyone offer suggestions on what we can do to fix tracking during checkout?

Thanks

28 Jun 2008, 1:53 PM
#396
knighs2 avatar

knighs2

New Zenner

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

Re: Google Analytics Integration

Just a question question guys. Does this mod track conversions as well as the anylitics side ?

Or is there a way to add the google conversion code to this mode ?

Thanks

Shane

23 Jul 2008, 11:52 PM
#397
pzgoozi avatar

pzgoozi

New Zenner

Join Date:
May 2008
Posts:
41
Plugin Contributions:
0

Re: Google Analytics Integration

Hello All
So i have uploaded all the files in the right folder from GoogleAnalytics By Dan. and also put the code that he said on my tpl_mailn_page.php at the very bottom of the page. i set up the google analytics from Google.com and also ut the UA number in my config , but from Google.com its giving me Tracking Not Installed. please help

thanks

24 Jul 2008, 2:31 AM
#398
miles avatar

miles

Zen Follower

Join Date:
Oct 2006
Location:
At Home
Posts:
357
Plugin Contributions:
0

Re: Google Analytics Integration

I have this problem about Google Analytics report. In the content detail section, I found out that most of my visitors visited these two pages;

http://www.mysite.com/outgoing/javascript:void(0)
http://www.mysite.com/ReviewsI don't know where these pages are but they are empty for sure.

One other thing is my Google Analytics 'Site Overlay' report. It doesn't gives any report on any of my page. All the links show 0% on hits.

What's the problem here and is there any fix for this? I need to customize or maybe remove those two empty pages. All also fix the 'Site Overlay' report.

Any help?

17 Aug 2008, 2:45 AM
#399
michaelhl avatar

michaelhl

New Zenner

Join Date:
Oct 2005
Location:
Germany
Posts:
60
Plugin Contributions:
0

Re: Google Analytics Integration

I installed this contribution and have no problems until now. Now I discover that the script produces a mistake when there is a apostrophe in the productname. The mistake appears because the inverted comma close the expected HTML content.

 
<script type="text/javascript">
<!--
  var pageTracker = _gat._getTracker('UA-XXXXXXX-1');
  pageTracker._initData();
  pageTracker._trackPageview('Daddy's best beer');
//-->
</script>

Isn't it possible to remove it, like seo it do.

21 Aug 2008, 2:22 PM
#400
eunaneunan avatar

eunaneunan

New Zenner

Join Date:
Aug 2008
Posts:
9
Plugin Contributions:
0

Re: Google Analytics Integration

Hello A_Berezin,
thanks for the download. Just working on this now. Took the download from the ZenCart download page and followed the instructions in the readme file. The files are in the right places and the code looks to be corrrect in the right places. My account is set up in google and i have added my account number from google Analytics UA - etc . but Google Says i am not being tracked yet. :blink:

my web page is https://www.interior-furniture.co.uk

I don't want to mess too much with any other settings in case i completly make a mess of things as i am not confident in what i am doing. I looked at the forum suggested in the readme file but some details of the install look different. i.e. did not notice any file called googlefoogle when i was doing my install.. all suggestions really welcome.. many thanks, Eunan in Ireland.