Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anonymous Tracking in Piwik Mobile #2529

Closed
tsteur opened this issue Jun 29, 2011 · 28 comments
Closed

Anonymous Tracking in Piwik Mobile #2529

tsteur opened this issue Jun 29, 2011 · 28 comments
Assignees

Comments

@tsteur
Copy link
Member

tsteur commented Jun 29, 2011

  • User can enable/disable tracking in Settings
  • Create a new site on demo.piwik.org
  • We ask the user whether he wants to enable / disable tracking on first start (after update/install)
  • Create a tracker.js for Piwik Mobile
  • Use tracker.js in Piwik Mobile to track views, exceptions, etc.
@tsteur
Copy link
Member Author

tsteur commented Jun 29, 2011

(In [4957]) refs #2529 added option to enable/disable anonymous tracking in settings

@mattab
Copy link
Member

mattab commented Jun 29, 2011

Great idea.

I'm thinking it would be nice to put a tracking requests limit, for example 200 requests max per "session" sent to demo.piwik.org to not overload it.

What events will be tracked? Will you use "Custom page titles" to track clicks/etc. ?

@tsteur
Copy link
Member Author

tsteur commented Jul 1, 2011

  • I create an (anonymous) UUID for each user, similar to Tracker JS.
  • I increase the visitcount each time the user opens the app
  • I send the resolution via 'res' Url parameter

I track the following things:

  • A pageview starting with '/window/...' each time the user navigates to another window. For example '/window/statistics/live'
  • A pageview starting with '/event/settings/...' each time the user changes a specifc setting. For example '/event/settings/anonymous-tracking/disable'
  • A pageview starting with '/event' each time the user changes the date or site. For example '/event/change-date'
  • A pageview starting with '/event' each time the user presses the menu button on Android. For example '/event/build-option-menu'
  • A pageview starting with '/exception' each time an error occurs. For example '/exception/$type/$file/$line/$description'
  • A pageview starting with '/event/account' each time the user add/edit an account and all possible errors. For example '/event/account/create/successful' or '/event/account/edit/no-view-access'
  • A outlink whenever we open an outlink (for example link to source code and so on)

I currently use the following (scope visit) custom variables:

  • Exact OS + OS Version
  • Piwik Mobile Version
  • Default device locale + used locale in Piwik Mobile (if user has changed locale)
  • Number of accounts the user has setup
  • Number of sites the user has at least view access

Further possible "events":

  • The used Piwik Server Version
  • User opens the app (we also get the information via visit count)
  • Which report the user has selected (currently I see only for example /statsitics/show) -> I'll use custom variables in page scope for this.

I've already created 2 goals

I appreciate your objections or ideas.

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4975]) refs #2529 first implementation of the piwik tracker in piwik mobile

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4976]) refs #2529 ask for tracking permission on startup (only once)

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4977]) refs #2529 track each time a window gets the focus

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4978]) refs #2529 track outlinks

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4979]) refs #2529 track setting changes and if someone adds an account

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4980]) refs #2529 added new method getNumAccounts for usage in customVariable

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4981]) refs #2529 new config entries needed for tracking

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4982]) refs #2529 track opened reports as a customVariable in page scope

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4985]) refs #2529 do log uniqueId instead of dimension, better naming

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4986]) refs #2529 remove customData, we do not need it at the moment

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4988]) refs #2529 track the used piwik server version as an event

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4989]) refs #2529 track when ever user changes period, date, site or paginator. track used period

@tsteur
Copy link
Member Author

tsteur commented Jul 3, 2011

(In [4990]) refs #2529 do not delete url param when creating a window. we need the url for tracking

@mattab
Copy link
Member

mattab commented Jul 5, 2011

It all sounds really good :) I have no feedback at this stage, it will be easier to comment when seeing reports. Is there any "event/click" that is not tracked?

@tsteur
Copy link
Member Author

tsteur commented Jul 5, 2011

(In [4998]) refs #2529 track exceptions

@tsteur
Copy link
Member Author

tsteur commented Jul 5, 2011

(In [4999]) refs #2529 track exceptions

@tsteur
Copy link
Member Author

tsteur commented Jul 8, 2011

(In [5011]) refs #2529 track menu clicks and do no longer reset leftNavButton

@tsteur
Copy link
Member Author

tsteur commented Jul 8, 2011

I think all events are tracked now. If not, I'll add them in future versions.

I currently do not track the number of sites the user has access to. Can't track this cause I do not really want to download the list of all site Id's the user has access to. Mainly if the user has access to thousands of websites... I'm very interested in the number of sites the users has access. So I think I have to request the list of all site id's or we have to add a further method to the API? Any other possibilities?

@tsteur
Copy link
Member Author

tsteur commented Jul 10, 2011

(In [5017]) refs #2529 detect in bootstrap whether we have to ask for permission

@tsteur
Copy link
Member Author

tsteur commented Jul 17, 2011

The User Agent Detection seems not to detect the browser when sending requests from a Titanium Mobile App. See our Piwik Mobile project. Browser is often "unknown". I think it works for Android, but not for iOS. Can someone have a look at it?
These are the user-agents:

iPhone Simulator
Appcelerator Titanium/1.8.0 (iPhone Simulator/4.3; iPhone OS; en_US;)

iPod Touch
Appcelerator Titanium/1.8.0 (iPod touch/4.3.1; iPhone OS; de_DE;)

iPad
Appcelerator Titanium/1.8.0 (iPad/4.3.3; iPhone OS; de_DE;)

Android Simulator
Dalvik/1.1.0 (Linux; U; Android 2.1; google_sdk Build/ERD79) Titanium/1.8.0

Android Device (Samsung GT I9100 Galaxy SII)
Dalvik/1.4.0 (Linux; U; Android 2.3.3; GT-I9100 Build/GINGERBREAD) Titanium/1.8.0

@tsteur
Copy link
Member Author

tsteur commented Jul 17, 2011

(In [5028]) refs #2529 android user agent seems not to be set by default

@tsteur
Copy link
Member Author

tsteur commented Jul 17, 2011

(In [5029]) refs #2529 do max 200 tracks per session and day

@robocoder
Copy link

Thomas, I created #2572 for the user agent detection changes.

@tsteur
Copy link
Member Author

tsteur commented Jul 21, 2011

(In [5038]) refs #2529 jsdoc

@mattab
Copy link
Member

mattab commented Feb 22, 2014

See also: #4734

@tsteur tsteur added this to the Piwik Mobile Client milestone Jul 8, 2014
@tsteur tsteur self-assigned this Jul 8, 2014
@tsteur tsteur added this to the Piwik Mobile 1 milestone Jul 25, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants