Skip to content

Commit

Permalink
Use Google Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
borzunov committed Sep 2, 2015
1 parent b636fe8 commit 59411bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
3 changes: 1 addition & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ twitter_username: dvteam_org
github_username: DestructiveVoice
ctftime_team_id: 7527

# google analytics
# google_analytics_id : UA-53386152-2
google_analytics_id : UA-67116013-1

# disqus_short_name: maangalabscom
# disqus_show_comment_count: true
Expand Down
14 changes: 6 additions & 8 deletions _includes/include_js.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@
prettyPrint();
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', '{{site.google_analytics_id}}']);
_gaq.push(['_trackPageview']);
(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');

(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);
})();
ga('create', '{{ site.google_analytics_id }}', 'auto');
ga('send', 'pageview');
</script>

<style>
Expand Down

0 comments on commit 59411bb

Please sign in to comment.