Skip to content

Commit

Permalink
fix GoogleAnalytics
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoo committed Feb 7, 2014
1 parent b4d30ce commit 6f8f30e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GoogleAnalytics/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ public static function personalConfig(Typecho_Widget_Helper_Form $form){}
public static function render()
{
$account = Typecho_Widget::widget('Widget_Options')->plugin('GoogleAnalytics')->account;
echo "<script type=\"text/javascript\">var _gaq = _gaq || [];_gaq.push(['_setAccount', '{$account}}']);_gaq.push(['_trackPageview']);(function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);})();</script>";
echo "<script type=\"text/javascript\">var _gaq = _gaq || [];_gaq.push(['_setAccount', '{$account}']);_gaq.push(['_trackPageview']);(function() {var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);})();</script>";
}
}

0 comments on commit 6f8f30e

Please sign in to comment.