fix use analytics varialbe in google tracking

This commit is contained in:
Greg Weber 2012-02-28 08:50:56 -08:00
parent b28ea24b1c
commit ca20827bc5

View File

@ -32,7 +32,7 @@
$maybe analytics <- extraAnalytics $ appExtra $ settings master
<script>
if(!window.location.href.match(/localhost/)){
window._gaq = [['_setAccount','UA-21628166-1'],['_trackPageview'],['_trackPageLoadTime']];
window._gaq = [['_setAccount','#{analytics}'],['_trackPageview'],['_trackPageLoadTime']];
(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';