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

Simple Google Analytics - Support

Views: 451,179

Results 901 to 920 of 2,165
23 Apr 2009, 9:13 AM
#901
dgmdan avatar

dgmdan

New Zenner

Join Date:
Feb 2009
Posts:
12
Plugin Contributions:
0

Simple Google Analytics - Support

I too was having the error where the tracking code was not being printed, as well as the closing body and html tags.

The problem, it turns out, was that I copied google_analytics.php to the wrong directory. I had it incorrectly in /includes/templates/custom/common/google_analytics/google_analytics.php... when it should have been /includes/templates/custom/google_analytics/google_analytics.php

Dumb mistake I know. :oops: I read through the last 10 pages of this thread and noticed it's a common problem... so just a heads up.

2 May 2009, 9:24 PM
#902
fakedecoy avatar

fakedecoy

Zen Follower

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

Re: Simple Google Analytics - Support

Problem - About 20% of my transactions are missing from the below report and all other reports.

Google analytics: ecommerce->transactions, sort by transaction # descending.

I haven't found any commonalities among the missing transactions that differ from other transactions that were reported successfully.

Otherwise the conversion tracking is working fine. And the analytics reporting and adwords conversion tracking appear to be working.

Simple Google Analytics 1.2.2 on Zencart 1.3.8a. My sales are a mix between Paypal IPN (website payments standard) and credit card offline processing. Some sales for either payment method are missing. https://www.adamantbarbell.com

analytics configuration in zencart:

Analytics Account UA-356915-2

Target Address delivery

Affiliation adamantbarbell.com

Use sku/code products_model

Use Older "urchin.js" Tracking Code No

Activate Conversion Tracking Yes

Google AdWords Conversion Tracking Number 072280010

Google AdWords Language en_US

And in case it helps, I found the following code on the bottom of the source of my checkout_success page after I completed a test transaction with a dummy credit card number. Does it look okay?

<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-356915-2");
pageTracker._initData();
pageTracker._trackPageview();

pageTracker._addTrans(
"799",
"adamantbarbell.com",
"43.72",
"2.72",
"8.00",
"Richmond",
"California",
"United States"
);

pageTracker._addItem(
"799",
"ps-85415",
"Quick Tape Measure",
"Testing & Measurement",
"33.00",
"1"
);
pageTracker._trackTrans();</script><!-- Google Code for purchase Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 1072280010;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
	if (43.72) {
	  var google_conversion_value = 43.72;
	}
	var google_conversion_label = "purchase";
//-->
</script>
<script language="JavaScript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<img height=1 width=1 border=0 src="https://www.googleadservices.com/pagead/conversion/1072280010/?value=43.72&label=purchase&script=0">
</noscript>
3 May 2009, 4:47 AM
#903
dgmdan avatar

dgmdan

New Zenner

Join Date:
Feb 2009
Posts:
12
Plugin Contributions:
0

Re: Simple Google Analytics - Support

fakeDecoy:

Problem - About 20% of my transactions are missing from the below report and all other reports.

It's a problem on google's end. Apparently it was supposed to be fixed as of last month but I guess hasn't been. For now, change Use Older "urchin.js" Tracking Code to YES and it will work fine. I've been using it and the only drawback is my analytics reports visits to my store's home page as being from /mystore/index.html, when actually it should be index.php. All transactions are recorded though!

3 May 2009, 5:53 AM
#904
fakedecoy avatar

fakedecoy

Zen Follower

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

Re: Simple Google Analytics - Support

Is that what Google support told you? A look at their analytics forums suggest that others are having this issue but it isn't being recognized as an issue. One reply suggested that those 20% of customers have javascript disabled, which seems way high to me.

3 May 2009, 4:02 PM
#905
dgmdan avatar

dgmdan

New Zenner

Join Date:
Feb 2009
Posts:
12
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Nope did not talk to google. I was just going on what I've read here, plus that urchin.js rollback feature is only in existence because of the (previous?) problem that I was talking about. If there's a new problem I'm unaware.

4 May 2009, 2:27 AM
#906
artycles avatar

artycles

New Zenner

Join Date:
Sep 2006
Location:
Loch Victoria Australia
Posts:
45
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I'm using 1.3.8, and followed all the directions for the simple google analytics (I'm pretty sure I've done everything), however it's not showing up in google analytics as receiving. I've turned it on in google analytics as far as I can tell .

I've just ploughed through this thread and can't see anything that I've done incorrect, mind you I think my brain has gone to marshmallow about now.:blush:

My site is https://www.kaysartycles.com.au

Any suggestions - help is always appreciated.
Cheers

4 May 2009, 2:58 AM
#907
fakedecoy avatar

fakedecoy

Zen Follower

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

Re: Simple Google Analytics - Support

dgmdan:

Nope did not talk to google. I was just going on what I've read here, plus that urchin.js rollback feature is only in existence because of the (previous?) problem that I was talking about. If there's a new problem I'm unaware.

I see now that this option on the config page notes that the issue was supposed to be fixed Apr 2008. So I won't hold my breath. I've switched to urchin.js now.

4 May 2009, 3:22 AM
#908
dgmdan avatar

dgmdan

New Zenner

Join Date:
Feb 2009
Posts:
12
Plugin Contributions:
0

Re: Simple Google Analytics - Support

artycles:

I'm using 1.3.8, and followed all the directions for the simple google analytics (I'm pretty sure I've done everything), however it's not showing up in google analytics as receiving. I've turned it on in google analytics as far as I can tell .

I've just ploughed through this thread and can't see anything that I've done incorrect, mind you I think my brain has gone to marshmallow about now.:blush:

My site is https://www.kaysartycles.com.au

Any suggestions - help is always appreciated.
Cheers

Have you waited a full 24 hours? Analytics never shows data for the current day.

4 May 2009, 3:27 AM
#909
artycles avatar

artycles

New Zenner

Join Date:
Sep 2006
Location:
Loch Victoria Australia
Posts:
45
Plugin Contributions:
0

Re: Simple Google Analytics - Support

dgmdan:

Have you waited a full 24 hours? Analytics never shows data for the current day.

Thanks, I did think that, and although I have been waiting 24 hours each time, I did do another tweak today which needs to be taken into account I suppose.
patience Kay, Patience!

4 May 2009, 7:23 AM
#910
artycles avatar

artycles

New Zenner

Join Date:
Sep 2006
Location:
Loch Victoria Australia
Posts:
45
Plugin Contributions:
0

Re: Simple Google Analytics - Support

OK patience is rewarded thanks for the reminder about the time thing. that final tweak must have done the trick it's finally got a tick in the box not an exclamation mark. Now I only need to wait for the figures to come in.:clap:

4 May 2009, 9:14 AM
#911
markony avatar

markony

New Zenner

Join Date:
Mar 2009
Posts:
27
Plugin Contributions:
0

Re: Simple Google Analytics - Support

hello,
a lot of posts in this section! but where to find a proper (working)way to install Google Analytics
thank you

4 May 2009, 9:28 AM
#912
artycles avatar

artycles

New Zenner

Join Date:
Sep 2006
Location:
Loch Victoria Australia
Posts:
45
Plugin Contributions:
0

Re: Simple Google Analytics - Support

markony:

hello,
a lot of posts in this section! but where to find a proper (working)way to install Google Analytics
thank you

I downloaded the simple google analytics contribution (for which this thread is the support for) and followed the steps. Now I won't say I didn't have a few hiccough's but that was probably my inefficiency and lack of expertise. In the long run, it's working for me now and I'm a total novice. So I guess this contribution is pretty simple. The instructions were on the read me file within the download and if you just do everything step by step you should be fine.

4 May 2009, 9:45 AM
#913
markony avatar

markony

New Zenner

Join Date:
Mar 2009
Posts:
27
Plugin Contributions:
0

Re: Simple Google Analytics - Support

thank you for advise!
I'll try it
best regards

6 May 2009, 7:20 AM
#914
fakedecoy avatar

fakedecoy

Zen Follower

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

Re: Simple Google Analytics - Support

I think I identified a bug in version 1.2.2 of this mod. I found in AWStats that I'm getting calls to this file on my domain resulting in 404 errors:

/google-analytics.com/ga.js

I guess what it's supposed to do is call http://google-analytics.com/ga.js, right? I searched for the text /google-analytics.com/ga.js in zencart and found the below code in this file:

/home/myaccount/public_html/includes/templates/mytemplate/google_analytics/google_analytics.php

document.write(unescape(\"%3Cscript src='\" + gaJsHost + \"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E\")); 

Am I interpreting this correctly as what's causing the bug? How should I modify the code to fix it? I'm actually not using the ga.js code any more as of the other day, but perhaps this is what was causing the missing data with ga.js tracking from this mod in the first place.

I'm not sure what store page called the /google-analytics.com/ga.js file, because AWStatus only tells me the referrer was /index.php, which is the index page of my store and could mean any number of pages. But the above is the only code I found that seems to be calling /google-analytics.com/ga.js.

13 May 2009, 12:03 PM
#915
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

fakeDecoy:

I see now that this option on the config page notes that the issue was supposed to be fixed Apr 2008. So I won't hold my breath. I've switched to urchin.js now.

I haven't yet heard that this has officially been corrected. I've tried the GA.js version on a few sites for testing and still get discrepancies in reporting so I still use the legacy urchin.js version.

13 May 2009, 12:09 PM
#916
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

fakeDecoy:

I think I identified a bug in version 1.2.2 of this mod. I found in AWStats that I'm getting calls to this file on my domain resulting in 404 errors:

/google-analytics.com/ga.js

I guess what it's supposed to do is call http://google-analytics.com/ga.js, right? I searched for the text /google-analytics.com/ga.js in zencart and found the below code in this file:

/home/myaccount/public_html/includes/templates/mytemplate/google_analytics/google_analytics.php

document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

> 
> Am I interpreting this correctly as what's causing the bug? How should I modify the code to fix it? I'm actually not using the ga.js code any more as of the other day, but perhaps this is what was causing the missing data with ga.js tracking from this mod in the first place.
> 
> I'm not sure what store page called the **/google-analytics.com/ga.js** file, because AWStatus only tells me the referrer was /index.php, which is the index page of my store and could mean any number of pages. But the above is the only code I found that seems to be calling **/google-analytics.com/ga.js**.

Don't edit that info or you're going to cause  real mess.

That code is the exact code which Google tells you to insert (with that exact url) from inside Google Analytics. So unless there was an issue on Google end (temporarily?) then I don't think that the url is the issue.

If that was the simple fix then Google would have likely found it long ago. 

In fact, that url "google-analytics..." is one Google uses to run some of the analytics applications so it should be fine.

If you want to take a look at the code they tell you to insert to see it is the actual link they provide then simply login to your Google Analytics account, click on the "Edit" link from the main dashboard next to the website profile you want to edit and then on the next page click the "Check Status" link (upper right).

This will bring you to a page where you can actually see the code (both ga.js version and legacy version). 

Hope that helps!
19 May 2009, 3:13 PM
#917
noobuser avatar

noobuser

New Zenner

Join Date:
Feb 2009
Posts:
43
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hello,
I have read some of your posts on SGA. What I have done is that I added the analytics code in the header file - i know this is not the best way to do - but it works. I don't know what the implication would be though. This was just a test but it works - ran check status at Google analytics and confirmed ok ;-)

I wanted certain meta tags to be on all my pages so I followed the instruction as mentioned here - https://www.zen-cart.com/tutorials/index.php?article=62

Following this intructions to achieve my add on meta tags. At the end of the header file I added Google analytics.

Has anybody tried this ?
Anybody experienced any problems whilst using this.

I will be using traditional method to install SGA anyways but the alternative method does the trick too.
I am quite keen to know if anybody here has done this before.

Thanks in advance

20 May 2009, 8:20 AM
#918
khushil avatar

khushil

New Zenner

Join Date:
May 2009
Posts:
1
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi all,

I've installed this and followed all the instructions. I can see the code being inserted into my pages when I "view source", however GA still thinks that the tracking code is not installed. Anyone have any ideas please?

TIA
Khushil Dep
https://www.befancy.co.uk

20 May 2009, 12:35 PM
#919
noobuser avatar

noobuser

New Zenner

Join Date:
Feb 2009
Posts:
43
Plugin Contributions:
0

Re: Simple Google Analytics - Support

ok. i think i had this problem before in one of my site.
did you add your site on GA as .domainname.xxx or with www(dot)domainname.xxx.

I had to readd my domain name with www(dot)domainname.xxx and it worked all fine.
let me know how it goes.

24 May 2009, 12:49 PM
#920
scrap avatar

scrap

Zen Follower

Join Date:
Mar 2009
Posts:
103
Plugin Contributions:
0

Re: Simple Google Analytics - Support

First of all, thanks for this support thread!

I've come to a halt in the installation process at step 4, from which I'm to lame proceed. I've put the googleanalytics-INSTALL.sql and googleanalytics-UNINSTALL.sql in /public_html root and all the other files in the right directories (admin, includes etc), but now I actually want to install it. The readme says

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

When I go to Tools->Install SQL i see, in strong red, NOTE: Zen Cart database-upgrade scripts should NOT be run from this page.. I mean, isn't this exactly what we're doing?

Anyhow, how do I proceed? Do I need to run a SQL query in the upper box?

Heeeelp!