GA allows 5 custom variable slots. Here's how we want to set them up (all page-scope except #2)
"Tool" in Allura. Change to "Page Type". On Allura, add "-subpage" (see examples below) and start populating for Sfpy pages. Examples:
User id, already implemented
"Project": shortname. In the case of a non-p neighborhood, use "foobar.adobe" for example
"Topic": If a project page, a comma-separated list of the project's Topic-trove shortnames
Reserved for A/B test group
See http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.html and make sure we put the custom var in the right spot in the GA calls, for all codebases.
jwh/2533!allura> qa
Todays random choice is: Rick
sfx:jwh/2533
- visit /develop, verify the _gaq data
- visit /projects/project3/develop, verify the _gaq data
sfpy:jwh/2533
- rebuild using the jwh/2533 to get the new Jinja2==2.6 (or manually upgrade using pip)
- vi /var/local/config/sfpy.json, change the value for dist_google_analytics from null to 1 or true
- service httpd restart
- visit /projects/project3/, verify the _gaq data
- visit /projects/pip.python/, ^
allura:jwh/2533
sftheme:jwh/2533
- rebuild using the jwh/2533 to get the new Jinja2==2.6 (or manually upgrade using pip)
- visit any page and verify the _gaq data, i made a new project in the adobe nhbd and categorized it: