nipy / nipy.github.io

Main website for the Neuroimaging in Python community
http://nipy.org
8 stars 10 forks source link

Add google analytics code #21

Closed arokem closed 8 years ago

arokem commented 8 years ago

This seems like the right place to put this (because the footer gets injected into all the page layouts)

vsoch commented 8 years ago

Agreed. What are your thoughts about having the "UA-####" identifier as a variable in the config? Something like:

  # Custom variables
  version: "1.1.0"
  googleanalytics: "UA-69411900-1"

Then in the footer:

  ga('create', '{{ site.googleanalytics }}', 'auto');

It's unlikely to change, but it might be a good idea to not hard code things. To test this out, I can add the Google Analytics code to our current tumblr page, I'll do that and let you know when it's up!

For Google Analytics, is there an ability to associate with multiple gmail accounts? If others wanted to peek at the traffic and such?

GaelVaroquaux commented 8 years ago

For Google Analytics, is there an ability to associate with multiple gmail accounts? If others wanted to peek at the traffic and such?

There is, and I'd love to be added on it :). It can give very useful info.

vsoch commented 8 years ago

ok, I just added to neuroimaging.tumblr.com, also in the footer, if you want to test if it seems to be in working shape.

arokem commented 8 years ago

Yeah - hits to the blog seem to be registering. I get two orange points along the West Coast of the US :-)

On Wed, Oct 28, 2015 at 10:35 AM, Assenav Sochat notifications@github.com wrote:

ok, I just added to neuroimaging.tumblr.com, also in the footer, if you want to test if it seems to be in working shape.

— Reply to this email directly or view it on GitHub https://github.com/nipy/nipy.github.com/pull/21#issuecomment-151921452.

vsoch commented 8 years ago

One of those is me! I've always wanted to be an orange point :) :small_orange_diamond:

arokem commented 8 years ago

Making it a config seems like a fine idea. Will implement.

I just added @GaelVaroquaux and @vsoch to the people able to view this. Anyone else want access? You need to be registered with the big G.

vsoch commented 8 years ago

ok, just tested and working as expected! Eggcellent work!

vsoch commented 8 years ago

And once I fix up circle the preview / testing will be very easy to do.