AtlasOfLivingAustralia / ala-bootstrap3

ALA styles with bootstrap 3
2 stars 8 forks source link

Add ::gaTrackingId:: footer token #18

Open nickdos opened 4 years ago

nickdos commented 4 years ago

Similar to #16, it would be good to be able specify a testing GA tracking ID so our GA stats are not polluted by hits from our test servers (particularly automated tests).

Requires the ::gaTrackingId:: var to be added to https://github.com/AtlasOfLivingAustralia/commonui-bs3/blob/master/footer.html#L154 and then the var to be substituted via a grailsApplication.config variable.

Ansible templates and inventories will need to be updated for all front-end apps (needs child issue).

matthewandrews commented 4 years ago

Worth considering Google Tag Manager instead - a single code snippet in all sites, then we manage centrally which sites are test and which are prod: https://developers.google.com/tag-manager