
Originally Posted by
greenhat
As of December Google has new tracking code for Analytics. After unsuccessfully trying to find the needed modification for this plugin, I figured out the change myself. It's really not that big of a change and not a big deal at all, but to save some time, here's are the code modifications:
includes\templates\your_template\google_analytics\google_analytics.php
at the very beginning of the code
------------------------------------------
if ($request_type == 'NONSSL') {
// $google_analytics_url = "http://www.google-analytics.com/urchin.js";
$google_analytics_url = "http://www.google-analytics.com/ga.js";
$google_conversion_url = "http://www.googleadservices.com/pagead/conversion.js";
$google_conversion_image_url = "http://www.googleadservices.com/pagead/conversion/";
} else {
// $google_analytics_url = "https://ssl.google-analytics.com/urchin.js";
$google_analytics_url = "https://ssl.google-analytics.com/urchin.js";
$google_conversion_url = "https://www.googleadservices.com/pagead/conversion.js";
$google_conversion_image_url = "https://www.googleadservices.com/pagead/conversion/";
}
echo '<script src="' . $google_analytics_url . '" type="text/javascript">
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("' . GOOGLE_ANALYTICS_UACCT . '");
pageTracker._initData();
pageTracker._trackPageview();
</script>';
// echo '<script src="' . $google_analytics_url . '" type="text/javascript">
// </script>
// <script type="text/javascript">
// _uacct = "' . GOOGLE_ANALYTICS_UACCT . '";
// urchinTracker();
// </script>';
----------------------------------------------
Bookmarks