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

Simple Google Analytics - Support

Views: 451,064

Results 2,101 to 2,120 of 2,165
5 Jan 2015, 2:25 PM
#2101
econcepts avatar

econcepts

Totally Zenned

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

Simple Google Analytics - Support

Hi Ron!

Follow the normal directions on install and it should work just fine. The module auto inserts the proper code onto the right pages (you are using an older version of the module and eventually should update, but that still works just fine ... I know a lot of people still using that version.)

Once you install the module just turn on conversion tracking from the admin. Regardless of whether you use PayPal and / or another payment method, it should work just fine. If you need help verifying it is correct, just let me know and I'll take a look for you.

7 Jan 2015, 7:54 PM
#2102
lisakathoderay avatar

lisakathoderay

New Zenner

Join Date:
Jan 2015
Posts:
2
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hello,
I am trying to install your plugin/module and I am having some issues. When I paste the required code at the bottom of my tpl_main_page.php, it is removing my closing body and html tags, as if there is an error that is occurring. Has any one else experienced this? Help?!

Thanks!
Lisa

7 Jan 2015, 8:05 PM
#2103
jeking avatar

jeking

Totally Zenned

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

Re: Simple Google Analytics - Support

Paste the code into the file just before the </body> tag. Do not remove any existing code or tags.

9 Jan 2015, 1:57 PM
#2104
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

I've seen this happen when users in accidentally alter the code they paste (the snippet that goes into the main page tpl file).

Make sure that you have not removed any php tags in the inserted code and / or have not accidentally removed any syntax within that either.

If you need me to take a look to debug just let me know and I'd be happy to.

29 Jan 2015, 3:54 PM
#2105
lisakathoderay avatar

lisakathoderay

New Zenner

Join Date:
Jan 2015
Posts:
2
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi econcepts,
I just sent you a PM in regards to helping debug my issues.

Thanks,
Lisa

29 Jan 2015, 4:37 PM
#2106
thomaswhiteeagle avatar

thomaswhiteeagle

New Zenner

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

Re: Simple Google Analytics - Support

I'm almost at my wits end so to speak trying to get this plugin to work especialiy consider we have a 5 figure ppc spend monthly and have lost all ability to track conversions. We had a 1.3x version of zen and it worked perfectly for conversion tracking of our ppc. Then we upgraded to the latest zen, very carefully. at the time we also upgraded our template from "black_pure_free" to "westminster new responsive".

now the ppc tracking doesnt work at all. I mean nothing. analytics seems to be working to an extent although it is not perfectly tracking but we are more concerned about ppc. I don't even know where to look I've installed, uninstalled this more than a few times and went thru it file by file trying to figure out why it is not working but am at a loss.

29 Jan 2015, 7:53 PM
#2107
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Simple Google Analytics - Support

thomaswhiteeagle:

I'm almost at my wits end so to speak trying to get this plugin to work especialiy consider we have a 5 figure ppc spend monthly and have lost all ability to track conversions. We had a 1.3x version of zen and it worked perfectly for conversion tracking of our ppc. Then we upgraded to the latest zen, very carefully. at the time we also upgraded our template from "black_pure_free" to "westminster new responsive".

now the ppc tracking doesnt work at all. I mean nothing. analytics seems to be working to an extent although it is not perfectly tracking but we are more concerned about ppc. I don't even know where to look I've installed, uninstalled this more than a few times and went thru it file by file trying to figure out why it is not working but am at a loss.

If you apply the appropriate basic Zen Cart upgrades to your older template (ie: apply all the changes of the new version onto the files in your old template), does that template then handle your analytics correctly? If so, then your new template is suspect.

29 Jan 2015, 8:05 PM
#2108
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Re: Simple Google Analytics - Support

thomaswhiteeagle:

I'm almost at my wits end so to speak trying to get this plugin to work especialiy consider we have a 5 figure ppc spend monthly and have lost all ability to track conversions. We had a 1.3x version of zen and it worked perfectly for conversion tracking of our ppc. Then we upgraded to the latest zen, very carefully. at the time we also upgraded our template from "black_pure_free" to "westminster new responsive".

now the ppc tracking doesnt work at all. I mean nothing. analytics seems to be working to an extent although it is not perfectly tracking but we are more concerned about ppc. I don't even know where to look I've installed, uninstalled this more than a few times and went thru it file by file trying to figure out why it is not working but am at a loss.

DrByte:

If you apply the appropriate basic Zen Cart upgrades to your older template (ie: apply all the changes of the new version onto the files in your old template), does that template then handle your analytics correctly? If so, then your new template is suspect.

Wondering if the OP doesn't have the CSS/JS Loader installed?? I have found that even on WordPress, caching/compressing/minimizing modules are usual culprits to look at when jScript driven code suddenly STOPS working..

29 Jan 2015, 8:06 PM
#2109
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: Simple Google Analytics - Support

DivaVocals:

Wondering if the OP doesn't have the CSS/JS Loader installed??
Yet another reason why I've never liked that thing.

29 Jan 2015, 8:22 PM
#2110
thomaswhiteeagle avatar

thomaswhiteeagle

New Zenner

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

Re: Simple Google Analytics - Support

DivaVocals:

Wondering if the OP doesn't have the CSS/JS Loader installed?? I have found that even on WordPress, caching/compressing/minimizing modules are usual culprits to look at when jScript driven code suddenly STOPS working..

yes, perhaps good question not sure how to find the answer to it. As to the first question with regard to one template versus another, man I'm a little overwhelmed by the perceived complexity of following that course to find the answer. First I think I'd have to figure out a way to make a version that is upgraded and using the older template and the module. Then I'd have to be able to use a live PPC link to pass thru to the old template so probably would need to make a unique campaign url to go to the address where the old template is working. just thinking out loud. seems complicated and risky. because this is a production site that is the sole income for alot of people and relies heavily on ppc so on the one hand need to figure this out on the other hand cannot disrupt anything in the process.

I might be able to simply switch over to the old template on the production site since the files are all still there in the template folder but hasn't been upgraded itself during an off time like late night on the weekend when the impact will be minimal and running some tests then and see if it is passing the info to ppc. Maybe the easier solution there as far as trying to troubleshoot. Then if we see it still isnt working we might think it is something else altogether and not the template necessarily.

any ideas about how M ight be able to debug the problem using the living site?

30 Jan 2015, 2:54 PM
#2111
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

lisakathoderay:

Hi econcepts,
I just sent you a PM in regards to helping debug my issues.

Thanks,
Lisa

Hi Lisa,

Got the PM. Yes, I help you out with this and get it solved. I'll PM you details.

30 Jan 2015, 2:57 PM
#2112
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

thomaswhiteeagle:

I'm almost at my wits end so to speak trying to get this plugin to work especialiy consider we have a 5 figure ppc spend monthly and have lost all ability to track conversions. We had a 1.3x version of zen and it worked perfectly for conversion tracking of our ppc. Then we upgraded to the latest zen, very carefully. at the time we also upgraded our template from "black_pure_free" to "westminster new responsive".

now the ppc tracking doesnt work at all. I mean nothing. analytics seems to be working to an extent although it is not perfectly tracking but we are more concerned about ppc. I don't even know where to look I've installed, uninstalled this more than a few times and went thru it file by file trying to figure out why it is not working but am at a loss.

PM me info on your site and I'll take a look at it. I've got this running still on many sites (hundreds) with PPC tracking (I manage PPC campaigns with over $10,000 budgets all day long) and it works flawlessly. Something had to have occured during your upgrade causing it not to work.

12 Feb 2015, 9:33 PM
#2113
thomaswhiteeagle avatar

thomaswhiteeagle

New Zenner

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

Re: Simple Google Analytics - Support

econcepts:

PM me info on your site and I'll take a look at it. I've got this running still on many sites (hundreds) with PPC tracking (I manage PPC campaigns with over $10,000 budgets all day long) and it works flawlessly. Something had to have occured during your upgrade causing it not to work.

@econcepts I've sent you a couple of pms but haven't heard back, just a reminder.

13 Feb 2015, 1:31 PM
#2114
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

I see the one PM here Thomas.

Just replied via PM for additional details needed.

15 Mar 2015, 5:08 PM
#2115
thomaswhiteeagle avatar

thomaswhiteeagle

New Zenner

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

Re: Simple Google Analytics - Support

Here is the fix to get Google PPC conversion tracking working without using the simple google analytics module, for anyone perhaps ever facing an issue similar to mine. The background on it is since we upgrade to zen 1.5x series our tracking stopped working. Haven't been able to figure out why. econcepts was going to look into it for us but simply doesn't appear to have the time as we've been waiting for about a month now. But since our site is a production site that relies heavily on Google PPC having the tracking data is critical to us. SO I dug back into our files for code we'd manually used in the past that had worked and found this and modified it for current use and voila it is working correctly. Basically it is the exact code provided by google (replace the "x's" in my code with your id provided by google or better yet simply copy the code google gives you and replace the order value information)

It may or may not work for you were using it on latest version of zen cart, eg, 1.5x series.
always backup your files before making any changes, you've been warned, :)

simply put this is the code provided by google. what makes it work is replacing the var google conversion value part with this: var google_conversion_value = <?php echo $order_summary['order_total']; ?>; - also will not track properly if you don't have in the noscript area this part as shown below: value=<?php echo $order_summary['order_total']; ?>

I placed it at the bottom of my tpl_checkout_success_default.php file.

code:

<!-- Google Code for Purchase/Sale Conversion Page --> <script type="text/javascript"> /* <![CDATA[ */ var google_conversion_id = xxxxxxxxxx; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "FDn3COeWQxCbr7__Aw"; var google_conversion_value = <?php echo $order_summary['order_total']; ?>; var google_conversion_currency = "USD"; var google_remarketing_only = false; /* ]]> */ </script> <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/xxxxxxxxxx/?value=<?php echo $order_summary['order_total']; ?>&currency_code=USD&label=FDn3COeWQxCbr7__Aw&guid=ON&script=0"/> </div> </noscript>
1 Apr 2015, 12:48 PM
#2116
econcepts avatar

econcepts

Totally Zenned

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

Re: Simple Google Analytics - Support

thomaswhiteeagle:

Here is the fix to get Google PPC conversion tracking working without using the simple google analytics module, for anyone perhaps ever facing an issue similar to mine. The background on it is since we upgrade to zen 1.5x series our tracking stopped working. Haven't been able to figure out why. econcepts was going to look into it for us but simply doesn't appear to have the time as we've been waiting for about a month now. But since our site is a production site that relies heavily on Google PPC having the tracking data is critical to us. SO I dug back into our files for code we'd manually used in the past that had worked and found this and modified it for current use and voila it is working correctly. Basically it is the exact code provided by google (replace the "x's" in my code with your id provided by google or better yet simply copy the code google gives you and replace the order value information)

It may or may not work for you were using it on latest version of zen cart, eg, 1.5x series.
always backup your files before making any changes, you've been warned, :)

simply put this is the code provided by google. what makes it work is replacing the var google conversion value part with this: var google_conversion_value = <?php echo $order_summary['order_total']; ?>; - also will not track properly if you don't have in the noscript area this part as shown below: value=<?php echo $order_summary['order_total']; ?>

I placed it at the bottom of my tpl_checkout_success_default.php file.

code:

<!-- Google Code for Purchase/Sale Conversion Page --> <script type="text/javascript"> /* <=!=[=C=D=A=T=A=[ */ var google_conversion_id = xxxxxxxxxx; var google_conversion_language = "en"; var google_conversion_format = "3"; var google_conversion_color = "ffffff"; var google_conversion_label = "FDn3COeWQxCbr7__Aw"; var google_conversion_value = <?php echo $order_summary['order_total']; ?>; var google_conversion_currency = "USD"; var google_remarketing_only = false; /* ]=]=> */ </script> <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"> </script> <noscript> <div style="display:inline;"> <img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/xxxxxxxxxx/?value=<?php echo $order_summary['order_total']; ?>&currency_code=USD&label=FDn3COeWQxCbr7__Aw&guid=ON&script=0"/> </div> </noscript>

Thomas, this will potentially only work for your site. Reason being, it has a tracking label in it that is set to your conversion id. The other thing to note here is that the "xxxxxxxx" spot should be dynamically filled in by the program itself (already) so manually filling that in might have potential problems at some point. That field is controlled by the Admin section of the plugin.

I just finished the updated version of this mod (a long time in the making as work here has been busy) and installed on a few sites. It works with all versions of zen cart (forward and backward compatible) It has completely been updated to adhere to all new Google features including a good number of features that many are not aware of within Google Analytics (but that are very important to increasing sales.)

I'll make a link available for the new version here to download shortly. Likewise, I'll be uploading the package after providing the link to the Zen cart plugin section.

21 May 2015, 4:32 PM
#2117
hols_club avatar

hols_club

New Zenner

Join Date:
Nov 2014
Location:
Paignton
Posts:
39
Plugin Contributions:
0

Re: Simple Google Analytics - Support

Hi I am looking for a plug-in for Google Analytics but was getting confused.
I am running on ZC1.5.4 is Simple Google Analytics ok to install as only says upto v1.5.3 or should I be installing Easy Google Analytics as that has v1.5.4? Or should I wait until Simple v1.5.4 is available?
Many thanks.

21 May 2015, 5:08 PM
#2118
jeking avatar

jeking

Totally Zenned

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

Re: Simple Google Analytics - Support

hols.club:

Hi I am looking for a plug-in for Google Analytics but was getting confused.
I am running on ZC1.5.4 is Simple Google Analytics ok to install as only says upto v1.5.3 or should I be installing Easy Google Analytics as that has v1.5.4? Or should I wait until Simple v1.5.4 is available?
Many thanks.

You can use Google Analytics. The current version will work fine.

21 May 2015, 5:20 PM
#2119
hols_club avatar

hols_club

New Zenner

Join Date:
Nov 2014
Location:
Paignton
Posts:
39
Plugin Contributions:
0

Re: Simple Google Analytics - Support

jeking:

You can use Google Analytics. The current version will work fine.

Many thanks Jeking (I assume you meant Google Simple Analytics?).
What I don't understand is it not easier just to add the analytics code to the html_header.php file in common?

21 May 2015, 6:07 PM
#2120
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Simple Google Analytics - Support

hols.club:

Many thanks Jeking (I assume you meant Google Simple Analytics?).
What I don't understand is it not easier just to add the analytics code to the html_header.php file in common?

Try this one:
https://www.zen-cart.com/downloads.php?do=file&id=1997

No code modification or overrides needed.

Cheers
RodG