Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18851] TiAPI: Allow developers to opt-out of sending certain analytics events

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-06-20T00:22:05.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsTiAPI
Labelsanalytics
ReporterIngo Muschenetz
AssigneeHieu Pham
Created2015-04-24T17:55:47.000+0000
Updated2017-03-20T20:18:21.000+0000

Description

There are occasions where app developers may not want to send certain events to the analytics server. One example use case is that the app needs to enable location services, but not send geo events to PEM. Our proposal is that in tiapp.xml (and also at runtime), the developer is able to set a list of events to filter out: .filter("ti.geo", "app.nav") We may wish to _not_ allow them to filter some events like ti.enroll if that then breaks down the rest of the analytics system.

Comments

  1. Scott Davenport 2015-06-17

    [~mgadiya] This was a request from Swire Beverage during the pre-sales phase. They wanted to be able to collect Analtyics Events but disable any location tracking event types. This is primarily due to privacy concerns.
  2. Ingo Muschenetz 2015-06-18

    If we have begun work, we should mark this as in progress.
  3. Pedro Enrique 2015-06-18

    Android https://github.com/appcelerator/titanium_mobile/pull/6921 iOS https://github.com/appcelerator/titanium_mobile/pull/6923
  4. Scott Davenport 2015-06-18

    Swire may no longer be in the mix so unless we feel others need this I don't think we should consider it a priority now.
  5. Ingo Muschenetz 2015-06-18

    I think it's still worth doing to address the Gulfstream issue. Thanks!
  6. Chee Kiat Ng 2015-06-19

    Reviewed both PRs, and left some comments. Ti.Analytics.filterEvents(['eventName']) is tested to work on both platforms. *To note:* Currently on sdk, only *ti.geo* event is the only analytics event integrated in it. there is no nav events being sent to the server.
  7. Chee Kiat Ng 2015-06-20

    Both PRs merged.
  8. Lee Morris 2017-03-20

    Closing ticket as fixed.

JSON Source