-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
It takes a few days sometimes to actually start seeing data. have you resolved this or are you still getting no data returned?
It's still not resolved. google's still saying that it's receiving data, but still also saying there's been no visits which is absolutely incorrect, I've had numerous sales since it's been saying zero visits. I uninstalled and did a fresh install of the simple googe analytics thinking that would help, but the same thing is happening.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
I have seen in a number of instances where the installation of JAM (creating a new "footer" file for the checkout success page) causes problems with the code that is inserted during Google Analytics install which goes on the "tpl_main_page.php" page.
This might be something to look into with the JROX code as well.
To resolve this I have moved users JAM code to the tpl_main_page.php file and added an if then statement as such:
Hi econcepts,
I would be really grateful if you could explain what this means. Since I installed JROX, my site is also no longer showing any e-commerce data, though the visits and funnel visualisation show the correct data being fed through.
What did you mean by "moving users JAM code"? Is it possible to solve this just by moving the google_analytics.php to the custom checkout_success folder?
Many thanks,
Edwin
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
fashions
Results LIKE THIS:
_uacct = "UA-#######-1";
urchinTracker();
</script>
</body></html>
I also had issues getting this to work. Then, after logging into my Google Analytics account and checking my tracking code, I realized I needed to replace the -1 with a -4. Mine works fine now and I'm happily tracking!
Hope this information can help someone else.
-Melissa
-
Re: Simple Google Analytics - Support
Hi there, just installed. I see the code on my pages however I do not get data in google ( yes I have checked my account code number) also this test site http://checkwebsite.erigami.com/googleanalytics.html tells me that there are errors:
Visitor tracking is not OK
Google Analytics JavaScript file is not downloaded
Google Analytics Account variable is not found
Any help or ideas on what to do next would be greatly appreciated.
-
Re: Simple Google Analytics - Support
By the way.... this is the code I see in source view:
<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-7");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body></html>
-
Re: Simple Google Analytics - Support
it's still not working for me, either. When I check with the truwex page, I get this response;
Quote:
Google Analytics elements are detected
http://pagecheck.erigami.com/truwex/images/s.gif Visitor tracking is
not OK
Google Analytics JavaScript file is not downloaded
Google Analytics Account variable is not found
Google Analytics WebBeacon is detected
Google Analytics Cookie is detected
any ideas on why it's not working? I'm running 1.3.7.
-
Debugging Conversion Tracking
The analytics portion of this has been working great for me. The conversion has not been working however. I spent some time generating debug info, and am posting here in the hopes of getting some ideas for problems and fixes going.
I generated a test conversion through google search. The "Google Site Stats" tag did not show up on the checkout_success page, however the analytics and conversion tracking code did show up in the view source for the page. The conversion code looked like:
Code:
<!-- Google Code for purchase Conversion Page -->
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 106937XXXX;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
if (0.01) {
var google_conversion_value = 0.01;
}
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/106937XXXX/?value=0.01&label=purchase&script=0">
</noscript>
This appears to me to be pretty close to the exact code snippet given for the conversion on the adwords site, with the exception that the label now says "purchase" instead of "JDY3CMufSxC12_X9Aw" and the " if (0.01) {" clause on the conversion value.
The tracking image https://www.googleadservices.com/pag...ion/106937XXXX does not show up in the page when I use FireBug, however when I manually enter the image URL in the browser it shows up fine.
There are two possible issues I can see at this point:
1) there is a page error "__utmSetTrans not defined", which refers to line one of the body of the page. does anyone have an idea what this code does or where it came from? A little google on the function name shows it to be related to google conversion tracking. I don't see where it should be defined however.
Code:
<body id="checkoutsuccessBody" onload="javascript:__utmSetTrans();">
2) I have the "Corner of Trust" contrib installed just after the point at which the conversion code is inserted. Perhaps this is causing a conflict. I will try removing that and see if it makes any difference and will report back later. I don't think this is the problem as conversion tracking also does not work on another site without Corner of Trust, but want to eliminate the possibility completely.
Thanks to anyone who read this far and has any suggestions for debugging steps.
-
Conversion Tracking Problem SOLVED
:clap:
Got it working, the problem was an old version of includes/modules/pages/checkout_success/on_load_main.js that was sitting around from an older installation. this line not only caused the javascript error, it also prevented the conversions from being tracked. the image still does not show up, but a conversion was recorded by google.
many thanks for a great contribution, and for those of your having problems with conversion tracking "may my fix be your fix"
:hug:
-
Re: Simple Google Analytics - Support
Of course, all of this was spelled out by econcepts in the documentation:
Quote:
NOTE to those upgrading from version 1.0
========================================
The new "ga.js" version of tracking does not need one bit of JavaScript that was included in the previous "urchin.js"
versions. You will need to DELETE this line from your code.
includes/modules/pages/checkout_success/on_load_main.js
REMOVE the following line from that file "javascript:__utmSetTrans();"
If that is the ONLY line you see in the file, than it is safe to completely DELETE the file. If this is not the only
line found in that file, then delete only that line, and save the file. Re-upload the new version to your site.
Keeping this line in when using the new ga.js tracking code can causee JavaScript errors to pop up on your site (since
the new code does not refer to this function anymore).
-
Re: Simple Google Analytics - Support
Hi
I've a problem with e-commerce conversion:
since the end of june it doesn't work anymore.
I'm guessing what's changed, but .... nothing seems wrong....
may someone suggest me what to check ?
(new ga.js code)
thanks in advance
-
Re: Simple Google Analytics - Support
asappia
I am suffering this problem too and cannot find a solution.
Did this problem coincide with the installation of JROX by any chance?
Edwin
-
Re: Simple Google Analytics - Support
I don't apply the JROX extension at all.
-
Re: Simple Google Analytics - Support
My first post in this thread.
What on earth am I doing wrong? I had analytics/conversion running perfectly before. Then I had a custom CSS based design uploaded as I upgraded the Zen Cart to the latest. Now I have tracking on everything at www.youneedhidef.com/blog because I used a Wordpress add-on to put the code there; but on the rest of my site I cannot get it to work.
main site: www.youneedhidef.com
Can someone view the source codes and see what I should do? I followed directions but I think because of my custom CSS template I am doing it wrong.
Thanks in advance.
-
Re: Simple Google Analytics - Support
same here.
I copied classic template to a new directory, and adapted it, but.... after this change (a new template) it doesn't work anymore.
-
Re: Simple Google Analytics - Support
econcepts,
I suspect you are taking a well-earned summer holiday, hence your recent absence from this forum.
I am still struggling to get the e-commerce reporting of Google Analytics working following the installation of the JROX JAM affiliate software.
In the installation of this software a new tpl_footer file is created and put in: /includes/templates/custom/checkout_success/tpl_footer.php
I have compared the source code of the order_confirmation page (stage 3 of 4 in checkout) with that of checkout_success (stage 4 of 4).
In Stage 3 at the end of the viewed source, the order is Copyright message, Parse time display (if activated), Banner 6, and finally Google analytics.
In Stage 4, the viewed source shows the following order: Copyright message, javascript for affiliates/sale.php code, Parse time, and finally banner 6.
So the JROX code is introduced into the checkout_success footer correctly, but the google analytics code is never executed. Could this be to do with the location or existence of the new checkout_success page? How would I fix this please?
Thanks,
Edwin
-
Re: Simple Google Analytics - Support
I have managed to answer this question for myself. In case it is of use to other people, the solution was to:
copy the code from:
\includes\templates\custom\google_analytics\google_analytics.php
lock, stock and barrel into the bottom of:
\includes\templates\custom\checkout_success\tpl_footer.php and save the file.
It now works.
-
Re: Simple Google Analytics - Support
Hi there
I have installed Simple Google Analytics recently, I see Google Analytic is working. But the adwords conversion tracking for signup and purchase do not work. It still says verification failed.
I want to know if I have to put the google provided conversion code anywhere in the website. Please tell me where I should put the code for signup conversion code and purchase success conversion code.
Up to now, I have setup all the google analytics setting in zen cart admin.
Here is my site. http://www.omegagolfshop.com
Please help, I have tried for two weeks already.
Thanks
-
Re: Simple Google Analytics - Support
Some may encounter this error, Check this if you can not get connected to google.
If you don't have 8 digits entered the mod will fail. If you don't have UA-1234567-8 it may be because google doesn't list #8 on the Profile Page and you have left it off or added one of these:
UA-123456-7 or UA-1234567; so your a digit short.
Clickj the test connection from google. It will fail- in the code they will now list your full UA. Make sure this is entered in the Admin so when its called it is the correct and full UA- might want to throw it ini GC also if you botched it like i did.
<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._trackPageview();
</script>
-
Re: Simple Google Analytics - Support
Hello everyone,
I have successfully installed SGA into my zencart and my status is now "Waiting For Data". I am sure it is correctly installed - so there shouldnt be any problems here.
My questions are regarding conversion tracking (NOT google analytics). And I have searched the whole forum (over a few days) but got more confused after that. So hoping someone can answer these questions individually.
1. I believe I can use SGA for Conversion Tracking. This is because I can Activate Conversion Tracking and also set my Conversion Tracking Number on my zencart Admin at Configuration->Google Analytics Configuration. So I am going to conclude that I can use SGA for Conversion Tracking. Is this correct?
2. How do I use SGA for conversion tracking? Do I just set conversion goals and funnel on my Google Analytics account? And that's all to it?
Or do I have to copy and paste the Conversion Tracking code onto one of my zencart page?
3. If I have to copy and paste the Conversion Tracking code, I will create a Conversion Tracking code for Purchase/Sale. When I create the Conversion Tracking code, what do I put for the "Revenue for your action"? Do I put <?php echo TEXT_YOUR_ORDER_NUMBER . $zv_orders_id; ?> or something else?
4. After creating the conversion tracking code, where do I paste the code to if I want to track purchase? I know it should be one of the file connected to checkout_success but I cant figure out which file and where.
Thanks everyone! I am definitly a Noob as far as this is concern and would appreciate all the help I can get.
Mike
http://www.cufflinks2wear.com/
-
Re: Simple Google Analytics - Support
I'm facing the same problem as many, the GA data is not accurate, I can see it because I have other means to verify, in fact even the transactions are not well reported on GA's site. This, with the new ga code.
So I was looking around for some solution when I saw this difference :
On Google site the code is :
Code:
var pageTracker = _gat._getTracker("UA-xxxxxx-x");
pageTracker._trackPageview();
In /catalog/includes/templates/YOUR_TEMPLATE/google_analytics/google_analytics.php the code is :
Code:
var pageTracker = _gat._getTracker(\"" . GOOGLE_ANALYTICS_UACCT . "\");
pageTracker._initData();
pageTracker._trackPageview();
Do we need to correct the google_analytics.php file so that it gets the same code as the one given on https://www.google.com/support/googl...n_US&utm_id=ad
???
Thanks for help
Regards
Hubert
-
mysql problem
HI all,
i tried to upgrade the mysql and got this error. couldn't figure out the problem yet. Please help.
thanks.
SQL query:
INSERT INTO configuration_group
VALUES ( '', 'Google Analytics Configuration', 'Set Google Analytics Options', '1', '1'
);
MySQL said: http://209.213.105.12/myadmin/themes...img/b_help.png
#1366 - Incorrect integer value: '' for column 'configuration_group_id' at row 1
-
Re: Simple Google Analytics - Support
I have installed SA and removed it again. - There was no way I could get it working.
- It installed OK, but Google absolutely refused to acknowledge my site. I ensured that my main store page was the first page of my site, tried using the Google script in place of the .php, verified that the code was showing at the bottom of my pages after installing SA, verified that my UA number was correct ...and even removed my .htaccess file in case that was causing a problem
...nothing!
So SA has been removed.
Incidentally, the Google Checkout mod has some (limited) support for Google Analytics if anyone is considering using that (note: the Google Checkout and Big Royal Mail mods do not appear to be compatible).
-
Re: Simple Google Analytics - Support
So I have already had a Google Analytic account - we just uprgraded our site to e-commerce via zencart. I did the install and followed all instructions. How do I know that it is working or not working b/c my analytic site has already been working for the past year....how will i know that it has picked up the new pages??
Thanks
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
stalb33
So I have already had a Google Analytic account - we just uprgraded our site to e-commerce via zencart. I did the install and followed all instructions. How do I know that it is working or not working b/c my analytic site has already been working for the past year....how will i know that it has picked up the new pages??
Thanks
If you followed the instructions to the tee and filled in your GA account number, then it's working. You will see the results tomorrow in your GA reports.
In GA you can select the days for the report so set the date to include today and you will see some results after an hour or two of activity.
Make sure you go into your GA account settings and turn on eCommerce.
JOhn ><>
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
stalb33
So I have already had a Google Analytic account - we just uprgraded our site to e-commerce via zencart. I did the install and followed all instructions. How do I know that it is working or not working b/c my analytic site has already been working for the past year....how will i know that it has picked up the new pages??
Thanks
simply check if in the footer you have the GA js script
it's put there by the GA Module
-
Re: Simple Google Analytics - Support
Nothing is there. check it out. www.spectechind.com/store
Followed all instructions. After it wasn't responding to any changes when I put it in template default/common/tpl_main_page.php I put it in my custom template/common/ and copied the tpl_main_page to there. Then I wasn't sure if the google_analytics file and folder go. so i copied them into template default as well as my custom template. No dice. Then i pulled the file out of the folder and just had it sitting in my custom template (no google_analytics folder) and on template_default as well. Don't know what went wrong here. but my source code shows nothing at the bottom
-
Re: Simple Google Analytics - Support
i just put the script in the footer. should work fine
-
Re: Simple Google Analytics - Support
Very nice work. It saved me a pain in the ########. I was playing with it for like 2 hours then read this. Thanks so much for your time.
-
Re: Simple Google Analytics - Support
Help, I got the following message after installing analytics?
What does it mean
Warning: require(includes/templates/template_default/google_analytics/google_analytics.php) [function.require]: failed to open stream: No such file or directory in /home/poppy/public_html/prokarateshop/includes/templates/template_default/common/tpl_main_page.php on line 189
Warning: require(includes/templates/template_default/google_analytics/google_analytics.php) [function.require]: failed to open stream: No such file or directory in /home/poppy/public_html/prokarateshop/includes/templates/template_default/common/tpl_main_page.php on line 189
Fatal error: require() [function.require]: Failed opening required 'includes/templates/template_default/google_analytics/google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/poppy/public_html/prokarateshop/includes/templates/template_default/common/tpl_main_page.php on line 189
-
Re: Simple Google Analytics - Support
hi
I'm new to google analitics in zencart and I've installed the google analitics module.
In my google analitics account it says "tracking installed" ,but it doesn't say "receiving data" What am I doiing wrong?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
lieven23
hi
I'm new to google analitics in zencart and I've installed the google analitics module.
In my google analitics account it says "tracking installed" ,but it doesn't say "receiving data" What am I doiing wrong?
my site url is http://www.afro-masks.com/
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
lieven23
hi
I'm new to google analitics in zencart and I've installed the google analitics module.
In my google analitics account it says "tracking installed" ,but it doesn't say "receiving data" What am I doiing wrong?
Look at this and make sure all your data is correct.
http://www.zen-cart.com/forum/showpo...&postcount=789
-
Conversion Tracking: code shows in page but does not register with google
I have been using this system and it works wonderfully for ecommerce tracking in google analytics, however there is a glitch with the adwords conversion tracking. I did a test conversion and verified that the "google site stats" tag was in place, and that the conversion code showed up at the bottom of the page. However no conversion shows up at the adwords web site.
I am posting two versions of the tracking code; first the version that google tells me should be there, and second the version that was generated from the test conversion. There are some minor differences, but the major possible culprit appears to be that the conversion label is now "purchase" instead of the random label that google assigned in their example tracking code. Any ideas on a fix?
Google Version of Tracking Code
HTML Code:
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 1069xxxx97;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "ffffff";
var google_conversion_label = "JDY3CMufSxC12_X9Aw";
//-->
</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/1069xxxx97/?label=JDY3CMufSxC12_X9Aw&script=0"/>
</noscript>
Generated Version of Tracking Code
HTML Code:
<script language="JavaScript" type="text/javascript">
<!--
var google_conversion_id = 1069xxxx97;
var google_conversion_language = "en_US";
var google_conversion_format = "1";
var google_conversion_color = "FFFFFF";
if (69.29) {
var google_conversion_value = 69.29;
}
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/1069xxxx97/?value=69.29&label=purchase&script=0">
</noscript>
-
Re: Simple Google Analytics - Support
I hacked the google-analytics.php file to change "purchase" to the label that google listed and now the conversion tracking is working great. :clap:
econcepts, thanks for a great product, and I hope this helps you debug and perhaps generate a future version that includes a text field in the admin config for the conversion label? :wink:
-
Re: Simple Google Analytics - Support
I just installed your plugin on http://www.rosasfudge.com. It's working great for the most part but I'm having one problem. The report showing revenue by traffic source is showing the correct amount of revenue, but the product revenue report does not include all sales (not the correct quantity sold of that particular product). Do you have any idea what is going wrong?
Thanks,
John
-
Re: Simple Google Analytics - Support
I noticed in the code that's there is going to be support of tracking downloaded files, such as PDFs, in the future. That's great, as I have a book store built with Zen Cart that includes links to downloadable abstracts in PDF format.
Another thing that would be great is if this mod would track outbound links. At the bottom of each product page is a link to an external webpage that gives more info about the product. It would be worthwhile to track those and any other external links in the store. Any plans for tracking outbound links?
-
Re: Simple Google Analytics - Support
Zen Cart 1.3.7
Simple Google Analytics 1.2.2
I installed this module four days ago. Maybe I had already set things up long ago, or maybe adwords starts tracking things right away, but I have data since April 2007, when I first started my website. But since four days ago, the data is all zero. Zero pageviews, everything. That's right after I installed this module in zencart, so it seems that it's responsible for the lack of data. I may have removed something, but I don't remember. What could be the problem?
The website is www.adamantbarbell.com.
Here's the code I see in the bottom of the page source. I don't know if I put it there in the past or if it came like this:
Quote:
<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");
pageTracker._initData();
pageTracker._trackPageview();
</script>
Configuration settings:
Analytics Account UA-356915 Info
Target Address delivery Info
Affiliation adamantbarbell.com Info
Use sku/code products_model Info
Use Older "urchin.js" Tracking Code No
Activate Conversion Tracking Yes Info
Google AdWords Conversion Tracking Number 1072280010 Info
Google AdWords Language en_US
-
Re: Simple Google Analytics - Support
Looking into this further, I think I installed version 1.0.0 of this module in April 2007. I soon uninstalled it, but it looks like some files had remained.
My analytics account number is correct as found on my analytics account.
My adwords conversion tracking number is correct, if that's the google_conversion_id it shows in the tracking code in my adwords account.
I'll try uninstalling and reinstalling, but if anyone can see what the problem is, or has an idea, I would be grateful.
I see that in my analytics account the website profile has this next to it: UA-356915-2. In my configuration in zencart I have UA-356915 as the account number. Should I add the -2?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Stevietheman
Another thing that would be great is if this mod would track outbound links.
You can use my js-script to track outbound links.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
a_berezin
You can use my js-script to track outbound links.
Thank you, but can you tell me where I might find it? I don't see this in the download.
-
Re: Simple Google Analytics - Support
Oh, the other GA addon:
http://www.zen-cart.com/index.php?ma...roducts_id=891
I notice that there is going to be a new version soon. I'll wait for that before applying. Thanks!
-
Re: Simple Google Analytics - Support
I have installed the the following Simple Google Analytics Add On Successfully:
Contribution Name: Simple Google Analytics
Version Date: v 1.2.0 01/09/2008 Eric Leuenberger (Zen ID: econcepts) http://www.zencartoptimization.com
But, the add-on requires a Google AdWords Conversion tracking number instead of having the capability to track all e-commerce transactions that take place on the site.
Will the 'Google Analytics by Andrew" track all e-commerce transactions?
Name
====
Google Analytics Integration
Version Date
==============
v 2.2.1 01.09.2008 01:23
Author
======
Andrew Berezin http://eCommerce-Service.com
If so, what precautions or additional steps do I need to migrate over to this implementation?
Thanks for your support, it is much appreciated!
-
Re: Simple Google Analytics - Support
This is the only reference to googleanalytics when I view page source.
<!--
var GOOGLE_ANALYTICS_TRACKING_OUTBOUND_LINKS_PREFIX = "/outgoing/";
//-->
</script>
<script type="text/javascript" src="includes/templates/magic/jscript/googleanalytics_outgoing.js"></script>
</head>
<body id="indexBody" onload="googleanalytics_outgoing_init();">
Am I missing something?
http://monumentsplus.com
I can't get analytics to work. The configuration part in the admin is working properly. Please help. thank you
-
Re: Simple Google Analytics - Support
I am not seeing the following code when I view source:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-861757-5";
urchinTracker();
</script><script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-xxxxxx-x";
urchinTracker();
</script>
I am thinking I missed something, but I have gone through the instructions several times. There doesn't seem to be anything else for me to load.
-
Re: Simple Google Analytics - Support
ok...I had originally installed andrew's version and then installed cuda's version. I uninstalled both of them and re-installed
Simple Google Analytics
Zen Cart™ Version: v1.3.8
Version: 1.2.2
Last Updated: Mar 18 2008
Author: econcepts
I am not seeing any of the code everyone is referring to. It doesn't seem that hard, only a couple files to upload and the install.sql (which installed perfectly because have the configuration page on my admin).
Is this thread to old? Do I need to go somewhere else for the answers?
-
Re: Simple Google Analytics - Support
Upgraded from 1.0.0 to the latest version and everything went fine. What I'm mainly concerned with is conversion tracking. I'm still not sure if I need to post Googles code in my checkout page.
-
Re: Simple Google Analytics - Support
I see that the missing ecommerce transactions issue is known...
Wondering if anyone has noticed whether or not it is still occuring. I recently implemented this module and have noticed that maybe 30% of my ecommerce transactions are missing. I was using the new ga.js code. Should I go back to urchin?
-
Re: Simple Google Analytics - Support
my transaction are collected fine: simply I've always ZERO as shipping costs -.-"
-
Re: Simple Google Analytics - Support
The google analytics upload in the front page does not work for me. I previously had an analytics account but lost the tracking when I created the new zen cart site..
how do I put google analytics on my page? Is it possible to put in anywhere under the <body> tag by 'common include?
:bigups:
-
Re: Simple Google Analytics - Support
Hi, I've installed the simple analytics code and it all seems to be working fine except that my conversions are not being logged. Now I'm sure this is because my checkout is hosted on a secure server not a subdomain and therefore has a different address.
Is there any way to accomadate this by altering google_analytics.php or will I have to hard code it all?
Site is here
-
Re: Simple Google Analytics - Support
After hours of trying to find a solution to jrox and google analytics, I found that this was the best solution although I'll have to wait till tomororw to check if google logged my test purchases!:clap:
Quote:
Originally Posted by
edwinlloyd
I have managed to answer this question for myself. In case it is of use to other people, the solution was to:
copy the code from:
\includes\templates\custom\google_analytics\google_analytics.php
lock, stock and barrel into the bottom of:
\includes\templates\custom\checkout_success\tpl_footer.php and save the file.
It now works.
-
Re: Simple Google Analytics - Support
I just installed this contribution and everything was working and google was receiving data. But then I noticed that my website was getting this pesky "Would you like to display unsecured/secured data?" prompt.
I narrowed it down to this file:
includes/templates/your template/google_analytics/google_analytics.php
I get this prompt in IE 7 but not in Firefox. I'm running ZC 1.3.8a
I've since deleted that file so I wouldn't get that prompt but I still haven't figured out why this is happening.
Any ideas?
-
Re: Simple Google Analytics - Support
Hi all,
I just installed google analytics (zen-cart v1.3.8, a new install), I ran the sql, updated tpl_main_page.php. View source of the page has the tracking code. However, the google anlaytics account kept saying "Tracking Not Installed".
What else I should check? Can someone help me? Thanks so much. Btw, I am using a template from template monster.
URL: www.sweetlemonshop.com
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
purplesnow
Hi all,
I just installed google analytics (zen-cart v1.3.8, a new install), I ran the sql, updated tpl_main_page.php. View source of the page has the tracking code. However, the google anlaytics account kept saying "Tracking Not Installed".
What else I should check? Can someone help me? Thanks so much. Btw, I am using a template from template monster.
URL:
www.sweetlemonshop.com
It's working the next day! :smile:
-
Re: Simple Google Analytics - Support
Hi
I've just installed this mod in my zencart 1.3.8 - not activity yet but I note that I will have to wait until tomorrow.
I want to link my adwords account into analytics. The setup instructions in admin/configuration say to insert "your unique Google Conversion Tracking ID". I've gone though the process to get the code and got some code to insert into my site. This contains a 10 digit number, the google_conversion_id - I can't see a number anywhere else.
I've two questions
1. Is this the number I insert?
2. Do I still need to insert the code provided into my site?
Many thanks in advance.
Philip
-
Re: Simple Google Analytics - Support
Apparently didn't work :no: Anybody else has a solution to Jrox and Google Analytics? the goals are working fine but my ecommerce data went flat line as soon as the Jrox template over ride on check_out success was installed.
Quote:
Originally Posted by
sunflowertami
After hours of trying to find a solution to jrox and google analytics, I found that this was the best solution although I'll have to wait till tomororw to check if google logged my test purchases!:clap:
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
sunflowertami
Apparently didn't work :no: Anybody else has a solution to Jrox and Google Analytics? the goals are working fine but my ecommerce data went flat line as soon as the Jrox template over ride on check_out success was installed.
Sunflowertami, please see posts 817 and 818 in this thread. I had the same problem as you.
Edwin
-
Re: Simple Google Analytics - Support
Hi Edwin,
Actually it was your solution that I tried and thought it didn't work because I didn't see any results the next day. However when I checked today the results kicked in and yeah!! it is working again! Great SOLUTION! Thanks!! :clap:
Quote:
Originally Posted by
edwinlloyd
Sunflowertami, please see posts 817 and 818 in this thread. I had the same problem as you.
Edwin
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
mylildarlings
I just installed this contribution and everything was working and google was receiving data. But then I noticed that my website was getting this pesky "Would you like to display unsecured/secured data?" prompt.
I narrowed it down to this file:
includes/templates/your template/google_analytics/google_analytics.php
I get this prompt in IE 7 but not in Firefox. I'm running ZC 1.3.8a
I've since deleted that file so I wouldn't get that prompt but I still haven't figured out why this is happening.
Any ideas?
Anyone?
-
Re: Simple Google Analytics - Support
Done the install, left it for a day to see if it was collecting data but nothing. In the analytics stats it just says "tracking unknown".
Checked the main page of my site and the codes not showing up in "view source".
Must have done something wrong just no idea what.
Any ideas?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
mylildarlings
Anyone?
Are you using the Simple Google Analytics mod? I've heard of this problem with the mod by Andrew in some cases but none with the Simple Google analytics mod (the one I built).
Can you give me a link and I'll take a look?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
the_doomsayer
Done the install, left it for a day to see if it was collecting data but nothing. In the analytics stats it just says "tracking unknown".
Checked the main page of my site and the codes not showing up in "view source".
Must have done something wrong just no idea what.
Any ideas?
Did you add the portion of code from step 3 (a bit of code has to be added to the tpl_main_page.php)? If you did not add that then even with the install, the code will not be on the page (thus the tracking not installed message.)
Can you post a link?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
philip56
Hi
I've just installed this mod in my zencart 1.3.8 - not activity yet but I note that I will have to wait until tomorrow.
I want to link my adwords account into analytics. The setup instructions in admin/configuration say to insert "your unique Google Conversion Tracking ID". I've gone though the process to get the code and got some code to insert into my site. This contains a 10 digit number, the google_conversion_id - I can't see a number anywhere else.
I've two questions
1. Is this the number I insert?
2. Do I still need to insert the code provided into my site?
Many thanks in advance.
Philip
If you are entering your "Google Analytics" number then it usually is not the 10 digit number. This is the Conversion Tracking number (which you get from within your Adwords account).
There are spots for each number from within the admin that allow you to add each of these. If you are using conversion tracking, make sure you turn it on from within the admin.
Tying your Adwords account into your Analytics account (to get integrated data between the two) is done from within your Analytics account.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
sunflowertami
Hi Edwin,
Actually it was your solution that I tried and thought it didn't work because I didn't see any results the next day. However when I checked today the results kicked in and yeah!! it is working again! Great SOLUTION! Thanks!! :clap:
That is one way to get it accomplished. I've got to update a few minor things in the Google tracking code (nothing major) and when I do will provide JROX compatibility instructions.
Basically JROX uses the override on the checkout success page to place it's tracking only there. As a result, when a successful purchase completes, zen uses the overridden tpl_footer.php page in place of the default one. This results in the Google tracking code being dropped (which must be located on all pages for it to work).
The route I've taken in the past with others was to actually move the JROX tracking code into the tpl_main_page.php code and add an if then statement checking to see if the page was the checkout success or not. If it is, the code is included. If it is not, the code is left out.
I'll address this in a future release of the mod here.
-
Re: Simple Google Analytics - Support
Hello, I am using Zen Cart 1.3.8a and just installed Google Analytics on Saturday. I just went to my Google account and the status is still not showing as receiving data. I've double-checked the settings and everything seems to be correct. Any ideas? Thanks.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Did you add the portion of code from step 3 (a bit of code has to be added to the tpl_main_page.php)? If you did not add that then even with the install, the code will not be on the page (thus the tracking not installed message.)
Can you post a link?
http://www.fluidclothing.com
-
Re: Simple Google Analytics - Support
No idea whats changed but checked my analytics account and its decided to receive data, weird.
-
Re: Simple Google Analytics - Support
Hi
I've installed the add-in and on Google Analytics site it says "Receiving data" as the status but the reports don't show any website visits even though I know some people have said that they did visit the site. Have I done something wrong?
Thanks!
-
Re: Simple Google Analytics - Support
Do you mind providing the "if" statement you're using when you move the code to the tpl_mainpage.php file? Thanks!
Quote:
Originally Posted by
econcepts
That is one way to get it accomplished. I've got to update a few minor things in the Google tracking code (nothing major) and when I do will provide JROX compatibility instructions.
Basically JROX uses the override on the checkout success page to place it's tracking only there. As a result, when a successful purchase completes, zen uses the overridden tpl_footer.php page in place of the default one. This results in the Google tracking code being dropped (which must be located on all pages for it to work).
The route I've taken in the past with others was to actually move the JROX tracking code into the tpl_main_page.php code and add an if then statement checking to see if the page was the checkout success or not. If it is, the code is included. If it is not, the code is left out.
I'll address this in a future release of the mod here.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Are you using the Simple Google Analytics mod? I've heard of this problem with the mod by Andrew in some cases but none with the Simple Google analytics mod (the one I built).
Can you give me a link and I'll take a look?
Thanks for writing me back. I still am looking for a solution. Yes, I loaded Simple Google analytics and it's this file from the mod that is causing the message.
includes/templates/your template/google_analytics/google_analytics.php
I've delete this file but everything else from the contribution is still loaded.
www.mylildarlingsboutique.com
Thanks!
-
Re: Simple Google Analytics - Support
Hi,
Got some error messages when trying to install this program... hoping you can help me out.
After step 3 I got this code on my website:
Warning: require(includes/templates/template_default/google_analytics/google_analytics.php) [function.require]: failed to open stream: No such file or directory in /home/thrift4/public_html/includes/templates/maria/common/tpl_header.php on line 109
Did I miss something in step 1?
In step 3: I added the code:
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?> to my file as instructed (although may have added it in the wrong place) Here's a snippet of that file:
<!--bof-header ezpage links-->
<?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
<?php } ?>
<!--eof-header ezpage links-->
</div>
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?><?php } ?>
FYI: I had not yet copied and pasted the googlesanalytics.sql patch into my 'Install sql patches' area yet.
Thanks for your help!
-
Re: Simple Google Analytics - Support
Just realized where I may have went wrong. As per the instructions:
Make sure your body tag in /includes/templates/[your_template]/common/tpl_main_page.php
includes this code:
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
The only file I had in the my_template/common was a tpl_header.php (this is the one i made changes to)
The only tpl_main_page.php file is in my template_default/common folders. Should I be editing this file and copying it over to
my_template/common files?
thanks!
-
Re: Simple Google Analytics - Support
I ran it on my test site with the revision I mentioned above and it seemed to work, but have one more question before I run it on my live site :blush:
When I copy & paste google sql patch into my Install sql patch area ...the Executor notes that I 'should end with ;'
However, in the googleanalytics.sql file- it ends with
#----------------------------------------
should I delete this last line before I add it to the sql.
thanks again!!
-
Re: Simple Google Analytics - Support
Hi,
Me again :no:
went ahead with changes mentioned above. I'm getting 'Tracking not Installed' warning from Google. My # shows up on my Page Source, so not sure where I went wrong.
Any ideas would be appreciated.
thanks!
-
Re: Simple Google Analytics - Support
looks like it's working now-just deleted the account # and re-entered it and now it's recieving data
sorry for all the lengthy posts....thanks anyway :smile:
-
Re: Simple Google Analytics - Support
Thanks for the great contrib!
Can someone tell me how to set up 'Site Search'? It's asking for a 'Query Parameter' and I'm not sure what to put. I searched the thread but didn't get any hits. Thanks!
-
Re: Simple Google Analytics - Support
Me again. On top of the 'Site Search' question, has anyone noticed GA missing sales? I've tried switching from 'ga.js' to 'urchin.js' and I still can't get it to track every sale. I do have GA set for ecommerce.
-
Re: Simple Google Analytics - Support
Hello,
I have installed the Google Analytics Mod and it works fine. Nevertheless, I have a small issue: My site runs in multiple domains (server-related issue).
Google says I must add two lines to the tracking code:
Quote:
<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-12345-1");
pageTracker._setDomainName("none");
pageTracker._setAllowLinker(true);
pageTracker._trackPageview();
</script>
I already did this. Now the second thing they ask for is this:
Quote:
Next, you'll need to add the _link function to any links between the domains. Please note that your analytics tracking code and calls to _gat._getTracker (shown in Step 1) must be placed on the page above the call to _link. If your current links look like:
<a href="https://www.secondsite.com/?login=parameters"> Login Now</a>
change them to:
<a href="https://www.secondsite.com/?login=parameters" onclick="pageTracker._link(this.href); return false;">Login Now</a>
3. If you send information between domains using forms, you'll need to use the _linkByPost function. Your analytics tracking code and calls to _gat._getTracker (shown in Step 1) must be placed on the page above the call to _linkByPost.
<form action="http://newdomain.com/form.cgi" onSubmit="javascript:pageTracker._linkByPost(this)">
This will work even for forms where the method="GET"
How can I do this? Please help me!
Thanks a lot!
-
Re: Simple Google Analytics - Support
I have installed the zencart apple template and since ten I don't receive google analytics info anymore.
Why is this?
-
Re: Simple Google Analytics - Support
This is a long long thread. My problem may have been resolved before but I can't find the fix.
Step 3 in the installation of the Simple Google Analytics requires a line of code to be inserted just before the </body> tag at the end of tpl_main_page.php. I did that. The code now looks like this:
Code:
<!--eof- banner #6 display -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
</body>
And when I run the code, the page source ends like this:
Code:
<!--eof- banner #6 display -->
That's it. No analytics code. Even lost the </body> tag.
What am I missing, please.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
dinki
Me again. On top of the 'Site Search' question, has anyone noticed GA missing sales? I've tried switching from 'ga.js' to 'urchin.js' and I still can't get it to track every sale. I do have GA set for ecommerce.
YES! It's always off. When I look at the ecommerce overview this morning it says that we have had 35 sales from 3-9 to 4-8, when in fact we have had 115! And the sales totals are off, the visitors are off, and who knows what else is off!! I don't know if Paypal payments get registered or not since the user is taken off of the site briefly??
It doesn't match with the Advanced Stats mod, supertracker, or sales report mod. So, I stopped even looking at the GA metrics anymore and I think I will remove this mod from my site since the javascript adds 20+KB to my pages and it's inaccurate.
Can anyone counter my experience? Check your sales against what Google reports. Does it match up?
-
Re: Simple Google Analytics - Support
leave the /includes/templates/[your_template]/common/tpl_main_page.php whit no changes and insert the next code in the /includes/templates/[your_template]/common/tpl_footer.php, note just the bold type is the code you have to insert, the rest of lines are a part of tpl_footer.php
<!--eof- site copyright display -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
<?php
} // flag_disable_footer
?>
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
ArthurC
This is a long long thread. My problem may have been resolved before but I can't find the fix.
Step 3 in the installation of the Simple Google Analytics requires a line of code to be inserted just before the </body> tag at the end of tpl_main_page.php. I did that. The code now looks like this:
Code:
<!--eof- banner #6 display -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
</body>
And when I run the code, the page source ends like this:
Code:
<!--eof- banner #6 display -->
That's it. No analytics code. Even lost the </body> tag.
What am I missing, please.
leave the /includes/templates/[your_template]/common/tpl_main_page.php whit no changes and insert the next code in the /includes/templates/[your_template]/common/tpl_footer.php, note just the bold type is the code you have to insert, the rest of lines are a part of tpl_footer.php
<!--eof- site copyright display -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
<?php
} // flag_disable_footer
?>
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
dinki
Me again. On top of the 'Site Search' question, has anyone noticed GA missing sales? I've tried switching from 'ga.js' to 'urchin.js' and I still can't get it to track every sale. I do have GA set for ecommerce.
Make sure you have the tracking code inserted properly and more importantly the tracking id should be accurate.
Because Google Analytics runs via JavaScript (as to most tracking programs) you'll always see slight discrepancies in reporting. Those that have disabled JS on their browser or are blocking it will not show in results. This is mentioned in the Google Analytics help section in a few areas but many miss it.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
josaltva
leave the /includes/templates/[your_template]/common/tpl_main_page.php whit no changes and insert the next code in the /includes/templates/[your_template]/common/tpl_footer.php, note just the bold type is the code you have to insert, the rest of lines are a part of tpl_footer.php
<!--eof- site copyright display -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
<?php
} // flag_disable_footer
?>
With my contribution you definitely do not want to insert the code into the footer file. Leave that as is.
Actually the lines of code that show at the end of the page are part of the tpl_main_page.php file (not footer). Part of it above the code insert is footer but everything below is part of the main template page.
You want to leave the code inserted as per instruction #3. If it is not showing on the site then something happened during pasting of the code OR you inserted it into a page that is not being used within your current template.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
ArthurC
This is a long long thread. My problem may have been resolved before but I can't find the fix.
Step 3 in the installation of the Simple Google Analytics requires a line of code to be inserted just before the </body> tag at the end of tpl_main_page.php. I did that. The code now looks like this:
Code:
<!--eof- banner #6 display -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
</body>
And when I run the code, the page source ends like this:
Code:
<!--eof- banner #6 display -->
That's it. No analytics code. Even lost the </body> tag.
What am I missing, please.
Aurthur,
Insert the code as stated in step 3 (into the tpl_main_page.php NOT the footer file).
If you got that installed and the rest of the contribution is in place (you did upload the proper files right?) then all should show on the bottom of the page just fine.
A few things to look for.
1) Make sure you insert the code into the proper "tpl_main_page.php" file. If you are using a custom template then insert and make sure you upload to your custom directories "common" folder (don't upload to the default template folder or it won't work for you).
2) After you have the code in place make sure you insert your tracking number into the admin config of the module (found in the admin under configuration).
3) Choose the type of code you which to show (new GA.js version or legacy urchin.js version) and save (again from admin).
If all is done correctly then you should have the code in place. If the code cuts off the rest of the page (missing </body> tag etc...) then you likely have a typo in the code you pasted so check that.
That should do it.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
lankeeyankee
YES! It's always off. When I look at the ecommerce overview this morning it says that we have had 35 sales from 3-9 to 4-8, when in fact we have had 115! And the sales totals are off, the visitors are off, and who knows what else is off!! I don't know if Paypal payments get registered or not since the user is taken off of the site briefly??
It doesn't match with the Advanced Stats mod, supertracker, or sales report mod. So, I stopped even looking at the GA metrics anymore and I think I will remove this mod from my site since the javascript adds 20+KB to my pages and it's inaccurate.
Can anyone counter my experience? Check your sales against what Google reports. Does it match up?
There are always MINOR differences in GA reporting due to JavaScript issues. However, providing you have the code setup correctly and completely (typically requires both google admin setup and zen cart setup for the module) you should be within a few sales (give or take).
What you are describing means either the code is not installed correctly or you have them leaving the site and not returning. This is NOT the case all the time with PayPal, and the tracking should pick that all up ok as well (the user is typically sent back automatically to the zen cart site after a purchase to trigger the zen cart processes).
I use PayPal etc... on a number of sites with GA tracking and have had no problems. 95% of the time I see issues as those of what you are experiencing it ends up being incomplete or incorrect tracking setup.
Hope that helps.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
beowulf8
Hello,
I have installed the Google Analytics Mod and it works fine. Nevertheless, I have a small issue: My site runs in multiple domains (server-related issue).
Google says I must add two lines to the tracking code:
I already did this. Now the second thing they ask for is this:
How can I do this? Please help me!
Thanks a lot!
Beowulf,
PM me and I'll work with you to get this in place.
-
Re: Simple Google Analytics - Support
Just for the record...
there's no need for any mod...
i have no problems whatsoever in just copying and pasting the adwords code (as generated by google) into
the bottom of tpl_main_page.php
just need to wait for a while to take effect
then the next day, i checked...
the tracking of the website is fine...
btw, zencart is installed in root...
tks!
wee
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
firefish
Just for the record...
there's no need for any mod...
i have no problems whatsoever in just copying and pasting the adwords code (as generated by google) into
the bottom of tpl_main_page.php
just need to wait for a while to take effect
then the next day, i checked...
the tracking of the website is fine...
btw, zencart is installed in root...
tks!
wee
True you can do this but that method will not allow you to fully and properly track ecommerce transactions or adwords conversion tracking. What it will give you is just statistics but they won't be very useful if you don't completely add the rest of the components so you can make more informed decisions.
If you pasted the "adwords tracking code" at the bottom of that page (you can ONLY get this code if you are running paid search and have conversion tracking turned on) you'll really have a mess on your hands when it comes to checking the effectiveness of your site. Adwords conversion tracking should only appear on the thank you page after a sale has been completed to accurately record data.
If you added the "Google analytics tracking code" (very different from the adwords conversion tracking code) to the bottom of that page then as stated above you will only receive general stats on all pages of the site. Ecom tracking code (part of google analytics) needs to also only appear on the thank you page or it will not work.
So it is possible to take the route you did, but your analytics data will be incomplete and provide incorrect data if you do so.
-
Re: Simple Google Analytics - Support
ah...
thanks for pointing out the subtle but very crucial difference bet. the two...
i guess i will try to implement your code
when i am trying out paid search to track actual conversions.
have you implemented jrox affiliate succesfully to fully encompass the whole spectrum of internet marketing?
i.e. does jrox affiliate tracks affiliates' conversions as well?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
firefish
ah...
thanks for pointing out the subtle but very crucial difference bet. the two...
i guess i will try to implement your code
when i am trying out paid search to track actual conversions.
have you implemented jrox affiliate succesfully to fully encompass the whole spectrum of internet marketing?
i.e. does jrox affiliate tracks affiliates' conversions as well?
Keep in mind that the difference involves more than just paid search. If you are just posting Google Analytics tracking code into your zen cart site in the tpl_main_page.php file then you will loose the ability to track ecommerce transactions and accurately track goals. Both very important parts of the Google Analytic -- that is, if you are looking to have enough data to tell you how to make more money. If you just want statistics and are not as interested in finding out where you can generate more sales then your method will work.
If you are using JROX then you will need to make a slight modification to the code I have. Let me know when you get to that point. JROX has you alter the footer of the checkout success page during it's install. This overrides the Google Analytics thank you page code. They both work together just fine, but you have to move the JROX code to a different page to get it to work with Google Analytics.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
dinki
Thanks for the great contrib!
Can someone tell me how to set up 'Site Search'? It's asking for a 'Query Parameter' and I'm not sure what to put. I searched the thread but didn't get any hits. Thanks!
Try this link. http://www.zencartoptimization.com/2...-100-accuracy/ Further down the page I detail how to setup site search.
-
Re: Simple Google Analytics - Support
I just read econcept's article that mentions analytics tracking, ecommerce tracking, and adwords conversion tracking being needed. Does this mod install all three? It appears as though it does, as I'm getting all the described info in analytics, but I can't find where the checkout success page is to check for the code for the ecommerce and conversion tracking.
Also, does the conversion tracking track any other PPC keywords like Ask or Yahoo, or is it just adwords?
-
Re: Simple Google Analytics - Support
Hi,
I installed the google analytics module on v1.3.8, and have followed all the instructions but am getting the below message (I installed the module yesterday morning and have been getting the message since in my google analytics account):
Tracking Not Installed (Last checked: Apr 19, 2009 5:28:41 PM )
The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website.
Did I miss something or does it take a while for it to find the code?
I can't seem to figure out what i've done wrong
I have checked the source info on my home page and don't see the code that I installed on the bottom of tpl_main_page.php
This is the code (only the bold part) I pasted into the file:
<!--eof- banner #6 display -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE,
$current_page_base,'google_analytics') . '/google_analytics.php');
?>
</body>
Are there spaces between the code and </body> that are missing? Would that make a difference
however when I check the main page source I don't see this, all I see is at the end:
</div>
<!--bof- parse time display -->
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<!--eof- banner #6 display -->
The other thing, when I am in the Admin Page for Zen Cart and check the source code I see the below, however the Google Analytics Web Property ID (shown below) is not the one I have for my page.... ?
</div>
<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-5907240-1");
pageTracker._trackPageview();
</script>
thanks in advance for your help
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
fakeDecoy
I just read econcept's article that mentions analytics tracking, ecommerce tracking, and adwords conversion tracking being needed. Does this mod install all three? It appears as though it does, as I'm getting all the described info in analytics, but I can't find where the checkout success page is to check for the code for the ecommerce and conversion tracking.
Also, does the conversion tracking track any other PPC keywords like Ask or Yahoo, or is it just adwords?
Yes, this module supports all three tracking options. Each is configurable from within the admin (except ecommerce tracking which is automatically put into place upon install.)
You will need to turn on the options from within your Google Analytics account as well (make sure your site is set to an "ecommerce site" in your profile edit area.)
It also automatically adds the required code to the checkout success page as well. This can only be viewed if you complete a successful checkout of course and then "viewing source" on the thank you page.
There should be no need to confirm that though providing you selected that option (adwords tracking) from within the admin, entered your adwords tracking id (different from teh analytics one) and are running a Google Adwords campaign.
Hope that helps.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
parasols
Hi,
I installed the google analytics module on v1.3.8, and have followed all the instructions but am getting the below message (I installed the module yesterday morning and have been getting the message since in my google analytics account):
Tracking Not Installed (Last checked: Apr 19, 2009 5:28:41 PM )
The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website.
Did I miss something or does it take a while for it to find the code?
I can't seem to figure out what i've done wrong
I have checked the source info on my home page and don't see the code that I installed on the bottom of tpl_main_page.php
This is the code (only the bold part) I pasted into the file:
<!--eof- banner #6 display -->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE,
$current_page_base,'google_analytics') . '/google_analytics.php');
?>
</body>
Are there spaces between the code and </body> that are missing? Would that make a difference
however when I check the main page source I don't see this, all I see is at the end:
</div>
<!--bof- parse time display -->
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<!--eof- banner #6 display -->
The other thing, when I am in the Admin Page for Zen Cart and check the source code I see the below, however the Google Analytics Web Property ID (shown below) is not the one I have for my page.... ?
</div>
<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-5907240-1");
pageTracker._trackPageview();
</script>
thanks in advance for your help
I replied with some details via PM as well (in response to your PM to me) but wanted to list a brief summary here for others.
1) for the tracking id being different I would recommend checking to make sure the id in the admin is the correct one. Type the proper one in there for the site you are tracking. If that still does not change the id then someone has manually entered the tracking code on the site in a file and that would need to be removed.
2) in 99% of the cases where tracking code does not show on the bottom of the pages even though one added the line of code in step 3 of the install instructions, the code was entered on the wrong page.
If you are using a custom template make sure you follow the overrides and add the code to that file. If you add it to the default template then upload but you are using a custom template, the code will not show and likely be overridden by the custom page.
-
Re: Simple Google Analytics - Support
I have a question about the Simple Google Analytics mod. First allow me to explain my setup. I am currently running 1.3.8 on a multi-site mod for 15 seperate domains with 1 single admin on the backend. And here recently I have been plagued by Google Analytic issues.. When I first installed the Simple Google Analytic Mod I customized it so that each domain is configured to have it's own UA-xxxxxxx ID as google provides. However recently the marketing team with my company has asked for a revision to be done because if I go to Google analytics and check out Traffic Sources > All Traffic Sources > Ecommerce > and then select the dimension to = Landing Page, I receive data from the /gateway/transact.dll. First off I thought that this was an issue with my integration, however- the integration of Simple Google Analytics (a.k.a "SGA") seems to work fine, then I thought maybe passing google analytic data through the authorize.php and recapturing when the browser pulls back to success page. Then I realized that through authorizenet, if I use the SIM mod, then authorizenet automatically generates the success page to https://secure.authorize.net/gateway/transact.dll in the address bar. So naturally I thought that was the problem, it made sense though. So I made the changes over to AIM and now the data is still coming in the same way. I was just wondering if anyone else has had this issue, and if there is anything else that I can do to rectify this problem. Maybe moving away from Google Analytics is the best scenario, but there isn't much else choice since the marketers here live in Google. Ok, well thanks in advance for any replies or fixes for this issue.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Keep in mind that the difference involves more than just paid search. If you are just posting Google Analytics tracking code into your zen cart site in the tpl_main_page.php file then you will loose the ability to track ecommerce transactions and accurately track goals. Both very important parts of the Google Analytic -- that is, if you are looking to have enough data to tell you how to make more money. If you just want statistics and are not as interested in finding out where you can generate more sales then your method will work.
If you are using JROX then you will need to make a slight modification to the code I have. Let me know when you get to that point. JROX has you alter the footer of the checkout success page during it's install. This overrides the Google Analytics thank you page code. They both work together just fine, but you have to move the JROX code to a different page to get it to work with Google Analytics.
Hi I would like to know what the mod is for the JROX intergration so that the Analytics keep working as it should.
Thanks
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
wowflak
Hi I would like to know what the mod is for the JROX intergration so that the Analytics keep working as it should.
Thanks
Here is the route I have taken in the past. This would bee the way I structure the code on the tpl_main_page.php to work with JROX. I added a portion of code between new comments that I call "Additional Tracking".
Make sure you remove the tpl_footer.php file from the area that the JROX install says to place it in order for the override to not take effect.
Make sure you BACKUP the files you are going to change before you do this so you can easily revert to the older version if needed.
I will be making some updates to the GA code here a some point and will include a note on the JROX integration piece for others that may need it.
Quote:
<!--bof Simple Google Analytics-->
<?php
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
?>
<!--eof Simple Google Analytics-->
<!-- bof Additional Tracking -->
<?php
if($_SERVER['HTTPS']=='on'){ // If page is SSL then use Secure Code
?>
<?php
if ($_GET['main_page']=="checkout_success") {
?>
Add your JROX Code here
<?php } //End if main page is "checkout_success"?>
<?php // Else if not a secure connection then use Non-Secure Code
} else {
// Nothing Here at the moment but if you wanted to add code that would be non-secure you would add it here.
} ?>
<!-- / eof Additional Tracking -->
</body>
</html>