Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19179] Windows: Data section of analytics event is a string

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-07-10T21:15:26.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 5.0.0
ComponentsWindows
Labelsparity, qe-4.1.0
ReporterEwan Harris
AssigneeGary Mathews
Created2015-07-06T21:23:27.000+0000
Updated2017-03-16T21:55:37.000+0000

Description

Description

In analytics events the data section in the payload is a string rather than an object. Currently the analytics engine can handle this but in order to keep parity across platforms the data section should be an object.
{"city":"San Francisco","region_code":"CA","country_code":"US","country_name":"United States","postal_code":"","latitude":37.774898529053,"longitude":-122.41940307617,"area_code":415,"continent_code":"NA","ip_address":"38.110.144.252","region_name":"California","id":"9067e944-8d3f-43bb-a418-637a3e187700:c6ea39484a1632ff590c24a7d6b144f3","sid":"6ba4369d-1e79-4a1c-9c92-652ea9343919","ts":"2015-06-26T20:37:36.447Z","event":"ti.foreground","seq":0,"mid":"c6ea39484a1632ff590c24a7d6b144f3","ver":"3","aguid":"659f2417-717e-4cd2-9444-df5ac47cd37b","data":"{\"platform\":\"windows\",\"osarch\":\"arm\",\"model\":\"NOKIA RM-877_lta_lta_266\",\"oscpu\":2,\"ostype\":\"arm\",\"deploytype\":\"test\",\"app_id\":\"com.appc.analytics\",\"app_name\":\"testAnalytics\",\"os\":\"windowsphone\",\"tz\":420,\"nettype\":\"UNKNOWN\",\"app_version\":\"1.0\",\"osver\":\"0.0\",\"sdkver\":\"\"}","source":"mobile-track"

Steps to reproduce

1. Point at staging and capture the analytics payloads

Actual result

The data section in the payloads is a string rather than an object

Expected result

In order to keep parity with other platforms the section should be an object

Comments

  1. Gary Mathews 2015-07-07

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/360
  2. Lee Morris 2017-03-16

    Closing ticket as fixed.

JSON Source