Totally Zenned
- Join Date:
- Aug 2007
- Location:
- Amarillo, Tx
- Posts:
- 1,676
- Plugin Contributions:
- 0
Simple Google Analytics - Support
How do I uninstall the SQL from the Database?
Views: 451,154
Totally Zenned
How do I uninstall the SQL from the Database?
Totally Zenned
bkeaton:
How do I uninstall the SQL from the Database?
There is an uninstall SQL patch included with the package. Just run that from your admin.
Zen Follower
econcepts:
This should work for you (from my previous post you referenced. I've got it on a few sites and it works ok. Are you pasting the code as indicated into the correct location in your admin? What type of results are you getting?
Hi Eric,
I think I have added the code correctly - see my code below as it appears on my site (minus account number etc.)
<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-XXXXXXXX-X");
pageTracker._initData();
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]));
}
pageTracker._trackPageview();
</script>
As I mentioned in a previous post, I have added the code you suggested, 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)"
Totally Zenned
There seems to be bug, or incompatibility, between his mod and fec (Fast and Easy Checkout). Fec has been installed for months, when installed this the checkout stopped working. Disabling fec allowed the default checkout to work.
For now, I've disabled Simple Google Analytics and installed the analytics code directly. Anybody else see this or know what the conflict is?
Zen Follower
jeking:
There seems to be bug, or incompatibility, between his mod and fec (Fast and Easy Checkout). Fec has been installed for months, when installed this the checkout stopped working. Disabling fec allowed the default checkout to work.
For now, I've disabled Simple Google Analytics and installed the analytics code directly. Anybody else see this or know what the conflict is?
That's strange, I have FEC (1.9.4) and this mod working fine together...?
Just thought I'd let you know.
Totally Zenned
gaffettape:
That's strange, I have FEC (1.9.4) and this mod working fine together...?
Just thought I'd let you know.
In checking the version, it's actually the FEC AJAX version 2.13.2
Zen Follower
jeking:
In checking the version, it's actually the FEC AJAX version 2.13.2
Ah, you're using the AJAX version, I'm using the standard version.
In that case, disregard my previous post!
Totally Zenned
jeking:
In checking the version, it's actually the FEC AJAX version 2.13.2
I'll have to take a look at that Jim. What specifically happens when the two are installed?
I've seen a number of other things "stop working" (on other sites) when that AJAX version is installed. It seems as though it uses it's own framework and in pulling parts of that in causes incompatibilities with some other items.
One thing I will note is I have had no issues with it working when that version is in effect (error wise.) I've worked with a number of stores using that and had no issues.
Having said that, the only way I think it wouldn't work is if the AJAX version overrides the footer / checkout success portions of the site. The only thing the Simple GA mod does is install Google tracking on the bottom of the page (or top of using Asychronous code.)
Let me know what problems you see and we'll try to determine what is causing it.
Thanks!
Totally Zenned
Thanks Eric.
The problem is the shopping cart page will not load. It returns an empty page. Whether logged in or not. However, the item does get added to the cart. Meaning when I remove the module, the item I tried to add is in my cart.
I had the Asychronous code installed. When I switched and added the google code directly to the html_header.php file, it works fine.
Totally Zenned
jeking:
Thanks Eric.
The problem is the shopping cart page will not load. It returns an empty page. Whether logged in or not. However, the item does get added to the cart. Meaning when I remove the module, the item I tried to add is in my cart.
I had the Asychronous code installed. When I switched and added the google code directly to the html_header.php file, it works fine.
IF you get a blank white page, that usually means there is a PHP error somewhere. Make sure when you installed the mod (specifically the async portion) that you didn't include or remove any "extra" info that would cause the PHP to stop.
TO find out exactly where the error is, reload that page with Analytics installed (so it goes "white") then look in your "cache" directory for the Mydebug ... error log (with the same dat and time you accessed the file with.) This will tell you what the error is, and what line it can be found on so it can be corrected.
My guess is that during install, some code might have been added that threw the async portion off.
Let me know what you find out.
Thanks!
Totally Zenned
I looked at the log file and found this:
[07-May-2011 12:42:19] PHP Warning: require(includes/templates/defend/quick_checkout//google_analytics.php) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in /home/ready20/public_html/includes/templates/MY_TEMPLATE/common/html_header.php on line 80
In digging into the ajax version of FEC ( I didn't install it), I see it redirects to it's over version of the html_header.php file in /includes/templates/MY_TEMPLATE/quick_checkout
Code:
<?php if ((isset($_REQUEST['request']) && $_REQUEST['request'] == 'ajax') || (isset($_SESSION['request']) && $_SESSION['request'] == 'ajax')) { // do nothing //echo '<!-- request = ' . $_REQUEST['request'] . ' -->'; //echo '<!-- session = ' . $_SESSION['request'] . ' -->'; } else { // not ajax, so load regular file if (file_exists(DIR_WS_TEMPLATE . 'common/html_header.php')) { require(DIR_WS_TEMPLATE . 'common/html_header.php'); } else { require(DIR_WS_TEMPLATES . 'template_default/common/html_header.php'); } } ?>No sure I know why it doesn't work but adding the analytics code to the html_header.php file the old fashioned way works, so that's what I did.
Figured I post what I found here in case you can figure what the problem or for others in the same situation.
Totally Zenned
Ah I see what it is doing. When using that version it reworks the directory level to want to look for the google_analytics.php file outside of the directory it is now in and instead wants it to be in the "quick_checkout" directory (from this angle that is what it looks like.)
I would bet if you include the google_analytics.php file in there it should work. Just a thought.
Thanks for posting the find!
Zen Follower
Thanks for the mod. I successfully installed it and then noticed in FireFox 4.01 that the header of my site changed, specifically the top left logo shifted down a couple of spaces. It looks fine in IE9.
I checked the additions to the tpl_main_page and html_header files and am not sure what may be the issue...I don't see anything obvious like a <br /> or extra line. Any ideas?
Cheers,
R
1.39g
avenue-r.com
Totally Zenned
Unless you altered something accidentally on install (mainly of pasting items into the header sections you mentioned) then it shouldn't have any effect on your design layout.
I would go back and make sure you didn't make any unwanted changes to those files and then check your stylesheet etc... to see if you need any adjustments there.
Let me know if that helps.
Zen Follower
D'oh! I realized the issue was something else I changed last week and only noticed now. Thanks.
Totally Zenned
giftmeister:
D'oh! I realized the issue was something else I changed last week and only noticed now. Thanks.
No problem. It happens. :)
Zen Follower
I have the most recent version of this contribution however, running on 1.38a (heavily modded)
In Google Analytics it shows this:
Product Revenue $14.95 - Quantity - 1
When in fact it should be 23.
I do not allow the customers to just simply choose a quantity from the quantity box since each product has it's own customization.
So, this order was all for the same product but with different attribute/values selected. (from over 2,000 choices)
Is there something I need to do to my code to have Google correctly track this order? Right now it thinks I sold only "one" of that "one product". I'm sure this is messing with my counts for the year and other metrics / etc...
Thank you for any help in this matter.
Totally Zenned
I've got it running fine on a number of sites that use multiple attributes etc... and it all works fine.
Let's see if we can't narrow down the problem on your site here.
I'm not sure which portion you said was incorrect however in your description.
Is the "quantity" being calculated incorrectly (which causes the price to be incorrect)?
Is it the "total" that is being calculated incorrectly (and the quantity etc... is all correct?
I suspect that maybe somewhere in your programming (if any of the heavily modded sections deal with the attributes and pricing) that this might be the cause. My thinking is that if this has been modified then maybe the total is not being carried over correctly (to the proper value) and this is causing the analytics to only pick up the total (minus the attributes).
Let me know answers to the above and we'll see if we can't sort it out.
New Zenner
I posted a thread, but I now see this thread!
Simple problem, hopefully a simple fix.
My website is not passing the session information to Paypal, so when they return to the site to complete the sale google analytics shows every sale as [mysite].co.uk instead of the actual traffic source. The traffic source does show up correct in other areas of analytics, just not for purchases.
In Paypal I have added utm_nooverride=1 to the return page in Paypal's settings - That's suppose to pass the session back from Paypal to my site.
So my guess is that it's still not working as my site is not passing the info to Paypal.
I assume I have to add something in my google_analytics.co.uk to do that?
Totally Zenned
econcepts, how does setting Recreation Session in Admin - Session to True affect this mod? Obviously, when this is set to true, the session will change when the customer attempts to login or create account. How does this affect tracking?
Thanks!
Fields marked required must be completed.
Tell staff why this post should be reviewed.