Skip to content

Commit

Permalink
add Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Dec 9, 2010
1 parent 5d36796 commit 306fc03
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions views/layouts/main.tt
Expand Up @@ -50,5 +50,19 @@
<div id="footer">
Powered by <a href="http://perldancer.org/">Dancer</a>
</div>

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12199211-7']);
_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>
</body>
</html>

0 comments on commit 306fc03

Please sign in to comment.