Browse Source

add trackers

master
sipp11 10 years ago
parent
commit
5863ea6c40
  1. 8
      index.html
  2. 16
      js/trackers.js

8
index.html

@ -178,13 +178,7 @@
<script src="/bower_components/showdown/compressed/showdown.js"></script> <script src="/bower_components/showdown/compressed/showdown.js"></script>
<script src="/bower_components/moment/moment.js"></script> <script src="/bower_components/moment/moment.js"></script>
<script src="/js/app.js"></script> <script src="/js/app.js"></script>
<script src="/js/trackers.js"></script>
<div id="fb-root"></div> <div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=807502172597046&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
</body> </body>
</html> </html>

16
js/trackers.js

@ -0,0 +1,16 @@
(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','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-34877059-5', 'auto');
ga('send', 'pageview');
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=807502172597046&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
Loading…
Cancel
Save