-
Re: Simple Google Analytics - Support
Hi econcepts,
WHEW! It appears there was a "product_info" folder including a tpl_main_page file under my custom template. I'm not sure why there was such folder there. I just removed it and it's now puling the info from the correct tpl_main_page file where the script is. It now all works perfectly. Thanks much for helping me out here, and teaching me how to use the debug feature in the process! I owe you a big one ...
-
Re: Simple Google Analytics - Support
I am using ZC v1.3.9h on a new install. I am using the template lite_green by 12leaves.com.
In the instructions under step 3 (part B) it says to modify html_header.php, my template does not have this file?
Where should I make the following code changes?
-
Re: Simple Google Analytics - Support
trusupport, it's under the template_default, here:
/includes/templates/template_default/common/html_header.php
save it under your template here:
/includes/templates/[your_template]/common/html_header.php
and paste the code as indicated in the install file.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Thannaree
Hi econcepts,
WHEW! It appears there was a "product_info" folder including a tpl_main_page file under my custom template. I'm not sure why there was such folder there. I just removed it and it's now puling the info from the correct tpl_main_page file where the script is. It now all works perfectly. Thanks much for helping me out here, and teaching me how to use the debug feature in the process! I owe you a big one ...
Anytime. :)
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
trusupport
I am using ZC v1.3.9h on a new install. I am using the template lite_green by 12leaves.com.
In the instructions under step 3 (part B) it says to modify html_header.php, my template does not have this file?
Where should I make the following code changes?
Thannaree said it but I wanted to clarify one thing that can be confusing to some.
Quote:
trusupport, it's under the template_default, here:
/includes/templates/template_default/common/html_header.php
COPY that file to your custom template directory (which will activate the zen cart overrides) found here:
/includes/templates/[your_template]/common/html_header.php
and paste the code as indicated in the install file.
(where [your_template] is replaced by the actual name of the template directory you are using.)
Just wanted to clarify as I see many getting confused with wondering 'how to save it' etc...
Thanks to Thannaree for the original response.
-
Re: Simple Google Analytics - Support
Before I go any further, I'd like to know how badly I screwed up. I'm normally not so stupid (really). I was following the directions to a T, with one exception. I was going down the upgrade path. When I realized something wasn't working, I noticed that I was using the upgrade instructions when I hadn't installed it before. If I now follow the CORRECT instructions, will it overwrite what was done to the database? Will everything be okay? Geez, what a dope.
Thanks
Dopey
-
Re: Simple Google Analytics - Support
The files should remain the same for upgrade. The only thing that was different was the SQL patch.
I would run from the beginning (non-upgrade) the new install and you should be ok.
It will write over your DB info but I would suggest you start with a clean slate any how to ensure you have a fresh install.
-
Re: Simple Google Analytics - Support
A clean install would imply that I also did the smart thing of backing up my database before tinkering. I guess I really had a brain fart. How difficult is it to manually remove the changes to the db?
Live and learn (most of the time)
Jim
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jar3300
A clean install would imply that I also did the smart thing of backing up my database before tinkering. I guess I really had a brain fart. How difficult is it to manually remove the changes to the db?
Live and learn (most of the time)
Jim
If you didn't backup the db this time no big deal.
Just run the install script (first time install not upgrade) it will automatically remove the previous DB entries and then reinstall fresh.
-
Re: Simple Google Analytics - Support
On my store www.ribn bon sbas kets.com I have had the mod installed for years but not all the transactions are being tracked in the google ecommerce. For instance in a one month period google ecommerce only tracked 9 but there are more then too many to count. I've always just left it because i dont have time but now im thinking that it would be wise to have a more accurate conversion rate to track. All the basic things like making sure the admin and google settings are set are done.
I have a feeling that it may have to do with the code showing up in multiple places when viewing the source but im not sure. The store has not yet been upgraded - its 1.3.8 Any help would be greatly greatly appreciated. :unsure:
-
Re: Simple Google Analytics - Support
On my store ww w.r ibb o ns ba sk e ts. co m I have had the mod installed for years but not all the transactions are being tracked in the google ecommerce. For instance in a one month period google ecommerce only tracked 9 but there are more then too many to count. I've always just left it because i dont have time but now im thinking that it would be wise to have a more accurate conversion rate to track. All the basic things like making sure the admin and google settings are set are done.
I have a feeling that it may have to do with the code showing up in multiple places when viewing the source but im not sure. The store has not yet been upgraded - its 1.3.8 Any help would be greatly greatly appreciated. :unsure:
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
If you didn't backup the db this time no big deal.
Just run the install script (first time install not upgrade) it will automatically remove the previous DB entries and then reinstall fresh.
I did the install and set up SGA in the Admin. When I ran the install patch I got these errors.
41 statements processed.
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_TRACKING_TYPE" because it already exists
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_CUSTOM_AFTER" because it already exists
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_CUSTOM_AFTER" because it already exists
When I check the status at Google it say it isn't installed.
The site is rusticranchfurniture.com
Thanks
Jim
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jar3300
I did the install and set up SGA in the Admin. When I ran the install patch I got these errors.
41 statements processed.
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_TRACKING_TYPE" because it already exists
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_CUSTOM_AFTER" because it already exists
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_CUSTOM_AFTER" because it already exists
When I check the status at Google it say it isn't installed.
The site is rusticranchfurniture.com
Thanks
Jim
Run the uninstall and then the install sql
-
Re: Simple Google Analytics - Support
Ran the uninstall, 5 statements processed. Reran the install and got the same error message.
Google still says it is not installed.
Thanks
Jim
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
ksookma
On my store ww w.r ibb o ns ba sk e ts. co m I have had the mod installed for years but not all the transactions are being tracked in the google ecommerce. For instance in a one month period google ecommerce only tracked 9 but there are more then too many to count. I've always just left it because i dont have time but now im thinking that it would be wise to have a more accurate conversion rate to track. All the basic things like making sure the admin and google settings are set are done.
I have a feeling that it may have to do with the code showing up in multiple places when viewing the source but im not sure. The store has not yet been upgraded - its 1.3.8 Any help would be greatly greatly appreciated. :unsure:
I went to your site and you are using a different Google Analytics Module than the one this thread supports.
You are using "Google Analytics by Andrew". This is the thread for Simple Google Analytics.
The version of code you are using has a number of problems with tracking ecommerce transactions. My suggestion would be to uninstall it, remove all associated files and changes then install my Simple Google Analytics mod.
Easy install, no problems tracking.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jar3300
Ran the uninstall, 5 statements processed. Reran the install and got the same error message.
Google still says it is not installed.
Thanks
Jim
No, you don't need to uninstall and re-run the SQL. That is all fine (ignore the error messages as it just means the mod is already installed.)
The reason you are not getting any tracking and Google says not installed is because you have not entered your Google Analytics tracking id into the site yet. :)
I went to your site and did a view source. Your tracking id is "UA-xxxxx-xx". This is just filler I included in the mod (placeholder). You need to get the Google Analytics id from within your analytics account and then place it into the section found in the "Google Analytics Configuration" within the Zen Cart Admin (found under the 'Configuration' menu option.)
Once you add that tracking id and save, you'll need to go back to your GA account and 'verify install' for the profile you are tracking.
Google will then be able to verify the code exists and the tracking ID is correct. Shortly after (give it about 24 hours or so) you should start seeing tracking in your Google account.
-
Re: Simple Google Analytics - Support
I forgot after the reinstall to configure it again. I set the id, checked the same way you did and Google still says it isn't installed. Is this Bizarro world?
Profile Name: rusticranchfurniture.com
Website URL: http://rusticranchfurniture.com
Web Property ID [?] : UA-7009853-9
Tracking Status: warning Tracking Not Installed (Last checked: Feb 7, 2011 5:54:21 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.
Thanks
Jim
-
Re: Simple Google Analytics - Support
Hi,
My version of Zen Cart (quite old due for upgrade) is V 1.3.8a.
I installed Simple Google Analytics in an attempt to get google Ecommerce working.
The install seemed to go OK, however when I did a test order, using "test bean bag" found in "pet bean bag" directory.
The checkout_succes page didn't load completely, it loaded the background and nothing else.
After reading online I downloaded and installed the ZenCart debug utility and it began outputting messages like the one below....
Quote:
a[08-Feb-2011 04:26:03] PHP Warning: require(includes/templates/orange/google_analyticsgoogle_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 131
[08-Feb-2011 04:26:03] PHP Warning: require(includes/templates/orange/google_analyticsgoogle_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 131
[08-Feb-2011 04:26:03] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/orange/google_analyticsgoogle_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 131
Basically whats happening is that the html_header file cannot find the google_analytics.php file. After changing things around a bit and copying the google_analytics file into 3 different places namely
my_template/checkout_success/google_analytics/
my_template/checkout_success/
my_template/google_analytics/
There is no more output from the debug utility.
However being the sceptic that I am, I'd like to ask... Even though all seems well, will the actual google analytics have survived the copying and pasting of files into different places in order to overcome the error, I'm thinking not?
-
Re: Simple Google Analytics - Support
Hi,
I appear to be having the same issues as Jim
I have configuered everything in admin but still getting this error at analytics:
Profile Name: www.themakeupartistboutique.com
Website URL: http://www.themakeupartistboutique.com
Web Property ID [?] : UA-21172541-1
Tracking Status: Warning Tracking Not Installed (Last checked: 08-Feb-2011 06:19:49 )
The Google Analytics tracking code has not been detected on your website's homepage. For Analytics to function, you or your web administrator must add the code to each page of your website.
Any idea?
Many thanks
Emma
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
jar3300
I forgot after the reinstall to configure it again. I set the id, checked the same way you did and Google still says it isn't installed. Is this Bizarro world?
Profile Name: rusticranchfurniture.com
Website URL:
http://rusticranchfurniture.com
Web Property ID [?] : UA-7009853-9
Tracking Status: warning Tracking Not Installed (Last checked: Feb 7, 2011 5:54:21 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.
Thanks
Jim
Try adding a trailing slash '/' after your domain name within your Google Analytics profile and then 'recheck' again. Let me know if that finds it on the page.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
stylishbb123
Hi,
My version of Zen Cart (quite old due for upgrade) is V 1.3.8a.
I installed Simple Google Analytics in an attempt to get google Ecommerce working.
The install seemed to go OK, however when I did a test order, using "test bean bag" found in "pet bean bag" directory.
The checkout_succes page didn't load completely, it loaded the background and nothing else.
After reading online I downloaded and installed the ZenCart debug utility and it began outputting messages like the one below....
Basically whats happening is that the html_header file cannot find the google_analytics.php file. After changing things around a bit and copying the google_analytics file into 3 different places namely
my_template/checkout_success/google_analytics/
my_template/checkout_success/
my_template/google_analytics/
There is no more output from the debug utility.
However being the sceptic that I am, I'd like to ask... Even though all seems well, will the actual google analytics have survived the copying and pasting of files into different places in order to overcome the error, I'm thinking not?
Copying it into those three areas probably isn't a good idea. That could throw off tracking.
The reason you got a blank page is because there is a PHP error in your code (that you inserted to to 'require' the file on the page.)
Looking at your error messages, it appears you are missing a 'slash' in the following location.
google_analytics/google_analytics.php
I would remove all areas you added the file to, only add it as directed in the install, and then make sure you have the slash in place so it can find the file in the proper location.
Let me know if that works.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
bubbas454
Hi,
I appear to be having the same issues as Jim
I have configuered everything in admin but still getting this error at analytics:
Profile Name:
www.themakeupartistboutique.com
Website URL:
http://www.themakeupartistboutique.com
Web Property ID [?] : UA-21172541-1
Tracking Status: Warning Tracking Not Installed (Last checked: 08-Feb-2011 06:19:49 )
The Google Analytics tracking code has not been detected on your website's homepage. For Analytics to function, you or your web administrator must add the code to each page of your website.
Any idea?
Many thanks
Emma
Check my reply to him. It sounds like it might be the same thing. Try adding the slash and recheck. Let me know if that works. (This is done within your Google Analytics account in the "Edit Profile" section for the site in question.
-
Re: Simple Google Analytics - Support
I've got the script setup exactly as in the install instructions, however the checkout_success page now refuses to show.
The error message from the debugger is
Quote:
[08-Feb-2011 19:54:50] PHP Warning: require(includes/templates/orange/checkout_success//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 132
[08-Feb-2011 19:54:50] PHP Warning: require(includes/templates/orange/checkout_success//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 132
[08-Feb-2011 19:54:50] PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'includes/templates/orange/checkout_success//google_analytics.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/stylish/public_html/includes/templates/orange/common/html_header.php on line 132
essentially it is looking for the google analytics file here...
includes/templates/orange/checkout_success//google_analytics.php
instead of here
includes/templates/orange/checkout_success/google_analytics/google_analytics.php
however I'm unsure how to sort this problem. If i try to edit the directory in the html_header page the problem is still there except it will try to look eg. includes/templates/orange/checkout_success/google_analytics//google_analytics.php
It is a really daft problem involving / and .. in php paths but I've tried adding and removing / and .. and all sorts of things and it keeps looking everywhere but the right place :cry:
-
Re: Simple Google Analytics - Support
I've managed to sort the problem however not in a way I'd have liked.
Inside the checkout_success was a tpl_footer.php file as soon as I deleted this everything worked fine. It seems that as soon as any page is places into the checkout_success folder it causes this line...
Quote:
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
to fail as the $base_page changes to be looking /checkout_success and I've tried concatenating ../ and allsorts to this and can't get it up to parent directory.
The issue now though is that the footer.php file was there for a reason, it contained custom Jrox code in it. So now how can I ensure that the Jrox code appears only on the checkout_success page BUT I'm not allowed to create any overrides?
Alternatively, is there any way to include ../ or similar to force this line
Quote:
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
to look here /includes/templates/orange/google_analytics/google_analytics.php ?
The sites URL is Stylish Bean Bags . co . uk if you want to take a look, at the minute though its working as I've still got the footer deleted. Its probably easier to put the Jrox code onto the checkout_success some other way, hopefully?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Check my reply to him. It sounds like it might be the same thing. Try adding the slash and recheck. Let me know if that works. (This is done within your Google Analytics account in the "Edit Profile" section for the site in question.
I have the same problem..
I have tried the trailing slash as well..
Any ideas..
When I look at the source there is gaps in the lines..
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21272482-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Check my reply to him. It sounds like it might be the same thing. Try adding the slash and recheck. Let me know if that works. (This is done within your Google Analytics account in the "Edit Profile" section for the site in question.
Yep tried it no idea what to try next or what I am actually doing wrong
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
No, you don't need to uninstall and re-run the SQL. That is all fine (ignore the error messages as it just means the mod is already installed.)
The reason you are not getting any tracking and Google says not installed is because you have not entered your Google Analytics tracking id into the site yet. :)
I went to your site and did a view source. Your tracking id is "UA-xxxxx-xx". This is just filler I included in the mod (placeholder). You need to get the Google Analytics id from within your analytics account and then place it into the section found in the "Google Analytics Configuration" within the Zen Cart Admin (found under the 'Configuration' menu option.)
Once you add that tracking id and save, you'll need to go back to your GA account and 'verify install' for the profile you are tracking.
Google will then be able to verify the code exists and the tracking ID is correct. Shortly after (give it about 24 hours or so) you should start seeing tracking in your Google account.
It is working. I kept hitting the back button and clicking on check status. I went out and signed back in and it shows "receiving data".
thanks
jim
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
stylishbb
I've managed to sort the problem however not in a way I'd have liked.
Inside the checkout_success was a tpl_footer.php file as soon as I deleted this everything worked fine. It seems that as soon as any page is places into the checkout_success folder it causes this line...
to fail as the $base_page changes to be looking /checkout_success and I've tried concatenating ../ and allsorts to this and can't get it up to parent directory.
The issue now though is that the footer.php file was there for a reason, it contained custom Jrox code in it. So now how can I ensure that the Jrox code appears only on the checkout_success page BUT I'm not allowed to create any overrides?
Alternatively, is there any way to include ../ or similar to force this line
to look here /includes/templates/orange/google_analytics/google_analytics.php ?
The sites URL is Stylish Bean Bags . co . uk if you want to take a look, at the minute though its working as I've still got the footer deleted. Its probably easier to put the Jrox code onto the checkout_success some other way, hopefully?
Yes, that will cause issues (the added footer file in the 'checkout_success' directory.)
I've written a number of posts that answer the JROX issue so that can be corrected as well.
Here is your answer:
http://www.zencartoptimization.com/2...-the-workbook/
Scroll down to the comment I wrote on July 22, 2009. The details on how to make the two work together are there.
Let me know if that helps.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
bubbas454
Yep tried it no idea what to try next or what I am actually doing wrong
@rorock and @bubbas454,
Keep trying. The code looks right. Check Jim's reply in post #1429
http://www.zen-cart.com/forum/showpo...postcount=1429
He had the same issue and simply 'kept re-verifying'. Google eventually 'found it'.
Let me know if you have similar experiences.
-
Re: Simple Google Analytics - Support
OK. I have two sites using Simple Google Analytics:
scubadorag.com and supernutrient.com
They are both using Zen 1.3.9h. They are almost identical on the back end. I have separate Google Analytics accounts tracking both. One is giving me results in the eCommerce area (scubadorag.com) and one isn't (supernutrient.com). I can't see anything that is different between the two and I'm about to lose my mind.
I'm hoping that another set of eyes notices anything obvious that I've done to screw up.
Thank you!
-
Re: Simple Google Analytics - Support
Ever since I installed the Jrox footer file in its own "CheckoutSuccess" folder (per Jrox instructions), Google analytics doesn't report any of my sales. I have Simple Google Analytics v. 1.2.2 installed. Any ideas what I can do to fix this? (I posted this several days ago, but in the wrong forum--so this is a re-post)
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
hermes369
OK. I have two sites using Simple Google Analytics:
scubadorag.com and supernutrient.com
They are both using Zen 1.3.9h. They are almost identical on the back end. I have separate Google Analytics accounts tracking both. One is giving me results in the eCommerce area (scubadorag.com) and one isn't (supernutrient.com). I can't see anything that is different between the two and I'm about to lose my mind.
I'm hoping that another set of eyes notices anything obvious that I've done to screw up.
Thank you!
The main problem I see in the source code of the two sites is (scubadorag.com) has the GA code in the right spot before the </head> tag. The (supernutrient.com) site has the GA code after the beginning of the <body> tag. The GA code needs to be before the </head> tag. I hope this helps.
-
Re: Simple Google Analytics - Support
Thank you for sharing great information here. It is really helpful.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
carol2848
Ever since I installed the Jrox footer file in its own "CheckoutSuccess" folder (per Jrox instructions), Google analytics doesn't report any of my sales. I have Simple Google Analytics v. 1.2.2 installed. Any ideas what I can do to fix this? (I posted this several days ago, but in the wrong forum--so this is a re-post)
Still trying! Would I hurt anything if I copied the tpl_main_page.php file from the "common" folder, and put it in the new (jrox) "checkout success" folder?
-
Re: Simple Google Analytics - Support
These files -- the jrox "Checkout_success" and the "common" are both at includes -> templates -> MYTEMPLATE ->
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Redbaron2
The main problem I see in the source code of the two sites is (scubadorag.com) has the GA code in the right spot before the </head> tag. The (supernutrient.com) site has the GA code after the beginning of the <body> tag. The GA code needs to be before the </head> tag. I hope this helps.
This actually depends on the type of tracking used. Not all GA code goes in the same place. One of your sites is using Asych. Tracking (which should be before the closing </head> tag and the other is using either ga.js or Legacy (urchin) code (which should be at the bottom of the page before the closing </body> tag.
Neither of the positions will affect ecom tracking. If one site is tracking and the other isn't there is something else wrong.
Have you made sure that you selected 'this is an ecommerce site' from within both of the profiles? (This is done from within your Google Analytics account. If that is not turned on in one account, Google will not pick up the Ecom. tracking.
Let me know if that works.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
carol2848
These files -- the jrox "Checkout_success" and the "common" are both at includes -> templates -> MYTEMPLATE ->
Did you get to read my post about how to integrate these two? Scroll down a few posts back and you'll find a link to an article I wrote with comments explaining how to do this.
Let me know if that helps.
-
Re: Simple Google Analytics - Support
Please, I am looking for some help with my GA on my site: www.ambersscrapattic.com/shop
I thought I had everything where it should go. However, it's been over a week now. GA is still saying that I haven't installed any code. My admin area has the proper code GA gave me for tracking in it's configuration. I have also made sure that I checked the box saying my site is ecomm.
I am sinking in over my head trying to find where I've gone wrong. I am a beginner I admit. I know I have done something either wrong or just incomplete. I just don't know what or where to fix.
If someone could please send me in the right direction I would really appreciate it.
Thank you!
Amber
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
carol2848
Still trying! Would I hurt anything if I copied the tpl_main_page.php file from the "common" folder, and put it in the new (jrox) "checkout success" folder?
You don't want to do that. You need to get rid of the checkout_success folder and merge the JROX alterations into the tpl_main_page.php file found in your 'common' folder.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
pepsishot
Please, I am looking for some help with my GA on my site:
www.ambersscrapattic.com/shop
I thought I had everything where it should go. However, it's been over a week now. GA is still saying that I haven't installed any code. My admin area has the proper code GA gave me for tracking in it's configuration. I have also made sure that I checked the box saying my site is ecomm.
I am sinking in over my head trying to find where I've gone wrong. I am a beginner I admit. I know I have done something either wrong or just incomplete. I just don't know what or where to fix.
If someone could please send me in the right direction I would really appreciate it.
Thank you!
Amber
You don't have any tracking code on the pages of your site, that is why Google is not seeing it.
Make sure you complete step 3 of the README file. That is a line of code which inserts the tracking on the page. Then you'll need to copy and paste your tracking ID provided by Google into your Zen Cart admin in the area found under Configuration > Google Analytics Configuration.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Make sure you complete step 3 of the README file. That is a line of code which inserts the tracking on the page.
There were 2 parts to step 3. A) to the tpl_main_page.php and then B) to the html_header.php
I opened both and added the code that was listed in the README. I don't see where my GA code should go in there.
I'm sorry, could you please break it down for me?
My admin has my GA code. I believe that part is done correctly. It's the step 3 that is my hang up. I think.
Thank you.
Amber
-
Re: Simple Google Analytics - Support
Thank you Redbaron2 and econcepts. I've made sure that the code is the same on both, and yes, e-commerce is checked inside of Google Analytics. It's making my head hurt!
I think I've tried this before; but, in case I haven't, I've added a trailing slash to the Website URL in the hopes that makes the difference. ARGH!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
pepsishot
There were 2 parts to step 3. A) to the tpl_main_page.php and then B) to the html_header.php
I opened both and added the code that was listed in the README. I don't see where my GA code should go in there.
I'm sorry, could you please break it down for me?
My admin has my GA code. I believe that part is done correctly. It's the step 3 that is my hang up. I think.
Thank you.
Amber
Now I'm more confused than ever. While waiting for additional help... my cart disappeared. My host told me to remove my attempt to add this simple google analytics mod and see what happens. I did and now my cart is back. Which is great I guess. But I really want to add this tracking and can't seem to get it to work.
Any ideas?
The steps are very easy to follow and yet I've gone wrong somewhere.
Thank you for any help you may offer me.
Amber
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
pepsishot
Now I'm more confused than ever. While waiting for additional help... my cart disappeared. My host told me to remove my attempt to add this simple google analytics mod and see what happens. I did and now my cart is back. Which is great I guess. But I really want to add this tracking and can't seem to get it to work.
Any ideas?
The steps are very easy to follow and yet I've gone wrong somewhere.
Thank you for any help you may offer me.
Amber
Amber,
Send me a private message and we'll work through it here.
Thanks!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
hermes369
I've added a trailing slash to the Website URL in the hopes that makes the difference. ARGH!
No dice. Still nothing. :-(
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
hermes369
No dice. Still nothing. :-(
What's the URL of the website?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
What's the URL of the website?
http://www.supernutrient.com/cart/index.php
When I look at the content overlay in Google Analytics on scubadorag.com (the other cart, where google analytics is reporting), I can see where people are clicking on the link to the cart. However, on supernutrient.com, there are no clicks registered on the link to the cart, despite our getting plenty of orders. Also, there are no registered clicks inside the cart. On the scubadorag.com overlay, there are clicks registered inside the cart.
Thanks for your help.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
hermes369
http://www.supernutrient.com/cart/index.php
When I look at the content overlay in Google Analytics on scubadorag.com (the other cart, where google analytics is reporting), I can see where people are clicking on the link to the cart. However, on supernutrient.com, there are no clicks registered on the link to the cart, despite our getting plenty of orders. Also, there are no registered clicks inside the cart. On the scubadorag.com overlay, there are clicks registered inside the cart.
Thanks for your help.
The overlay is not a good indicator of clicks etc... Until it gets revamped I wouldn't even look at it. Here's why:
http://www.zencartoptimization.com/2...overlay-trick/
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
hermes369
http://www.supernutrient.com/cart/index.php
When I look at the content overlay in Google Analytics on scubadorag.com (the other cart, where google analytics is reporting), I can see where people are clicking on the link to the cart. However, on supernutrient.com, there are no clicks registered on the link to the cart, despite our getting plenty of orders. Also, there are no registered clicks inside the cart. On the scubadorag.com overlay, there are clicks registered inside the cart.
Thanks for your help.
Looking at the code on the pages, both looks ok. This leads me to believe that the issue is one which is related to the Google Analytics account side of things.
Have you compared the tracking id that you are using in the cart which is not reporting with the tracking id of the same profile (in your Google Analytics account) to ensure they are the same. I've seen where a store accidentally inserts the tracking ID from a different profile and thus the tracking funnels there and not into the proper one they are looking at.
If that is correct, the only way I would be able to see what you might have done wrong is to get access to your Google Analytics account to check it out. The on page code looks good so the problem likely is in there somewhere.
Send me a private message if you want me to let you know what we could do.
Thanks!
-
Re: Simple Google Analytics - Support
Quick question. running the latest Zen Cart with a template add-on. I don't know too much about this kind of thing but am smart enough to NOT make a change without a backup or int the middle of a rush.
In trying to install the Google analytics I think I have it all covered except the 'last part'?
* Ive signed up on google got my code / put it in admin/config
* copied the two files into the proper directories on my site (renamed admin folder and 'my template' folder
* Step 3 - made the change in tpl_main_page.php
* Step 3 part B (HERE IS MY ISSUE) - make change in html_header.php ...
I dont have that page listed? I'm assuming it's because of the template I am using? I have a tpl_headed.php BUT there is no </head> tag found at the bottom of it?
Any suggestions?
i was scared to add it to the tpl_header page as I was right in the middle of a rush and didn't wanna brick my site.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
it2steve
Quick question. running the latest Zen Cart with a template add-on. I don't know too much about this kind of thing but am smart enough to NOT make a change without a backup or int the middle of a rush.
In trying to install the Google analytics I think I have it all covered except the 'last part'?
* Ive signed up on google got my code / put it in admin/config
* copied the two files into the proper directories on my site (renamed admin folder and 'my template' folder
* Step 3 - made the change in tpl_main_page.php
* Step 3 part B (HERE IS MY ISSUE) - make change in html_header.php ...
I dont have that page listed? I'm assuming it's because of the template I am using? I have a tpl_headed.php BUT there is no </head> tag found at the bottom of it?
Any suggestions?
i was scared to add it to the tpl_header page as I was right in the middle of a rush and didn't wanna brick my site.
Copy the html_header.php file from the 'template_default' directory (into your own custom directory) and then work with that. That is how you get it into there if not already present.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Copy the html_header.php file from the 'template_default' directory (into your own custom directory) and then work with that. That is how you get it into there if not already present.
Thanks for the quick reply, HOWEVER I did notice that I am getting movement on my google analytics now. Should I leave it be or is there something necessary in that header that you think I'd need? I'm not much into all the php / web stuff and like to keep it as simple as possible.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
it2steve
Thanks for the quick reply, HOWEVER I did notice that I am getting movement on my google analytics now. Should I leave it be or is there something necessary in that header that you think I'd need? I'm not much into all the php / web stuff and like to keep it as simple as possible.
You will need the header file if you switch to the new Asychronous tracking method Google has (you get that option from with my Analytics admin and can choose between three different tracking codes.)
If you are using anything but the asych code it should work but I would advise for correctness to add the proper info the the html header as not doing so can cause problems in the future. Partially installing something is never a good idea.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
You will need the header file if you switch to the new Asychronous tracking method Google has (you get that option from with my Analytics admin and can choose between three different tracking codes.)
If you are using anything but the asych code it should work but I would advise for correctness to add the proper info the the html header as not doing so can cause problems in the future. Partially installing something is never a good idea.
again, thanks for your help... you don't think that copying that html_header.php will change the appearance or functionality of my 'current' template?
If it's easier to look at what I have it's at electronicCrap.com (I know catchy) I just started this thing 10 days ago to help out with hard to find items for a select group and it's gone nuts, 100 orders in 10 days. I thought I'd use this tool to see what the possibilities of 'expanding' are.
Just scared to mess something up that's working so well.
[EDIT] just tried to drop it in and the site went away until I pulled it back out. any thoughts?
-
Re: Simple Google Analytics - Support
Eric which code show the most data and does the best job. The legacy 'urchin.js' tracking code, the ga.js tracking code or the newest Asynchronous tracking code released in Dec 2009 by Google. I always wondered about that. Thanks for you response.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
it2steve
again, thanks for your help... you don't think that copying that html_header.php will change the appearance or functionality of my 'current' template?
If it's easier to look at what I have it's at electronicCrap.com (I know catchy) I just started this thing 10 days ago to help out with hard to find items for a select group and it's gone nuts, 100 orders in 10 days. I thought I'd use this tool to see what the possibilities of 'expanding' are.
Just scared to mess something up that's working so well.
[EDIT] just tried to drop it in and the site went away until I pulled it back out. any thoughts?
That file should not alter the look of your template at all.
It should drop in flawlessly and have no negative impact. If the site goes away (white page) when you drop it in that means you have a PHP error somewhere in the file (likely created from attempting to add new lines of code but not completed correctly.)
The way to find out where your error is is to check your error log (found in your cache directory). This will tell you the exact location of the PHP error so you can correct it.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
countrycharm
Eric which code show the most data and does the best job. The legacy 'urchin.js' tracking code, the ga.js tracking code or the newest Asynchronous tracking code released in Dec 2009 by Google. I always wondered about that. Thanks for you response.
Google says the newest code will give you the 'most' information. However, many people don't even know 'how or where' to find that info (or even set it up) by using new tracking codes so it doesn't matter.
All forms of tracking will provide you with the basic info you need to run a successful business. I've found that the ga.js tracking code produces a larger margin of error specifically with regard to ecommerce tracking (inconsistent reporting) so I never personally use that.
I tend to stay with either the older urchin methods (for most accurate results) and have been migrating to the asych tracking on a few sites. ONce I determine the asych tracking is as accurate in core data (the info I use to run a business) as the legacy urchin code I'll migrate to that fully.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Google says the newest code will give you the 'most' information. However, many people don't even know 'how or where' to find that info (or even set it up) by using new tracking codes so it doesn't matter.
All forms of tracking will provide you with the basic info you need to run a successful business. I've found that the ga.js tracking code produces a larger margin of error specifically with regard to ecommerce tracking (inconsistent reporting) so I never personally use that.
I tend to stay with either the older urchin methods (for most accurate results) and have been migrating to the asych tracking on a few sites. ONce I determine the asych tracking is as accurate in core data (the info I use to run a business) as the legacy urchin code I'll migrate to that fully.
Thanks for the information
-
Re: Simple Google Analytics - Support
I have installed the Google Analytics by Andrew, but I can't find the support thread for it. Would anybody direct me to the right thread.
Thanks to All
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Just submitted a new 1.2.4 version of this mod that includes a fix for the popup window issue some have experienced.
If you have 1.2.3 version you do not need to upload any files. All you have to do is take the following action to remedy the situation.
Open the file "html_header.php" file from your template directory 'common' folder (making sure you have the proper location for the template you are using if custom.)
1) Once opened, find the section of code that looks like this (usually just before the closing </HEAD> tag):
Find this:
-------------------------------------------------
Quote:
<?php
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
?>
And change to this:
--------------------------------------------------
Quote:
<?php
/* Begin Simple Google Analytics */
if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,pop up_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popu p_shipping_estimator')) ) {
//Skip outputting the tracking code as this is a pop-up window
} else { // Print tracking code to page
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
} // end if for page determination
/* End Simple Google Analytics */
?>
That should correct the issue. If you find that any other pages are causing the same issue (I think I got them all) just add that to the array shown here and it will eliminate the problem on those pages.)
If you can' wait for the new version to be activated in the Zen Cart downloads section you can get the newest version from the following link right now:
http://www.zencartoptimization.com/downloads/
Post any issues in this forum.
Thanks for this fix, was a bit boggled by this. I know this post was a while ago but I have made one addition to a popup which was not included and fixed the space in the wordings. I shall highlight the addition in bold.
Code:
<?php
/* Begin Simple Google Analytics */
if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,popup_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popup_shipping_estimator,info_shopping_cart')) ) {
//Skip outputting the tracking code as this is a pop-up window
} else { // Print tracking code to page
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
} // end if for page determination
/* End Simple Google Analytics */
?>
-
Re: Simple Google Analytics - Ecommerce not tracking
Hello everyone,
About 10 days ago I switched from the other Analytics mod to Simple Google Analytics using Asynchronous code. Everything seems to be tracking OK except ecommerce which I do have enabled in G Analytics. I've had a couple of purchases since then and I've also made a test purchase but they don't show up.
Is there a period of time after switching to Simple Google Analytics where it won't pick up the transactions or have I done something incorrectly?
Any help is appreciated...thank you.
Zen 139h
PHP 5.2.16
MySQL 5.0.92
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Minu
I have installed the Google Analytics by Andrew, but I can't find the support thread for it. Would anybody direct me to the right thread.
Thanks to All
That support thread is here:
http://www.zen-cart.com/forum/showthread.php?t=43907
I haven't seen any support from the original programmer in there given for a while (I've been answering questions in there for people to help them.)
This is the support thread for my module: Simple Google Analytics
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
AshleyNG2
Thanks for this fix, was a bit boggled by this. I know this post was a while ago but I have made one addition to a popup which was not included and fixed the space in the wordings. I shall highlight the addition in bold.
Code:
<?php
/* Begin Simple Google Analytics */
if (in_array($current_page_base,explode(",",'popup_image,popup_image_additional,popup_cvv_help,popup_coupon_help,popup_attributes_qty_prices,popup_search_help,popup_shipping_estimator,info_shopping_cart')) ) {
//Skip outputting the tracking code as this is a pop-up window
} else { // Print tracking code to page
if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") {
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php');
}
} // end if for page determination
/* End Simple Google Analytics */
?>
Super thanks!
-
Re: Simple Google Analytics - Ecommerce not tracking
Quote:
Originally Posted by
kcb410
Hello everyone,
About 10 days ago I switched from the other Analytics mod to Simple Google Analytics using Asynchronous code. Everything seems to be tracking OK except ecommerce which I do have enabled in G Analytics. I've had a couple of purchases since then and I've also made a test purchase but they don't show up.
Is there a period of time after switching to Simple Google Analytics where it won't pick up the transactions or have I done something incorrectly?
Any help is appreciated...thank you.
Zen 139h
PHP 5.2.16
MySQL 5.0.92
There should be no period of time to wait unless you weren't tracking ecommerce before. Even then it would be minimal.
Here is a thought for you.
1) When you uninstalled the other mod (assuming it was Google Anlaytics by Andrew) are you sure you reversed all those changes both in the files and in the database? The tracking in that mod didn't work well with ecommerce for some reason and if you didn't reverse all files changes and remove all files that came with that package, you could have carried over some of those native issues.
I suspect this might be the cause (some overlap in code etc...).
2) Do you have any type of affiliate tracking activated on your site? If so, which one? There is a work around for the code if this is the case.
-
Re: Simple Google Analytics - Ecommerce not tracking
Hello Econcepts,
Quote:
Originally Posted by
econcepts
Here is a thought for you.
1) When you uninstalled the other mod (assuming it was Google Anlaytics by Andrew) are you sure you reversed all those changes both in the files and in the database? The tracking in that mod didn't work well with ecommerce for some reason and if you didn't reverse all files changes and remove all files that came with that package, you could have carried over some of those native issues.
I suspect this might be the cause (some overlap in code etc...).
I'll go through and double check this later today. I thought I got everything.
Quote:
Originally Posted by
econcepts
2) Do you have any type of affiliate tracking activated on your site? If so, which one? There is a work around for the code if this is the case.
I don't have any affiliate tracking activated that I know of.
Thank you for the reply Econcepts.
Paul
-
Re: Simple Google Analytics - Ecommerce not tracking
Quote:
Originally Posted by
kcb410
Hello Econcepts,
I'll go through and double check this later today. I thought I got everything.
I don't have any affiliate tracking activated that I know of.
Thank you for the reply Econcepts.
Paul
If you don't have any affiliate tracking installed then it is likely that a few files (or files you altered) remain from the previous installation. This would cause tracking to be in accurate.
-
Re: Simple Google Analytics - Support
I am in step 2 of installing the simple Google analytics, but I don't have a file in common called "tpl_main_page.php" I am using ZenCart 1.3.9
any idea?
Thanks and God Bless
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Minu
I am in step 2 of installing the simple Google analytics, but I don't have a file in common called "tpl_main_page.php" I am using ZenCart 1.3.9
any idea?
Thanks and God Bless
Hello,
What is your file path to the folder 'common'?
Are you using the Classic template (standard when zen is installed)?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
kcb410
Hello,
What is your file path to the folder 'common'?
Are you using the Classic template (standard when zen is installed)?
Thanks KCB410;
the common file is in the following path
"includes/template/andover_modern/common"
my template is "andover_modern"
Thanks for your help
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Minu
Thanks KCB410;
the common file is in the following path
"includes/template/andover_modern/common"
my template is "andover_modern"
Thanks for your help
You wouldn't find it there unless you copied it there from its original location. You'll want to download the file from includes/templates/template_default/common make the required changes and upload it to includes/template/andover_modern/common.
You may want to check out this article on setting template overrides.
https://www.zen-cart.com/tutorials/index.php?article=36
-
Re: Simple Google Analytics - Support
I don't have the page /includes/templates/[your_template]/common/tpl_main_page.php, what shall i do? Thanks!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
melena
I don't have the page /includes/templates/[your_template]/common/tpl_main_page.php, what shall i do? Thanks!
yes I have done all the templ
ates override as above and it is still not working!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
melena
yes I have done all the templ
ates override as above and it is still not working!
Look a few posts below and you'll find the answer. You need to copy the file tpl_main_page.php from your template_default directory into your custom override template directory and then make adjustments to that. That is how you activate the template overrides.
If you have done this already, make sure you completed step 3 of the install.
If you think you have don all of this, view your site in a browser. While looking at it perform a 'view source'. Look for the Google Analytics tracking code on the page. Make sure it has your proper tracking id showing (if not you need to add that in the Zen Cart admin.)
If all that is in place and it still is not working you need to make sure you tell Google to "check the tracking" on the page so they know you have it in place and can start recording data for you.
Let me know if this helps.
If you provide a URL to the site that would help as well.
Thanks!
-
Re: Simple Google Analytics - Support
Hi,
I have been getting quite a few hits and a few sales from google image search. I thought it would be great if I was able track these image searches and see what keywords were being used etc. so I googled it and found this. Would it be possible to implement something like that using this mods "Google Custom Code - After" custom code entry feature?
Thanks :smile:
-
Re: Simple Google Analytics - Support
@gafettape,
Yes you can track it with my module by simply adding a few lines of custom code. Version 1.2.4 of my Simple Google Analytics module will let you do this with either the ga,js version or the Asynchronous version of the tracking script. 1.2.3 will only let you do it with the Asynchronous version.
I wrote an article here on how it is done since I noticed many others were also looking for the answer to this. You can read that here: Image Search Keyword Tracking with Google Analytics.
In short, to add the ability of keyword tracking via Google Image Search you first need to determine the type of tracking code you are using.
Once you have determined that, all you have to do is go to the configuration section of my module (Admin > Configuration > Google Analytics Configuration) and in the section that says "Google Custom Code - After" add one of the following snippets (based on the type of tracking you are using):
ga.js users add the following:
Quote:
PHP Code:
var ref = document.referrer;
if (ref.search(/images.google/) != -1 && ref.search(/prev/) != -1) {
var regex = new RegExp("images.google.([^/]+).*&prev=([^&]+)");
var match = regex.exec(ref);
pageTracker._clearOrganic();
pageTracker._addOrganic("images.google."+ match[1],"q");
pageTracker._setReferrerOverride("http://images.google." + match[1] + unescape(match[2]));
}
Asychronous users add the following:
Quote:
PHP Code:
var ref = document.referrer;
if (ref.search(/images.google/) != -1 && ref.search(/prev/) != -1) {
var regex = new RegExp("images.google.([^\/]+).*&prev=([^&]+)");
var match = regex.exec(ref);
_gaq.push(['_clearOrganic']);
_gaq.push(['_addOrganic','images.google.'+match[1],'q']);
_gaq.push(['_setReferrerOverride', 'http://images.google.'+match[1]+unescape(match[2])]);
}
Save that and now enable the custom tracking by setting the option that says "Add Custom Tracking After Main Analytics Code?" to "Enable".
Refresh your page and view the source to make sure the new tracking is in place.
Let me know how this works for you.
-
Re: Simple Google Analytics - Support
Thanks for your detailed response Eric, I'll give it a go sometime today and let you know how I get on.
One question: do I need to add or adjust anything in my Google Analytics account?
Thanks :smile:
-
Re: Simple Google Analytics - Support
Still fighting Google... I'm convinced my problem is on the Google side. My client has a user number with Google that's tied to AdSense. Because I'm the one who looks after his site, I created the Analytics account with my user number. Apparently, this makes the Google unhappy.
The next thing is for me to try is to delete my profile for his site and use his. I don't know if anyone else has experienced a similar situation; but, I'll post back if it works.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
gaffettape
Thanks for your detailed response Eric, I'll give it a go sometime today and let you know how I get on.
One question: do I need to add or adjust anything in my Google Analytics account?
Thanks :smile:
Not to track what you are looking to do.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
hermes369
Still fighting Google... I'm convinced my problem is on the Google side. My client has a user number with Google that's tied to AdSense. Because I'm the one who looks after his site, I created the Analytics account with my user number. Apparently, this makes the Google unhappy.
The next thing is for me to try is to delete my profile for his site and use his. I don't know if anyone else has experienced a similar situation; but, I'll post back if it works.
What problem are you actually experiencing? As long as you use the number associated with their domain profile you should get tracking. It doesn't matter where the account is setup or what it it tied to. The only reason you might want it under their name is so they can access it without needing access to your own account.
-
Re: Simple Google Analytics - Support
Thanks for your help Eric, I'll add that code now and let you know how it's going in a few days :smile:
-
Re: Simple Google Analytics - Support
[QUOTE=econcepts;1011407]What problem are you actually experiencing?/QUOTE]
I'm tracking everything except sales. I'm getting results including pages inside Zen, just not sales. Yes, e-commerce is checked, ;-). The only thing that comes to mind is something's different on the checkout pages? That'd be weird. The code is there, that's why I think it has to something in GA.
-
Re: Simple Google Analytics - Support
Hi Eric,
thanks for your reply. Yes I did all those steps when I checked the page source code the adwords account showed up as UAXXXX-X. And I'm 100% that I did configure it in the admin panel I actually checked it several times to make sure! Anyway I did it again and now the my UA shows up in the source code, I checked the analytics and it is receiving data. Hopefully this time it's gonna work.
Thanks again!
-
Re: Simple Google Analytics - Support
I've resolved the user issue. I deleted the profile in GA that was linked to my UA and created a profile for my client using his UA. I hated to lose the data; but, it will be worth it if I can start tracking sales. The client's profile is receiving data. I will try to be patient. :-)
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
melena
Hi Eric,
thanks for your reply. Yes I did all those steps when I checked the page source code the adwords account showed up as UAXXXX-X. And I'm 100% that I did configure it in the admin panel I actually checked it several times to make sure! Anyway I did it again and now the my UA shows up in the source code, I checked the analytics and it is receiving data. Hopefully this time it's gonna work.
Thanks again!
Glad to hear you got it working.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
hermes369
I've resolved the user issue. I deleted the profile in GA that was linked to my UA and created a profile for my client using his UA. I hated to lose the data; but, it will be worth it if I can start tracking sales. The client's profile is receiving data. I will try to be patient. :-)
Great! Good luck!
-
Re: Simple Google Analytics - Support
Hey there! Just curious, installed this mod last night.
I am to the point where my Google Analytics status shows a check and is receiving data with 1 visit from last night. I have had 15 site visits this morning and I am still seeing the same status and 1 visit.
I followed some advice and looked at the source on the main page and the tracking is definitely there and my UA number matches. However, the tracking code seems different than what Google Analytics wanted me to copy:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-1]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Any ideas? Seems weird that the GA site says it Receiving Data but nothing is updating.
Appreciate the help!
-
Re: Simple Google Analytics - Support
Hi I have recently uploaded the latest version of this module and would like to know how this module tracks the E commerce side of things through Google analytic's Not adwords.
I did have a module in which allowed the tracking of the E commerce through Google analytics but some thing messed up the other week and tracking stopped.
the site i have installed the module on is below any info will help
http://www.vivanco-direct.com/
cheers
Mike B
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
brewtusplease
Hey there! Just curious, installed this mod last night.
I am to the point where my Google Analytics status shows a check and is receiving data with 1 visit from last night. I have had 15 site visits this morning and I am still seeing the same status and 1 visit.
I followed some advice and looked at the source on the main page and the tracking is definitely there and my UA number matches. However, the tracking code seems different than what Google Analytics wanted me to copy:
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-XXXXXXXX-1]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Any ideas? Seems weird that the GA site says it Receiving Data but nothing is updating.
Appreciate the help!
Google is not a real time tracking system. They only update their end once or twice a day. So give it time to update and you should be fine.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
mike2001uk1
Hi I have recently uploaded the latest version of this module and would like to know how this module tracks the E commerce side of things through Google analytic's Not adwords.
Ecommerce tracking is only provided within Google Analytics (not Adwords). Adwords tracks Conversions (but so does Analytics).
My module lets you track both sides. By default it enables you to track Ecommerce Transactions through Analytics (providing you turn that on within your Google Analytics account) and if you want to turn on Adwords Conversion tracking you simply indicated that in the Google Analytics Configuration (in the zen cart admin) and by putting your Adwords tracking ID into the space provided.
Quote:
Originally Posted by
mike2001uk1
I did have a module in which allowed the tracking of the E commerce through Google analytics but some thing messed up the other week and tracking stopped.
Which module was it? There are only two for Zen Cart and this one (Simple Google Analytics) is the more reliable of them. (The other module had native problems with Ecommerce Tracking I hear.) The only way Ecommerce tracking would stop suddenly using my module is if the tracking number was removed / changed, or something changed on your Adwords end.
-
Re: Simple Google Analytics - Support
Thanks, I need to be more patient!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
econcepts
Let me know how this works for you.
Hi Eric,
I added the extra code you suggested a few days ago, however GA still doesn't appear to be tracking image search data. In my GA account the searches still show as "google.com (referral)" then "/imgres" then if I try and found out the keyword it says "(not set)" :dontgetit
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
mike2001uk1
Hi I have recently uploaded the latest version of this module and would like to know how this module tracks the E commerce side of things through Google analytic's Not adwords.
I did have a module in which allowed the tracking of the E commerce through Google analytics but some thing messed up the other week and tracking stopped.
the site i have installed the module on is below any info will help
http://www.vivanco-direct.com/
cheers
Mike B
Quote:
Originally Posted by
gaffettape
Hi Eric,
I added the extra code you suggested a few days ago, however GA still doesn't appear to be tracking image search data. In my GA account the searches still show as "google.com (referral)" then "/imgres" then if I try and found out the keyword it says "(not set)" :dontgetit
hmm ... let me take a look at it here and see what the issue might be.
-
Re: Simple Google Analytics - Support
YAAAAAAAHOOOOOOO!!! :clap:
ahem.
It seems I had long ago played around with JAM for an affiliate program we never pursued. I had completely forgotten about it. Once I removed the directory associated with JAM, Google Analytics started reporting sales.
I was about to lose it there for a bit.
Whew!
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
hermes369
YAAAAAAAHOOOOOOO!!! :clap:
ahem.
It seems I had long ago played around with JAM for an affiliate program we never pursued. I had completely forgotten about it. Once I removed the directory associated with JAM, Google Analytics started reporting sales.
I was about to lose it there for a bit.
Whew!
Glad to hear you got it working. Thanks for letting everyone know what the issue was.
-
Re: Simple Google Analytics - Support
Hello,
This is my first time installing a module by myself, so please understand that the question might be redundant/ ignorant:
How do I do step 1? I'm very confused.
I mean, do I upload the whole thing to the root directory? (Everything with the readme file etc?)
Do I upload each file separately to the respective directories?
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
milli
Hello,
This is my first time installing a module by myself, so please understand that the question might be redundant/ ignorant:
How do I do step 1? I'm very confused.
I mean, do I upload the whole thing to the root directory? (Everything with the readme file etc?)
Do I upload each file separately to the respective directories?
It doesn't matter if you upload the readme, sql patch etc... That will have no impact on how the mod works. Technically you should not upload those.
As long as you make sure you rename the directory "your_template" to the actual name of your template you are using then you should be able to upload with one move.
However, if you feel more comfortable doing each file one by one, you can do that as well. Just make sure you get them all in the proper locations and don't miss any.
-
Re: Simple Google Analytics - Support
Thanks for your help!
I have another question: for step 4, I am getting this error message
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_TRACKING_TYPE" because it already exists
Error ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_CUSTOM_AFTER" because it already exists
Error ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_CUSTOM_AFTER" because it already exists
Warning Note: 2 statements ignored. See "upgrade_exceptions" table for additional details.
I have used google analytics on my site before (which didnt' really work) but WITHOUT a module.
Nevertheless it shows that the tracking already exists.
I deleted the tracking code that I originally had and inserted the new code as indicated in part 3.
So I tried uploading the "uninstall" SQL patch, which worked, but still when I upload the "install" patch again, the same error occurs.
The same error message shows up even when I upload the "upgrade" patch.
What to do?
-
Re: Simple Google Analytics - Support
Hello,
I'm a first time user of Zen-cart and Google Analitics. I would like to know if somebody could coach me out threw some basic doubt that I have.
I want to be able to track all the interactions user have in my site which is built with Zen Cart, but I don't know were should I install Google Analytics snippet. And what options should I apply to the code to track all the E-commerce movement.
Ill give a brief description of the modules I'm using and number of php pages.
12 php
Payment modules:
- Check / Money Order
- PAyPal IPN - Website Payment Standard
Shipping Modules:
- Freeshiping! - freeshiper
- United states postal service - sups
- United PArcel Service
Order Total:
-Discount Coupon - ot_coupon
- Group Discount - ot_group_pricing
- Gift Certificates- ot_gv
- Low Order Fee - ot_loworderfee
- Newsletter Discount - ot_newsletter_discount
- Reward Points - ot_reward_points
- Reward Points earned - ot_reward_points_display
- Shipping - ot_shipping
- Sub-Total - ot_subtotal
- Tax - ot_tax
- Total - ot_total
Appreciate in advance for the help.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
milli
Thanks for your help!
I have another question: for step 4, I am getting this error message
ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_TRACKING_TYPE" because it already exists
Error ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_CUSTOM_AFTER" because it already exists
Error ERROR: Cannot insert configuration_key "GOOGLE_ANALYTICS_CUSTOM_AFTER" because it already exists
Warning Note: 2 statements ignored. See "upgrade_exceptions" table for additional details.
I have used google analytics on my site before (which didnt' really work) but WITHOUT a module.
Nevertheless it shows that the tracking already exists.
I deleted the tracking code that I originally had and inserted the new code as indicated in part 3.
So I tried uploading the "uninstall" SQL patch, which worked, but still when I upload the "install" patch again, the same error occurs.
The same error message shows up even when I upload the "upgrade" patch.
What to do?
You can disregard the error. It means the fields needed to run the mod are already in the db and therefore can't be added (duplicated). You should be fine.
-
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
Gabriel Mirón
Hello,
I'm a first time user of Zen-cart and Google Analitics. I would like to know if somebody could coach me out threw some basic doubt that I have.
I want to be able to track all the interactions user have in my site which is built with Zen Cart, but I don't know were should I install Google Analytics snippet. And what options should I apply to the code to track all the E-commerce movement.
Ill give a brief description of the modules I'm using and number of php pages.
12 php
Payment modules:
- Check / Money Order
- PAyPal IPN - Website Payment Standard
Shipping Modules:
- Freeshiping! - freeshiper
- United states postal service - sups
- United PArcel Service
Order Total:
-Discount Coupon - ot_coupon
- Group Discount - ot_group_pricing
- Gift Certificates- ot_gv
- Low Order Fee - ot_loworderfee
- Newsletter Discount - ot_newsletter_discount
- Reward Points - ot_reward_points
- Reward Points earned - ot_reward_points_display
- Shipping - ot_shipping
- Sub-Total - ot_subtotal
- Tax - ot_tax
- Total - ot_total
Appreciate in advance for the help.
Install the Simple Google Analytics mod. It does everything for you including place the code in the proper location on the site.