px / cfapp-piwik-analytics

Miniature Hipster: A Piwik App for Cloudflare -- cfapp_piwik_analytics
Other
1 stars 2 forks source link

Conform to the Piwik trackingCodeGenerator page options #2

Closed px closed 11 years ago

px commented 11 years ago

piwik trackingCodeGenerator website options and advanced

The Piwik trackingCodeGenerator page got a makeover for the 1.11 release. It now has several options made available to users when generating tracking code. Use these as the bare option set for the CloudFlare app. Text from

setCookieDomain

  1. Track visitors across all subdomains of example.com
    • So if one visitor visits x.example.com and y.example.com, they will be counted as a unique visitor.

      _paq.push(["setDocumentTitle", document.domain + "/" + document.title]);

  2. Prepend the site domain to the page title when tracking
    • So if someone visits the 'About' page on blog.example.com it will be recorded as 'blog / About'. This is the easiest way to get an overview of your traffic by sub-domain.

      paq.push(["setDomains", [".piwik.example.com",".p-ssl.example.com",".p.example.com","_.piwik-ssl.example.com"]]);

  3. In the "Outlinks" report, hide clicks to known alias URLs of example.com - js
  4. Enable client side DoNotTrack detection
    • So tracking requests will not be sent if visitors do not wish to be tracked.
    • Note: Server side DoNotTrack support has been enabled, so this option will have no effect.
px commented 11 years ago

setCookieDomain *.example.com

id=tracking-all-subdomains

Just utilize a boolean for now to enable/disable this option.

setDocumentTitle

id=tracking-group-by-domain

Modifying the setDocumentTitle will also utilize an input field with a default field value set to:

setDomains

id=tracking-all-aliases

Providing the aliases from a piwik installation, as the generator page does for the "Outlinks" report, is not possible. It will have to be manually entered in a text field, or unfortunately a text input field due to CloudFlare app restrictions on configuration when implemented. It's default field value will be:

setDoNotTrack

id=tracking-do-not-track Easily fixed DoNotTrack strings, also changed to use roughly same name from generator page.

mattab commented 11 years ago

Maybe only the first two on the left column, are useful options for CF app... and reusing exact same labels is it possible?

px commented 11 years ago

Reusing the existing Piwik labels does work for most sentences.

px commented 11 years ago

I have hidden two of the fields; setDomains: tracking_all_aliases -- reasoning above. setDocumentTitle: tracking_group_by_domain -- will attempt to implement this feature or similar in the next iteration.

mattab commented 11 years ago

Nice progress! If you dont mind to email me a screenshot of the screens (when you are happy with it all), I would love to give feedback.

px commented 11 years ago

@mattab please see issue #4 for some current screen shots from version 0.0.28b