Spot analytics
Jump to navigation
Jump to search
- This page describes the analytics for http://spot.mpdl.mpg.de, done with Piwik
Direct Link[edit]
Configuration[edit]
- 1 Copy the following snippet:
<!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; _paq.push(["setCustomVariable", 1, "Institute (from IP)", document.getElementById("instituteNameForIP").value, "visit"]); _paq.push(["setCustomVariable", 2, "Institute ID (from IP)", document.getElementById("instituteIdForIP").value, "visit"]); _paq.push(["setCustomVariable", 3, "User organization (logged in)", document.getElementById("instituteNameForUser").value, "page"]); _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//analytics.mpdl.mpg.de/"; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', 34]); 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); })(); </script> <noscript><p><img src="//analytics.mpdl.mpg.de/piwik.php?idsite=34" style="border:0;" alt="" /></p></noscript> <!-- End Piwik Code -->
- 2 Go to http://spot.mpdl.mpg.de
- 3 Log in as Admin
- 4 Go to http://spot.mpdl.mpg.de/config
- 5 Paste Snippet into textarea "Snippet"
- 6 save