explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Feature Request: Google Analytics

Open theflu opened this issue 7 years ago • 2 comments

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?

theflu avatar Jul 13 '17 19:07 theflu

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!

awochna avatar Aug 17 '17 22:08 awochna

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

danielwwf avatar Sep 04 '17 23:09 danielwwf