#2533 Several GA custom variables

v1.0.0
closed
sf-2 (994)
General
nobody
2015-08-20
2011-07-28
No

GA allows 5 custom variable slots. Here's how we want to set them up (all page-scope except #2)

1

"Tool" in Allura. Change to "Page Type". On Allura, add "-subpage" (see examples below) and start populating for Sfpy pages. Examples:

  • "tracker-search" -- Tracker page to display a list of tickets matching a specific search request
  • "download" - DLPV
  • "project_summary" -- Project Summary Page
  • "home_page" -- Index page of the site
  • "project_registration" -- Register a new project
  • "wiki-page" -- wiki tool the standard view a page view
  • "wiki-edit" -- wiki tool edit a wiki i page
  • "wiki-recent-changes" -- wiki tool view changes that have happened recently.

2

User id, already implemented

3

"Project": shortname. In the case of a non-p neighborhood, use "foobar.adobe" for example

4

"Topic": If a project page, a comma-separated list of the project's Topic-trove shortnames

5

Reserved for A/B test group

Consistency

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.

Related

Tickets: #2631

Discussion

  • Dave Brondsema

    Dave Brondsema - 2011-08-12
    • size: --> 2
     
  • John Hoffman - 2011-08-15
    • status: open --> in-progress
    • assigned_to: John Hoffmann ☠
     
  • John Hoffman - 2011-08-17
    • status: in-progress --> code-review
     
  • John Hoffman - 2011-08-17

    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:

    _gaq.push(['_setCustomVar', 1, 'Page Type', 'Wiki', 3])
    _gaq.push(['_trackPageview']);
    _gaq.push(['_trackPageLoadTime']);
    
    _gaq.push(['_setCustomVar', 2, 'userid', '1000', 1]);
    _gaq.push(['_setCustomVar', 3, 'Project', 'adobe-2.adobe', 3]);
    _gaq.push(['_setCustomVar', 4, 'Topic', 'SOAP, BBS, New Age', 3]);
    
     
  • John Hoffman - 2011-08-17
    • assigned_to: John Hoffmann ☠ --> Jenny Steele
     
  • Jenny Steele - 2011-08-23
    • status: code-review --> closed
     

Log in to post a comment.