Google analytics Need SSL support: Please fix on next update
-
As title stated, here is a quick fix for anyone who encounters a SSL issue with Google Analytics, goto plugin file, open cookiecontrol.php, make the following edit to ccAddAnalytics():
function ccAddAnalytics() { /* * Note: Commented out for no SSL support */ //jQuery.getScript("https://www.google-analytics.com/ga.js", function() { /* * Note: Rewrite for non-SSL and SSL support */ jQuery.getScript(('https:' == document.location.protocol ? 'https://ssl' : 'https://www') + '.google-analytics.com/ga.js', function() { var GATracker = _gat._createTracker('<?php echo $cookiecontrol_settings['gakey']; ?>'); GATracker._trackPageview(); }); }
- The topic ‘Google analytics Need SSL support: Please fix on next update’ is closed to new replies.