New Zenner
- Join Date:
- Apr 2007
- Location:
- Charlotte NC
- Posts:
- 28
- Plugin Contributions:
- 0
Simple Google Analytics - Support
Thanks for your help econcepts. I got the mod to work. Is is possible to add the code to the home page? It's flash
Views: 451,130
New Zenner
Thanks for your help econcepts. I got the mod to work. Is is possible to add the code to the home page? It's flash
Zen Follower
I would like to install this to track the ecommerce conversion rate from adwords.
However, I do not use the standard zen cart checkout method, I only use google checkout of which does not communicate with zen cart because I allow them to checkout without creating an account on my website.
Therefore my stock totals don't subtract, or orders go into the admin.
Is it still possible for me to track adwords conversion with this mod? What page would I use for checkout success, response handler?
I have google analytics installed right now, but it shows $0.00 for ecommerce, I have not set any goals or anything.
Totally Zenned
Buster:
Thanks for your help econcepts. I got the mod to work. Is is possible to add the code to the home page? It's flash
You could so this for the home page.
View one of your shop pages in a browser, then perform a "view source". Copy and paste the code from the bottom of the page.
Now, Manually paste that code into the "flash" home page.
Totally Zenned
CES:
Hi
Just to confirm I too am having discrepencies with the new analytics.
I am having 0.00 revenue figured for some transactions.
And the Adwords Campaign figures do not tally either. I think if the revenue from a transaction is 0.00 then in e-commerce tab of the ad-words section it shows as no transaction.
I think I made sense???
Craig
I'm seeing this too on a number of sites now. I am researching it on the Internet and with Google. The tracking code is up to spec according to them, so there may be something else causing it.
Totally Zenned
teebo:
I would like to install this to track the ecommerce conversion rate from adwords.
However, I do not use the standard zen cart checkout method, I only use google checkout of which does not communicate with zen cart because I allow them to checkout without creating an account on my website.
Therefore my stock totals don't subtract, or orders go into the admin.
Is it still possible for me to track adwords conversion with this mod? What page would I use for checkout success, response handler?
I have google analytics installed right now, but it shows $0.00 for ecommerce, I have not set any goals or anything.
You can still track AdWords conversion IF (and only IF) you have access to (as in able to modify it) the "thank you page" the user is taken to after a sale.
If you have the ability to do that, then all you have to do is insert the Tracking code that you'll find under your Adwords account (not in Zen) onto that "thank you page" and you should be good to go.
If your thank you page is the Zen Cart "checkout success" then all you have to do is turn on Conversion Tracking from within the Zen Admin and enter your conversion tracking ID in the space provided (again, in the Zen admin).
Zen Follower
econcepts:
You can still track AdWords conversion IF (and only IF) you have access to (as in able to modify it) the "thank you page" the user is taken to after a sale.
If you have the ability to do that, then all you have to do is insert the Tracking code that you'll find under your Adwords account (not in Zen) onto that "thank you page" and you should be good to go.
If your thank you page is the Zen Cart "checkout success" then all you have to do is turn on Conversion Tracking from within the Zen Admin and enter your conversion tracking ID in the space provided (again, in the Zen admin).
Yeah I figured that, and unfourtnely I don't have access to the thank you page that is on the googles end. You can control where it goes once they hit keep shopping, but obviously most people will not click that.
I am going to find some way, there must be.
Zen Follower
econcepts:
I'm seeing this too on a number of sites now. I am researching it on the Internet and with Google. The tracking code is up to spec according to them, so there may be something else causing it.
I'm seeing this - as well as orders with missing items (both in the 0 total orders and the non 0 totals)
can't find any rhyme or reason for it
one thought - if the user clicks away from the checkout success page before the javascript has had chance to comlete (slow connection??) would that cause the problem??
Regards
David
Totally Zenned
David Allen:
I'm seeing this - as well as orders with missing items (both in the 0 total orders and the non 0 totals)
can't find any rhyme or reason for it
one thought - if the user clicks away from the checkout success page before the javascript has had chance to comlete (slow connection??) would that cause the problem??
Regards
David
I don't think that is the case at all. Once that page loads, it records. Until Google released the new "ga.js" version of code, everything seemed to work fine with many clients I use it on.
Once that code was released I began to see a number of users across the Internet reporting this issue as well. I can't be sure, but am feeling it may be a Google issue. Recently, one of the client sites that was incorrectly recording data began to properly record it again without me making any changes.
Zen Follower
I am running zc 1.3.8a and MySQL 5.x
I read the installation instructions for a new install and followed them - I thought.
I installed this S-G-A mod, using the Tools > Install SQL Patch to install the mysql file, browsed to your .sql file on my HD and clicked Upload.
I then went to Admin > Configuration > Google Analytics and set things up, putting in my GA code, etc.
I see Adwords clicks, but I get no records in my Google Analytics reports. Is there something more I need to do with the mysql patch? When I "uploaded" it nothing appeared in the ZC text area that is labeled "Enter query". Was I supposed to do a copy/paste here? I know nothing about mysql queries.
Jack
Ref: http://artbeautiful.com
Zen Follower
Correction:
I used the term "GA code". I should have said GA account ID, which I pasted into the Config > Google Anaylitics setup. I have no idea which version of the code your mod grabs for my pages.
Totally Zenned
JackA:
I am running zc 1.3.8a and MySQL 5.x
I read the installation instructions for a new install and followed them - I thought.
I installed this S-G-A mod, using the Tools > Install SQL Patch to install the mysql file, browsed to your .sql file on my HD and clicked Upload.
I then went to Admin > Configuration > Google Analytics and set things up, putting in my GA code, etc.
I see Adwords clicks, but I get no records in my Google Analytics reports. Is there something more I need to do with the mysql patch? When I "uploaded" it nothing appeared in the ZC text area that is labeled "Enter query". Was I supposed to do a copy/paste here? I know nothing about mysql queries.
Jack
Ref: http://artbeautiful.com
Jack,
A few things to note.
It is sometimes best to "copy and paste" the SQL patches into the Admin interface rather than upload files (which in the past have been shown to be rather shaky at times).
Seeing Adwords clicks does not mean you have the module installed. Adwords clicks are tracked from the GOOGLE side and triggered when a user clicks on your ad). Integration between Google AdWords and Google Analytics is what can happen with my mod (so that the Adword data shows in your Google Analytics reports).
Did you add the line of code to your "tpl_main_page.php" file as listed in the installation? I looked at your site, and the tracking code is not showing at the bottom of your pages. This means that you skipped Step 3 of the installation instructions which mentions that you need to add the following lines of code to the "tpl_main"page.php" file:
<?php require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'google_analytics') . '/google_analytics.php'); ?>
If you perform #3 above, I think you'll get it all working. :)
Zen Follower
Thanks.
I'm asking the following for the benefit of others and because the reports are only generated once a day. I pasted it in the tpl_main_page.php just before the </body> tag, correct? So, a live page now shows this at the bottom (my UA id hidden here):
<!--eof- site copyright display -->
</div>
<!--bof- parse time display -->
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<!--eof- banner #6 display -->
<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");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>
Zen Follower
Sorry, tried to add this to the previous, but the editor froze.
How would I check to see if the mysql patch uploaded correctly?
New Zenner
I'm feeling especially dim right now.
Been working with this for hours now but google still says tracking not installed.
But i can see it in the page source! What is it that either google or i are missing?
The page is at www.napavi.no/shop
Anyone feeling bright?
Zen Follower
elhauk
I'm having my own troubles, but I do know Google update the results only daily. I frankly don't remember if the "√Receiving data" shows immediately or not. Someone else will have to answer that. I also see you have not placed the php code (reply #613 ) at the bottom of the tpl_main_page.php file.
I like your design.
econcepts:
My problem is that I have added the code as you recommended in post #613, I see the Google Analytics code in my page, and I see √Receiving data in my GA dashboard, but no visitors are registering in the reports.
In phpmyadmin, I see the table, google_analytics_languages, in my database, but that's all. Is there more I should see to confirm that the Simple-Google-Analytics patch is in place?
Zen Follower
elhauk:
I'm having my own troubles, but I do know Google update the results only daily. I frankly don't remember if the "√Receiving data" shows immediately or not. Someone else will have to answer that. I also see you have not placed the php code (reply #613 ) at the bottom of the tpl_main_page.php file.
I like your design.
econcepts:
My problem is that I have added the code as you recommended in post #613, I see the Google Analytics code in my page, and I see √Receiving data in my GA dashboard, but no visitors are registering in the reports.
In phpmyadmin, I see the table, google_analytics_languages, in my database, but that's all. Is there more I should see to confirm that the Simple-Google-Analytics patch is in place?
If I copy/past the patch into the /admin area under Tools > Install mySQL patches, will it overwrite what is there, and how should I open the data to copy it without losing any important formatting?
New Zenner
Thanx for compliment and advice JackA
Obviously the Recieving data takes som time to update. Should maybe be some kind of warning in the installation file saying; "patience young padawan, if google doesnt register your site, leave it till the next morning before you post a hysteric complaint..."
New Zenner
I am upgrading to the new 1.2.1 on ZenCart 1.3.7. Simple Google Analytics has been installed and working since December, but I am getting an error when I run the upgrade sql patch for the new one. These are the steps I did:
1062 Duplicate entry 'GOOGLE_CONVERSION_ACTIVE' for key 2
in:
[INSERT INTO zen_configuration (configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('', 'Activate Conversion Tracking', 'GOOGLE_CONVERSION_ACTIVE', 'No', 'This element enables you turn on or off Google Conversion Tracking.Please Note: Conversion tracking is used to track the effectiveness of Google AdWords paid search campaigns. If you are not running any paid search campaigns, then you should leave this set to "No".
If you are running Google AdWords (paid search) campaigns, then turning this on will place the proper conversion tracking code on your checkout success page and enable you to start tracking conversions.
Turning this on requires you to enter your unique Google Conversion Tracking ID in place of the "XXXXXXXXXXX" number shown in the next section.
For more hints and tips on how to use Google Analytics to increase sales from your store, visit ZenCartOptimization.com
Do you want to turn on Google AdWords Conversion Tracking?
', @t4, 5, NOW(), NOW(), NULL, 'zen_cfg_select_option(array(''Yes'', ''No''), ');]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.
I've double-checked the location of the files and tried running the query again with the same results. The only way to exit this page is the "back" button or close the page.
website: flagstore.flagsbay.com
Zen Follower
OK, I notice that the Google account ID and the Google account number are slightly different. The ID is UA-xxxxxxx but the account number for a specific url is UA-xxxxxxx-x, I suppose because I am tracking several sites.
So, I went back to Configuration > Google Analytics Configuration and added the -x at the end of the account number, which was not there before. Was this the problem? It appears I can't find out till tomorrow.
New Zenner
I am trying to install this Google analytics as new, but i am confused...
"1. After you have identified the directory that your template is running from and determined where you will be uploading the files to,
upload the included install files and directories to your zen cart site."
Upload which of the many files and directories? To which one of my custom templates.....? I have a few custom templates, or is that wrong?
Fields marked required must be completed.
Tell staff why this post should be reviewed.