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

Simple Google Analytics - Support

Views: 451,188

Results 1,161 to 1,180 of 2,165
17 Mar 2010, 6:42 PM
#1161
econcepts avatar

econcepts

Totally Zenned

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

Simple Google Analytics - Support

Yes, that is correct.

Since the code is placed properly yet is still not showing up on your site make sure you:

  1. Check to ensure the tpl_main_page.php is in the proper location for the template you are using.

  2. The Smart Backgrounds does not override the footer file in any way with it's own code (which might override this.)

I would suspect it is probably more than likely #1 on this list.

If we can't get it figure out I can get in and take a look for you.

Just let me know.

17 Mar 2010, 7:10 PM
#1162
kblckmr avatar

kblckmr

New Zenner

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

Re: Simple Google Analytics - Support

Okay. I double check the smartbackground mod and no, there weren't any changes to the footer. My tpl_main_page.php file is located in /includes/templates./residentpress/common/
That's correct, right? My only other change is that I renamed my admin file however I can see the google ananlytics configuration tab in my admin panel. So my "admin" sees the files. Hmmm....

Thanks in advance for you help. Let me know what you think I should do next. Thanks.
Kelly

18 Mar 2010, 1:35 PM
#1163
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Ok on the smart backgrounds.

Renaming the admin won't so anything so you're ok there.

The location of the file would be correct providing that is yoru template directory (which it looks to be.)

Do this. Send me your login info (Admin Zen and FTP) through a private message and I'll take a look.

Should be a very quick fix.

18 Mar 2010, 1:40 PM
#1164
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Hold on a second. I just went to your site and the code is now showing. Whatever you did in the recent changes (or something) seemed to have got it working.

The tracking code now looks to be in place.

To confirm this you can pull up any page on your site and then do a "view source". The code is a the very bottom now.

19 Mar 2010, 6:14 PM
#1165
kblckmr avatar

kblckmr

New Zenner

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

Re: Simple Google Analytics - Support

Eric,
Thank you for your kind assistance. I've been up to late working on this and after double checking everything I noticed my directory folder was mistyped. I forgot to had the _ in google_analytics. Ugh! Thank you for looking at everything.

Kelly

22 Mar 2010, 3:13 PM
#1166
skypanther avatar

skypanther

New Zenner

Join Date:
Aug 2004
Location:
Rochester, NY
Posts:
42
Plugin Contributions:
0

Re: Simple Google Analytics - Support

I have version 1.2.2 of the Simple GA module installed on my Zen Cart 1.3.8a site. On the "thank you" confirmation page after a customer has placed an order, the page conversion tracking script is being loaded twice, once in the header and once in the footer. The one in the header is being loaded from Google's http server even though the page is SSL encrypted. The one in the footer is being loaded from the https server. Also in the header is the <noscript><img ...> tag that is being pulled from Google's http server. This is causing a security warning (in IE, but not Firefox or Chrome).

I've confirmed that I do not have any entries in my tpl_main_page or html_header files that would be manually loading the page conversion script. I've tried looking through the other template files. Is there one I could have missed?

I know we had an earlier version of this module installed, prior to there being support for the conversion tracking. Perhaps there's a bit of leftover code?

Sorry if this has been addressed previously in this thread. I tried searching through the 117 pages of replies but I could have missed it.

Thanks,
Tim

23 Mar 2010, 5:07 AM
#1167
jlemley avatar

jlemley

New Zenner

Join Date:
Mar 2010
Posts:
1
Plugin Contributions:
0

Re: Simple Google Analytics - Support

For the good of the community:

I was having trouble with this application not displaying the GA code and the </body> tag missing altogether. This only happened after installing the required script in tpl_main_page.php. I double checked my installation, made sure everything was spelled right, in the right place, etc. I added bof and eof tags before and after the php code and found that nothing after the bof comment was appearing - so the script was not running at all. After a few more hours of checking everything, I finally turned on php errors by inserting this code at the top of the file:

ini_set('display_errors',1);
error_reporting(E_ALL);

This revealed the following error:

Call to undefined function phprequire()

I was using notepad++ to make the changes and had copied / pasted the code into the tpl_main_page.php file. To resolve, all I had to do was add a space after "<?php" even though there were carriage returns in between that code and the start of the "require" function. I guess notepad++ didn't translate it properly when I pasted it in. :shocking:
So many hours wasted... Hope I can save someone else the headache.

Thanks for the great tool, Eric!

Jeremy (aka, zen newbie)

23 Mar 2010, 6:20 AM
#1168
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Where did you find these solutions? I just installed that plugin.
Thanks!

23 Mar 2010, 11:33 AM
#1169
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

kblckmr:

Eric,
Thank you for your kind assistance. I've been up to late working on this and after double checking everything I noticed my directory folder was mistyped. I forgot to had the _ in google_analytics. Ugh! Thank you for looking at everything.

Kelly

Glad you got it working. :)

23 Mar 2010, 11:36 AM
#1170
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

skypanther:

I have version 1.2.2 of the Simple GA module installed on my Zen Cart 1.3.8a site. On the "thank you" confirmation page after a customer has placed an order, the page conversion tracking script is being loaded twice, once in the header and once in the footer. The one in the header is being loaded from Google's http server even though the page is SSL encrypted. The one in the footer is being loaded from the https server. Also in the header is the <noscript><img ...> tag that is being pulled from Google's http server. This is causing a security warning (in IE, but not Firefox or Chrome).

I've confirmed that I do not have any entries in my tpl_main_page or html_header files that would be manually loading the page conversion script. I've tried looking through the other template files. Is there one I could have missed?

I know we had an earlier version of this module installed, prior to there being support for the conversion tracking. Perhaps there's a bit of leftover code?

Sorry if this has been addressed previously in this thread. I tried searching through the 117 pages of replies but I could have missed it.

Thanks,
Tim

It sounds like you have both of the Google Analytics modules installed. Mine only adds tracking to the footer file and has always offered conversion tracking.

This is the support thread for Simple Google Analytics. The other module you have installed (that adds tracking to the header) is called "Google Analytics by Andrew". The "Andrew version" one has more install steps and can be difficult I have been told.

I would recommend going back to the original install steps with that version and making sure you removed any references to the code that were asked to bee added.

If you need more help on it let me know. The best way to ensure you get it though is to remove any code from the header etc.. that the "Andrew" mod told you to add.

23 Mar 2010, 12:42 PM
#1171
skypanther avatar

skypanther

New Zenner

Join Date:
Aug 2004
Location:
Rochester, NY
Posts:
42
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Thanks @econcepts. Apparently I had some leftovers from the "andrew" module. I thought I had looked for all those before posting. But, I just found and deleted the following:

includes/modules/MYTHEME/pages/checkout_success/jscript_google_adwords.php

which looked to be inserting the offending code into the header.

Thanks,
Tim

24 Mar 2010, 1:44 AM
#1172
theone avatar

theone

New Zenner

Join Date:
Sep 2009
Location:
/dev/null
Posts:
19
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Really useful, waiting 24 hours for data to appear in my dashboard :p

25 Mar 2010, 3:25 AM
#1173
renz avatar

renz

Zen Follower

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

Re: Simple Google Analytics - Support

Hi where can I find this tool or similar for zen 1.3.0.2

Many Thanks

RR

25 Mar 2010, 1:14 PM
#1174
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

skypanther:

Thanks @econcepts. Apparently I had some leftovers from the "andrew" module. I thought I had looked for all those before posting. But, I just found and deleted the following:

includes/modules/MYTHEME/pages/checkout_success/jscript_google_adwords.php

which looked to be inserting the offending code into the header.

Thanks,
Tim

Super. Glad you got it all worked out!

26 Mar 2010, 4:20 AM
#1176
renz avatar

renz

Zen Follower

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

Re: Simple Google Analytics - Support

Hi There,

Thanks for that got it all installed, appears to be tracking ok in google analytic, however the conversion tracking is still showing unverified... I dont need to copy their code anywhere do I? with the exception of the number in my admin>google analytic>
Activate Conversion Tracking Yes Info
Google AdWords Conversion Tracking Number (Mynumber)

Any help is much appreciated,

Thanks

Renz

26 Mar 2010, 2:26 PM
#1177
mike_b_1 avatar

mike_b_1

New Zenner

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

Re: Simple Google Analytics - Support

Hi all,

Sorry to bring this down to a different level, but although I understand which code to add and where, I'm at a loss as to which files to upload from the GA folder, do I upload eveything? and where to put them, any help would be gratefully appreciated, thanks,

Mike

27 Mar 2010, 6:51 AM
#1178
ezorb avatar

ezorb

Zen Follower

Join Date:
Apr 2006
Location:
Midland TX
Posts:
426
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi Eric @econcepts; or other help,

I am having trouble with this mod. It does not show up at admin/configuration/. This was a first time install in 1.3.8a
I guess it is because it is so very simple to install I have manage to do something wrong.
Here is shopping cart URL: http://www.ezorbcalcium.com/secure/index.php?main_page=index&cPath=1

I have installed per “read me” and have check paths for files many times now all seem to be correct.
I have a custom site, path for (tpl_main_page.php) /includes/templates/custom_folder/common/ tpl_main_page.php

I have the following on my web pages, I guess is correct:

<!--bof- google_analytics --> <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-XXXXXX-X"); pageTracker._initData(); pageTracker._trackPageview(); </script><!--eof- google_analytics --> </body></html>

On Google Dashboard shows “Receiving Data” & e-commerce website is YES

I have “Fast & Easy Checkout & USPS Autofill mod's installed.

Thanks for needed help,

Larry

27 Mar 2010, 12:41 PM
#1179
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

Renz:

Hi There,

Thanks for that got it all installed, appears to be tracking ok in google analytic, however the conversion tracking is still showing unverified... I dont need to copy their code anywhere do I? with the exception of the number in my admin>google analytic>
Activate Conversion Tracking Yes Info
Google AdWords Conversion Tracking Number (Mynumber)

Any help is much appreciated,

Thanks

Renz

No need to copy any code anywhere else. Just that one bit will do it.

Keep in mind that Conversion Tracking is used ONLY to track the effectiveness of Paid Search (ppc) (i.e. Google Adwords in this case.)

If you are not running any Adwords campaigns then Conversion Tracking will not do anything for you.

You get your conversion tracking number from your Adwords account (not found in analytics). You must also have "conversion tracking" turned on in Adwords to get that. Finally, the only way (once it is turned on) that conversion tracking works (since it tracks paid search) is if a visitor FIRST clicks one of your paid search ads to get to your site and then purchases.

All conversion tracking figures are found within your Google AdWORDS (not analytics) account.

Now, having said that, this module does automatically track conversions on the analytics side if you have Ecommerce Tracking turned on (this is done from within your Google ANALYTICS account). You can also subsequently track conversions if you setup Goals (again, within your Google Analytics account).

But to track the effectiveness of paid search you use the "Conversion Tracking" id from my admin.

Does that help?

27 Mar 2010, 12:42 PM
#1180
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

mike-b:

Hi all,

Sorry to bring this down to a different level, but although I understand which code to add and where, I'm at a loss as to which files to upload from the GA folder, do I upload eveything? and where to put them, any help would be gratefully appreciated, thanks,

Mike

Take a look at the readme file that came with the package. There is a section in there on installation that gives a step by step how to on it.

It tells you where to upload and what to add to the page to get it to work. That is probably your best bet. If you still have issues after reading that then certainly post here and I'll try to clarify.

:)