Track visits to docs with GA.
This commit is contained in:
parent
72dfe20ca7
commit
03568253bd
@ -24,3 +24,4 @@
|
|||||||
e.after('<span class="swatch" style="background-color:'+e.text()+';"></span>');
|
e.after('<span class="swatch" style="background-color:'+e.text()+';"></span>');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
= render "partials/analytics"
|
||||||
|
@ -11,3 +11,5 @@
|
|||||||
#container
|
#container
|
||||||
#main
|
#main
|
||||||
= yield
|
= yield
|
||||||
|
|
||||||
|
= render "partials/analytics"
|
9
doc-src/layouts/partials/analytics.html
Normal file
9
doc-src/layouts/partials/analytics.html
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<script type="text/javascript">
|
||||||
|
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
|
||||||
|
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
try {
|
||||||
|
var pageTracker = _gat._getTracker("UA-6779438-1");
|
||||||
|
pageTracker._trackPageview();
|
||||||
|
} catch(err) {}</script>
|
Loading…
Reference in New Issue
Block a user