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

Simple Google Analytics - Support

Views: 451,154

Results 1,521 to 1,540 of 2,165
2 May 2011, 2:52 PM
#1521
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,676
Plugin Contributions:
0

Simple Google Analytics - Support

How do I uninstall the SQL from the Database?

3 May 2011, 5:03 PM
#1522
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

bkeaton:

How do I uninstall the SQL from the Database?

There is an uninstall SQL patch included with the package. Just run that from your admin.

4 May 2011, 10:57 AM
#1523
gaffettape avatar

gaffettape

Zen Follower

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

Re: Simple Google Analytics - Support

econcepts:

This should work for you (from my previous post you referenced. I've got it on a few sites and it works ok. Are you pasting the code as indicated into the correct location in your admin? What type of results are you getting?

Hi Eric,

I think I have added the code correctly - see my code below as it appears on my site (minus account number etc.)

<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-XXXXXXXX-X");
pageTracker._initData();
var ref = document.referrer;
if (ref.search(/images.google/) != -1 && ref.search(/prev/) != -1) {
var regex = new RegExp("images.google.([^/]+).*&prev=([^&]+)");
var match = regex.exec(ref);
pageTracker._clearOrganic();
pageTracker._addOrganic("images.google."+ match[1],"q");
pageTracker._setReferrerOverride("http://images.google." + match[1] + unescape(match[2]));
}
pageTracker._trackPageview();
</script>

As I mentioned in a previous post, I have added the code you suggested, however GA still doesn't appear to be tracking image search data. In my GA account the searches still show as "google.com (referral)" then "/imgres" then if I try and found out the keyword it says "(not set)"

7 May 2011, 8:05 PM
#1524
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Simple Google Analytics - Support

There seems to be bug, or incompatibility, between his mod and fec (Fast and Easy Checkout). Fec has been installed for months, when installed this the checkout stopped working. Disabling fec allowed the default checkout to work.

For now, I've disabled Simple Google Analytics and installed the analytics code directly. Anybody else see this or know what the conflict is?

7 May 2011, 8:11 PM
#1525
gaffettape avatar

gaffettape

Zen Follower

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

Re: Simple Google Analytics - Support

jeking:

There seems to be bug, or incompatibility, between his mod and fec (Fast and Easy Checkout). Fec has been installed for months, when installed this the checkout stopped working. Disabling fec allowed the default checkout to work.

For now, I've disabled Simple Google Analytics and installed the analytics code directly. Anybody else see this or know what the conflict is?

That's strange, I have FEC (1.9.4) and this mod working fine together...?

Just thought I'd let you know.

7 May 2011, 8:25 PM
#1526
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Simple Google Analytics - Support

gaffettape:

That's strange, I have FEC (1.9.4) and this mod working fine together...?

Just thought I'd let you know.

In checking the version, it's actually the FEC AJAX version 2.13.2

7 May 2011, 8:30 PM
#1527
gaffettape avatar

gaffettape

Zen Follower

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

Re: Simple Google Analytics - Support

jeking:

In checking the version, it's actually the FEC AJAX version 2.13.2

Ah, you're using the AJAX version, I'm using the standard version.

In that case, disregard my previous post!

9 May 2011, 2:55 PM
#1528
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

jeking:

In checking the version, it's actually the FEC AJAX version 2.13.2

I'll have to take a look at that Jim. What specifically happens when the two are installed?

I've seen a number of other things "stop working" (on other sites) when that AJAX version is installed. It seems as though it uses it's own framework and in pulling parts of that in causes incompatibilities with some other items.

One thing I will note is I have had no issues with it working when that version is in effect (error wise.) I've worked with a number of stores using that and had no issues.

Having said that, the only way I think it wouldn't work is if the AJAX version overrides the footer / checkout success portions of the site. The only thing the Simple GA mod does is install Google tracking on the bottom of the page (or top of using Asychronous code.)

Let me know what problems you see and we'll try to determine what is causing it.

Thanks!

9 May 2011, 3:15 PM
#1529
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Thanks Eric.

The problem is the shopping cart page will not load. It returns an empty page. Whether logged in or not. However, the item does get added to the cart. Meaning when I remove the module, the item I tried to add is in my cart.

I had the Asychronous code installed. When I switched and added the google code directly to the html_header.php file, it works fine.

10 May 2011, 1:45 PM
#1530
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

jeking:

Thanks Eric.

The problem is the shopping cart page will not load. It returns an empty page. Whether logged in or not. However, the item does get added to the cart. Meaning when I remove the module, the item I tried to add is in my cart.

I had the Asychronous code installed. When I switched and added the google code directly to the html_header.php file, it works fine.

IF you get a blank white page, that usually means there is a PHP error somewhere. Make sure when you installed the mod (specifically the async portion) that you didn't include or remove any "extra" info that would cause the PHP to stop.

TO find out exactly where the error is, reload that page with Analytics installed (so it goes "white") then look in your "cache" directory for the Mydebug ... error log (with the same dat and time you accessed the file with.) This will tell you what the error is, and what line it can be found on so it can be corrected.

My guess is that during install, some code might have been added that threw the async portion off.

Let me know what you find out.

Thanks!

10 May 2011, 6:23 PM
#1531
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I looked at the log file and found this:
[07-May-2011 12:42:19] PHP Warning: require(includes/templates/defend/quick_checkout//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/ready20/public_html/includes/templates/MY_TEMPLATE/common/html_header.php on line 80

In digging into the ajax version of FEC ( I didn't install it), I see it redirects to it's over version of the html_header.php file in /includes/templates/MY_TEMPLATE/quick_checkout

Code:

<?php if ((isset($_REQUEST['request']) && $_REQUEST['request'] == 'ajax') || (isset($_SESSION['request']) && $_SESSION['request'] == 'ajax')) { // do nothing //echo '<!-- request = ' . $_REQUEST['request'] . ' -->'; //echo '<!-- session = ' . $_SESSION['request'] . ' -->'; } else { // not ajax, so load regular file if (file_exists(DIR_WS_TEMPLATE . 'common/html_header.php')) { require(DIR_WS_TEMPLATE . 'common/html_header.php'); } else { require(DIR_WS_TEMPLATES . 'template_default/common/html_header.php'); } } ?>

No sure I know why it doesn't work but adding the analytics code to the html_header.php file the old fashioned way works, so that's what I did.

Figured I post what I found here in case you can figure what the problem or for others in the same situation.

11 May 2011, 12:08 PM
#1532
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Ah I see what it is doing. When using that version it reworks the directory level to want to look for the google_analytics.php file outside of the directory it is now in and instead wants it to be in the "quick_checkout" directory (from this angle that is what it looks like.)

I would bet if you include the google_analytics.php file in there it should work. Just a thought.

Thanks for posting the find!

15 May 2011, 5:32 PM
#1533
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Thanks for the mod. I successfully installed it and then noticed in FireFox 4.01 that the header of my site changed, specifically the top left logo shifted down a couple of spaces. It looks fine in IE9.

I checked the additions to the tpl_main_page and html_header files and am not sure what may be the issue...I don't see anything obvious like a <br /> or extra line. Any ideas?

Cheers,

R

1.39g
avenue-r.com

16 May 2011, 1:36 PM
#1534
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Unless you altered something accidentally on install (mainly of pasting items into the header sections you mentioned) then it shouldn't have any effect on your design layout.

I would go back and make sure you didn't make any unwanted changes to those files and then check your stylesheet etc... to see if you need any adjustments there.

Let me know if that helps.

16 May 2011, 6:30 PM
#1535
giftmeister avatar

giftmeister

Zen Follower

Join Date:
Jan 2009
Location:
Montreal, Canada
Posts:
230
Plugin Contributions:
0

Re: Simple Google Analytics - Support

D'oh! I realized the issue was something else I changed last week and only noticed now. Thanks.

18 May 2011, 11:57 AM
#1536
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

giftmeister:

D'oh! I realized the issue was something else I changed last week and only noticed now. Thanks.

No problem. It happens. :)

31 May 2011, 7:28 AM
#1537
jasmel avatar

jasmel

Zen Follower

Join Date:
Feb 2008
Location:
Washington State
Posts:
230
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have the most recent version of this contribution however, running on 1.38a (heavily modded)

In Google Analytics it shows this:

Product Revenue $14.95 - Quantity - 1 

When in fact it should be 23.

I do not allow the customers to just simply choose a quantity from the quantity box since each product has it's own customization.

So, this order was all for the same product but with different attribute/values selected. (from over 2,000 choices)

Is there something I need to do to my code to have Google correctly track this order? Right now it thinks I sold only "one" of that "one product". I'm sure this is messing with my counts for the year and other metrics / etc...

Thank you for any help in this matter.

31 May 2011, 2:12 PM
#1538
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

I've got it running fine on a number of sites that use multiple attributes etc... and it all works fine.

Let's see if we can't narrow down the problem on your site here.

I'm not sure which portion you said was incorrect however in your description.

Is the "quantity" being calculated incorrectly (which causes the price to be incorrect)?

Is it the "total" that is being calculated incorrectly (and the quantity etc... is all correct?

I suspect that maybe somewhere in your programming (if any of the heavily modded sections deal with the attributes and pricing) that this might be the cause. My thinking is that if this has been modified then maybe the total is not being carried over correctly (to the proper value) and this is causing the analytics to only pick up the total (minus the attributes).

Let me know answers to the above and we'll see if we can't sort it out.

3 Jun 2011, 11:52 PM
#1539
creepyd avatar

creepyd

New Zenner

Join Date:
Jan 2009
Posts:
38
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I posted a thread, but I now see this thread!
Simple problem, hopefully a simple fix.

My website is not passing the session information to Paypal, so when they return to the site to complete the sale google analytics shows every sale as [mysite].co.uk instead of the actual traffic source. The traffic source does show up correct in other areas of analytics, just not for purchases.
In Paypal I have added utm_nooverride=1 to the return page in Paypal's settings - That's suppose to pass the session back from Paypal to my site.
So my guess is that it's still not working as my site is not passing the info to Paypal.

I assume I have to add something in my google_analytics.co.uk to do that?

4 Jun 2011, 1:07 AM
#1540
blessisaacola avatar

blessisaacola

Totally Zenned

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

Re: Simple Google Analytics - Support

econcepts, how does setting Recreation Session in Admin - Session to True affect this mod? Obviously, when this is set to true, the session will change when the customer attempts to login or create account. How does this affect tracking?

Thanks!