git ssb

0+

k4ml / belajar-js



Commit e55a1525fe7bf59564361af676ae8fd464b57987

Add Google Analytics

Ikhwan Hayat committed on 1/19/2015, 8:07:35 AM
Parent: b6f82f75ebc0788c78b9bd55c5b1df9280c49c5d

Files changed

_config.ymlchanged
_layouts/default.htmlchanged
_config.ymlView
@@ -17,8 +17,11 @@
1717 baseurl: ''
1818 paginate: 5
1919 excerpt_separator: '<!--more-->'
2020
21+analytics:
22+ ga: 'UA-41580964-1'
23+
2124 authors:
2225 kamalmustafa:
2326 name: Kamal Mustafa
2427 short_bio: Seorang web developer dengan lebih 10 tahun pengalaman dalam bidang pembangunan aplikasi web (PHP/Python) dan IT secara umum.
_layouts/default.htmlView
@@ -23,6 +23,16 @@
2323 $('#toc').toggle();
2424 })
2525 });
2626 </script>
27+ <script>
28+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
29+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
30+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
31+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
32+
33+ ga('create', '{{ site.analytics.ga }}', 'auto');
34+ ga('send', 'pageview');
35+
36+ </script>
2737 </body>
2838 </html>

Built with git-ssb-web