From 5863ea6c40decfa55a3684d2a289e6c044312277 Mon Sep 17 00:00:00 2001 From: sipp11 Date: Fri, 24 Oct 2014 17:23:31 +0700 Subject: [PATCH] add trackers --- index.html | 8 +------- js/trackers.js | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 js/trackers.js diff --git a/index.html b/index.html index 258a03a..3a2bad5 100755 --- a/index.html +++ b/index.html @@ -178,13 +178,7 @@ +
- diff --git a/js/trackers.js b/js/trackers.js new file mode 100644 index 0000000..77ec5cd --- /dev/null +++ b/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'));