-
Notifications
You must be signed in to change notification settings - Fork 0
mateuszbrzezinski/analytics
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Grails plugin for Google Analytics integration Configuration Config.groovy: analytics.enabled = true //true/false, optional, default true analytics.account = 'XXXXXXXXX' //analytics page account Usage: def analyticsService // inject service in Controller/other Service [...] analyticsService.trackEvent('Category', 'Action', 'Label', 'Value') analyticsService.setCustomVar(index, 'Name', 'Value', scope) analyticsService.setTrackedPage('/some/page') // override default (empty) page for next page view Just before </head> add: <analytics:trackCode/> You can override tracked page(have to be before trackCode tag): <analytics:setTrackedPage page="/some/page" />
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published