fix use analytics varialbe in google tracking
This commit is contained in:
parent
b28ea24b1c
commit
ca20827bc5
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user