Totally Zenned
- Join Date:
- Sep 2008
- Location:
- WA
- Posts:
- 559
- Plugin Contributions:
- 0
Simple Google Analytics - Support
I forgot to say I'm using version 1.3.9h..
Views: 451,066
Totally Zenned
I forgot to say I'm using version 1.3.9h..
New Zenner
It looks there a few people already asking questions related to this but does anyone have any information on getting Universal Analytics to work with this plugin?
I'm currently running Zen Cart version 1.3.9h but I'm planning on setting up a dev site to see if i can upgrade to 1.5.1 without breaking anything and to see if I can get this to work with Universal Analytics. Any help would be greatly appreciated.
New Zenner
Can someone point me in the right direction? This is showing up at the bottom of all pages, and it is installed somewhere on a page, due to my install. I know the snippet of code must mean i screwed up, but cannot find where to remove it. I think this was part of my GA installation, done improperly, but was definitely a tracking google thing. Help, where do I delete this code, as I cannot find it with developer tools anywhere. firebug shows it, but not to my knowledge clearly enough to know where to clear it.
Many thanks,
Marc
pageTracker._trackPageview(); pageTracker._trackPageLoadTime();
visible on http://reasonablerigging.com
New Zenner
Trademagic:
Can someone point me in the right direction? This is showing up at the bottom of all pages, and it is installed somewhere on a page, due to my install. I know the snippet of code must mean i screwed up, but cannot find where to remove it. I think this was part of my GA installation, done improperly, but was definitely a tracking google thing. Help, where do I delete this code, as I cannot find it with developer tools anywhere. firebug shows it, but not to my knowledge clearly enough to know where to clear it.
Many thanks,
Marc
pageTracker._trackPageview(); pageTracker._trackPageLoadTime();
visible on http://reasonablerigging.com
The code on your site looks like this:
<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-44438669-1"); pageTracker._initData(); <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-44438669-1', 'reasonablerigging.com'); ga('send', 'pageview'); </script>pageTracker._trackPageview();
pageTracker._trackPageLoadTime();
</script></body>
It looks like you put the universal analytics code inside the regular tracking code. And the closing </script> tag before
pageTracker._trackPageview();
pageTracker._trackPageLoadTime();
is causing that to show because it isn't within a script tag.
If you can tell me what it looks like at the end of /includes/templates/[your_template]/common/tpl_main_page.php right before the closing </body> tag I can probably help you fix it.
Totally Zenned
Trademagic:
Can someone point me in the right direction? This is showing up at the bottom of all pages, and it is installed somewhere on a page, due to my install. I know the snippet of code must mean i screwed up, but cannot find where to remove it. I think this was part of my GA installation, done improperly, but was definitely a tracking google thing. Help, where do I delete this code, as I cannot find it with developer tools anywhere. firebug shows it, but not to my knowledge clearly enough to know where to clear it.
Many thanks,
Marc
pageTracker._trackPageview(); pageTracker._trackPageLoadTime();
visible on http://reasonablerigging.com
Hi
I just did the same thing and solved it. In your store, where you enter the google analytics info on the configuration menu, did you enclose the tracking code with script, then end script? Remove them and it should work. What it did was put it in the middle of another script code, splitting the scripts and end scripts.
Linda
New Zenner
Thanks for your effort. No matter where I look, I can't find it, even with firebug.
Feel so lame. Here is the code you requested.
<!--eof- banner #6 display --> <?php if (GOOGLE_ANALYTICS_TRACKING_TYPE == "Asynchronous") { // Do nothing } else { require(DIR_WS_TEMPLATE . 'google_analytics/google_analytics.php'); } ?> </body>New Zenner
Linda,
Just saw your recommendation, and did it. And the code snippet disappeared. Very pleased. Now I can figure out what the information is telling me, and I don't have dirty laundry across my site.
Thanks again,
Marc
Totally Zenned
Just as an FYI for anyone using the plug-in currently: I'm building the Universal Analytics into this next release as well. But to get it working in the meantime, use the section of the current plugin (in the admin) that lets you add your own custom code snippet. I believe Linda mentioned this below as well.
The next release has a ton of new things in it so it should be a welcome site for many.
New Zenner
Trademagic:
Linda,
Just saw your recommendation, and did it. And the code snippet disappeared. Very pleased. Now I can figure out what the information is telling me, and I don't have dirty laundry across my site.
Thanks again,
Marc
Hi, can you please let me know where did you place the analitics code which google give you. Thank you
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
Totally Zenned
You shouldn't need to place that anywhere just use the UA-XXXXXX-X code in the admin configuration->Simple Google Analytics
New Zenner
I'm having some issues with this mod and a site. For some reason, whenever I do the sql update using this mod, I get a error screen that say's "WARNING: An Error occurred, please refresh the page and try again." and this page sqlpatch.php?action=execute at the end of my domain.com/admin Is there a way I can see exactly what error is happening, or any ideas? I have a few different sites, and this one mod is only giving me issues on one site. It's a dreamhost hosted site, and I'm on 1.5.1
Dan
Totally Zenned
What version of the Simple GA mod are you using? I've seen this happen when you try to install a module (any mod) and it 'fails' (usually the first time) then you try to reinstall but not all of the items from the prior install (database entries) are removed / or the configuration ids are mixed up from that install.
On this site in question, did you have another version of GA already installed when you tried to install this one?
Let me know on those and I'll see what I can do to help you work through it. In the worst case senerio you can go into phoMyAdmin and manually remove the entries for the mod then reinstall from the SQL patch in the zen admin to get that to work.
No need to remove files--just the db entries.
New Zenner
I'm using the newest version out, whatever's on the top of the download page. This was a "New" install of the 1.5.1, although I did have the older version working on my 1.3.9 site. When I upgraded to the 1.5.1, I did bring my database along, perhaps something in there is causing havoc. The only thing I don't understand is I run two sites, and I upgraded the two of them at the same time, and they are very similar. Only one of them is giving me the issues though. Is there something I should look for in my database? I ran the un-install script just to see if that would work, but I still get the error whenever I do the install SQL.
Totally Zenned
Yeah, even running the install script (depending on if there is something left over from the other install (usually relating to a different config group id from the rest of the entries)... which it sounds like to me there might be) would not prevent what you are seeing. I've got that on a few sites myself when installing for others and I solved the problem by going into phpMyAdmin and manually removing the entries related to Simple Google Analytics (make a note of anything like 'analytics numbers etc...' that you will need to plug back in on the install.) The two main tables that hold the information for that version are the configuration tables (groups and standard). If you search for the google analytics items then you should see the entries. Very that is all you are removing then checkmark all items and 'delete'. Yes to confirm.
Once this is done reinstall the new patch in the admin (copy and paste).
Let me know if that helps.
I've been working on this new version which does a lot of things including making install and debugging issues easier and that should be ready very soon here. It also adds a lot of new features into the mix that can be used within Google Anlaytics.
Eric
New Zenner
Hello,
I just installed your google analytics system on my site with zencart. I input the tracking code in the menu, however I'm not seeing any statistics from google after 3 days. When I view the page source info I don't see the analytics code, just a not saying <!--google analytics code--> at the end.
Can you help me figure out what happened?
The website: https://www.semiwiki.com/zencart
Thank you!
Totally Zenned
Sorry for your issue, but I would recommend with replacing with easy google analytics. It supports universal tracking as well. You may need to wait a day or two to finish it going through plugin moderation. But is much better I feel then simple google analytics.
Totally Zenned
rcnenni:
Hello,
I just installed your google analytics system on my site with zencart. I input the tracking code in the menu, however I'm not seeing any statistics from google after 3 days. When I view the page source info I don't see the analytics code, just a not saying <!--google analytics code--> at the end.
Can you help me figure out what happened?The website: https://www.semiwiki.com/zencart
Thank you!
Sounds like you missed step 3 and did not edit tpl_main_page.php
Totally Zenned
the module installed but no show me Ecommerce transactions, goals, funnels, and even pay-per-click conversion automatically, and all in one interface.
why ? who can configure this for me ? for payment ?
i have zen cart 1.3.9h
Totally Zenned
All of those are set and tracked in Google Analytics.
Pm sent.
Totally Zenned
jeking:
All of those are set and tracked in Google Analytics.
Pm sent.
where pm ?
Fields marked required must be completed.
Tell staff why this post should be reviewed.