Re: Simple Google Analytics - Support
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.
Re: Simple Google Analytics - Support
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!
Re: Simple Google Analytics - Header layout affected in FF
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
Re: Simple Google Analytics - Support
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.
Re: Simple Google Analytics - Support
D'oh! I realized the issue was something else I changed last week and only noticed now. Thanks.
Re: Simple Google Analytics - Support
Quote:
Originally Posted by
giftmeister
D'oh! I realized the issue was something else I changed last week and only noticed now. Thanks.
No problem. It happens. :)
Re: Simple Google Analytics - Support
I have the most recent version of this contribution however, running on 1.38a (heavily modded)
In Google Analytics it shows this:
Code:
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.
Re: Simple Google Analytics - Support
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.
Re: Simple Google Analytics - Support
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?
Re: Simple Google Analytics - Support
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!