Zauberfisch / silverstripe-boilerplate

Boilerplate template to quickly kick off a new SilverStripe project
21 stars 3 forks source link

add Google Analytics #7

Closed Zauberfisch closed 10 years ago

Zauberfisch commented 12 years ago

We should add google analytics, but I was thinking maybe break that into a tiny module and add it as submodule? And do we need google analytics settings on every page, isn't it enough on the global settings? What are your thoughts on it @lx-berlin?

Code: https://github.com/lx-berlin/silverstripe-boilerplate/blob/978d937654ca3e2b7781d08ff53ce49be6935b8b/mysite/code/Extensions/mysiteSiteConfig.php https://github.com/lx-berlin/silverstripe-boilerplate/blob/978d937654ca3e2b7781d08ff53ce49be6935b8b/mysite/code/Extensions/mysiteSiteTree.php https://github.com/lx-berlin/silverstripe-boilerplate/blob/978d937654ca3e2b7781d08ff53ce49be6935b8b/themes/boilerplate/templates/Includes/GoogleAnalytics.ss

lx-berlin commented 12 years ago

hmm, i wanted google analytics in my boilerplate files, because its not much additional code and i dont wanted an extra step to add it to a project. The idea to be able to disable :) GA on every single page was because of restricted pages. On pages that require a user login, you maybe dont want google to make statistics or even let google know your content.