explorer
explorer copied to clipboard
Feature Request: Google Analytics
It you be nice to see the traffic on Iquidus Explorer. Would this be something you could add or should I go and try it myself?
I agree this would be a nice feature to have.
If you haven't already, would you try adding it yourself and then creating a pull request? Let me know if you need some guidance or anything!
I added analytics my self by adding the line script(src='/javascripts/analytics.js') to layout.jade.
The analytics.js looks like this:
(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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-0000000000-1', 'auto'); ga('send', 'pageview');
I am not sure if this is a smart way to do it but it works. As i wasn't sure i didn't made a pull