mirror of
https://github.com/kennethreitz/12factor.git
synced 2026-06-05 15:00:18 +00:00
google analytics
This commit is contained in:
@@ -15,6 +15,20 @@
|
||||
|
||||
<script type="text/javascript" src="http://use.typekit.com/rsq7tro.js"></script>
|
||||
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
||||
|
||||
<% if ENV['GOOGLE_ANALYTICS_KEY'] %>
|
||||
<script type="text/javascript">
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', '<%= ENV['GOOGLE_ANALYTICS_KEY'] %>']);
|
||||
_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>
|
||||
<% end %>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
|
||||
Reference in New Issue
Block a user