diff options
author | Yuchen Pei <me@ypei.me> | 2018-04-29 19:30:22 +0200 |
---|---|---|
committer | Yuchen Pei <me@ypei.me> | 2018-04-29 19:30:22 +0200 |
commit | c61f65701b6304ae82b41bb59acc39ef7d3d2502 (patch) | |
tree | 8931677f0583e3c231e2a484cb19936e81b78ae7 /assets | |
parent | 2822a3c7dd36d52e550f501602b135b330f6ab48 (diff) | |
parent | 4fa8a77b088a9028f4838cfca4d3a0ccc88eb390 (diff) |
Merge branch 'master' into dev
Diffstat (limited to 'assets')
-rw-r--r-- | assets/js/analytics.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/assets/js/analytics.js b/assets/js/analytics.js new file mode 100644 index 0000000..58f1074 --- /dev/null +++ b/assets/js/analytics.js @@ -0,0 +1,13 @@ +<!-- Matomo --> + var _paq = _paq || []; + /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ + _paq.push(['trackPageView']); + _paq.push(['enableLinkTracking']); + (function() { + var u="//analytics.ypei.me/"; + _paq.push(['setTrackerUrl', u+'piwik.php']); + _paq.push(['setSiteId', '1']); + var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; + g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); + })(); +<!-- End Matomo Code --> |