Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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
Re: Simple Google Analytics - Support
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>
Re: Simple Google Analytics - Support
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
Re: Simple Google Analytics - Support
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.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
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');
Re: Simple Google Analytics - Support
You shouldn't need to place that anywhere just use the UA-XXXXXX-X code in the admin configuration->Simple Google Analytics
Re: Simple Google Analytics - Support
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
Re: Simple Google Analytics - Support
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.
Re: Simple Google Analytics - Support
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.
Re: Simple Google Analytics - Support
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