Commit e55a1525fe7bf59564361af676ae8fd464b57987
Add Google Analytics
Ikhwan Hayat committed on 1/19/2015, 8:07:35 AMParent: b6f82f75ebc0788c78b9bd55c5b1df9280c49c5d
Files changed
_config.yml | changed |
_layouts/default.html | changed |
_config.yml | ||
---|---|---|
@@ -17,8 +17,11 @@ | ||
17 | 17 | baseurl: '' |
18 | 18 | paginate: 5 |
19 | 19 | excerpt_separator: '<!--more-->' |
20 | 20 | |
21 | +analytics: | |
22 | + ga: 'UA-41580964-1' | |
23 | + | |
21 | 24 | authors: |
22 | 25 | kamalmustafa: |
23 | 26 | name: Kamal Mustafa |
24 | 27 | short_bio: Seorang web developer dengan lebih 10 tahun pengalaman dalam bidang pembangunan aplikasi web (PHP/Python) dan IT secara umum. |
_layouts/default.html | ||
---|---|---|
@@ -23,6 +23,16 @@ | ||
23 | 23 | $('#toc').toggle(); |
24 | 24 | }) |
25 | 25 | }); |
26 | 26 | </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> | |
27 | 37 | </body> |
28 | 38 | </html> |
Built with git-ssb-web