the mySLQ patch? Yikes, I don't even know what that is. Someone else set up my site for me....
the mySLQ patch? Yikes, I don't even know what that is. Someone else set up my site for me....
Let me ask...
Are you using the Google Analytics module from the downloads section?
Or are you just trying to install the script snippet you get from the Google Analytics page?
I'm installing the script snippet from the google site.
In that case edit includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php (you might have to copy it there first from template_default) and right before the </body> tag add the following...
...replace the UA-XXXXXXX-X bit with your own number that is given to you in the code snippet on the Google Analytics site.PHP Code:<?php
if ($request_type == 'NONSSL') {
$google_analytics_url = "http://www.google-analytics.com/urchin.js";
} else {
$google_analytics_url = "https://ssl.google-analytics.com/urchin.js";
}
echo '<script src="' . $google_analytics_url . '" type="text/javascript">'."\n";
?>
</script>
<script type="text/javascript">
_uacct = "UA-XXXXXXX-X";
urchinTracker();
</script>
Regards,
Christian.
After copying that above code into the file specified, and using my google analytics account number (which is a valid google analytics account, ....I get the following parse error code. Am I doing something wrong?
Parse error: syntax error, unexpected '{' in /home/mysitename/public_html/includes/templates/template_default/common/tpl_main_page.php on line 1
I'm trying to do the same thing, and I got the same error message...!!!
GRRRrr![]()
I got it I moved the code down to line 357 right before the </body? statement line.
It works for me and google picked it up...
Lots of joy here!
![]()
This also what I am looking for.
thanks![]()
Thank you, thank you.....I needed that help too.
Golf Equipment