Skip to content

Commit

Permalink
send analytics data to google analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitdatta committed May 12, 2016
1 parent ebefde1 commit 641b9f0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions formspree/templates/layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@
<link rel="icon" type="image/png" href="{{config.SERVICE_URL}}/static/img/favicon.ico">
<meta name="viewport" content="initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-74724777-1', 'auto');
ga('send', 'pageview');

</script>
</head>
<body class="{% block bodyclass %}{% endblock %}" id="{% block bodyid %}card{% endblock %}">

Expand Down

0 comments on commit 641b9f0

Please sign in to comment.