Not sure if this bug has been reported, but the analytics code is displaying all the pages on google in the following method:
/Home
/The Shopping Cart
/Checkout
This is great for displaying the PHP URLs in a readable form, however, when you do SITE OVERLAY, non of the links work because it thinks the link is www.domain.com/Home which doesn't exist.
Also, anyone who is setting up Goals or Funnel Visualization, you can't use your PHP URLs because this mod is transferring data on URLs that do not exist. So, put /Home /The Shopping Cart /Checkout etc. for each level of your funnel.
In admin set "Use pagename" to false.
Quick bug fix.
jscript_googleanalytics_outgoing.php
find
replace byCode:document.write("<script id=__ie_onload defer><\/script>");
Code:document.write("<script id="__ie_onload" defer><\/script>");
The code is commented out?? Should I uncomment? Is it stable?
PHP Code:/* for Internet Explorer */
/*@cc_on @*/
/*@if (@_win32)
document.write("<script id="__ie_onload" defer><\/script>");
var script = document.getElementById("__ie_onload");
script.onreadystatechange = function() {
if (this.readyState == "complete") {
init(); // call the onload handler
}
};
return;
/*@end @*/
I added this, and now IE is giving me a page error saying that it is expecting a ')'
I replaced that line of code with (changed inside set of " to a set of ' ):
I have no idea if that line is correct or not, but it doesn't give me the error any more.PHP Code:document.write("<script id='__ie_onload' defer><\/script>");
I am getting the very same errors on page validation, and have added the single quote, but its made no difference. I get the following
Line 54, Column 50: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified.
document.write("<script id='__ie_onload' defer><\/script>");
In several places?
Has anyone actually got this working, if not then I think I should remove analytics until it is, as I would like the page 100% clear on validation.
My only addon is Gallery addon and can be seen here breezy
Need some help with google analytics... I have zen 1.3.8a. and I have magic seo url installed.
I have this code in my tpl_footer:
But I don't have any google analytics code in my tpl_main_page.... Is that OK???Code:<?php include($template->get_template_dir('tpl_footer_googleanalytics.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer_googleanalytics.php'); ?>
Also on my admin google analytics configuration I am missing the title on the 3rd and 4th lines. There is a value, but no title...
And my use page name is set to true... should that be set to false???
Thanks.