KeplerGO / KeplerScienceWebsite

Website for the Kepler/K2 Science Center.
http://keplerscience.arc.nasa.gov
11 stars 19 forks source link

Add in the google analytics script when we go live #6

Closed mrtommyb closed 8 years ago

mrtommyb commented 9 years ago

When the site goes live at keplerscience.arc.nasa.gov we should include the following script for tracking purposes. I don't think we should put it into the dev site though

<script language="javascript" id="_fed_an_ua_tag" src="//dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=NASA"></script>
mrtommyb commented 9 years ago

We should probably include the subagency too and also demographics tracking

<script language="javascript" id="_fed_an_ua_tag" src="//dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=NASA&subagency=ARC&dclink=true"></script>
barentsen commented 8 years ago

The variable ANALYTICS in pelicanconf.py is now used to specify these scripts.

The scripts are included in the output of every page once the variable DEVMODE is set to False. (This variable also controls whether or not the red warning banner at the top is shown.)