The code of the Tracker + Emitter is this:
private Emitter buildEmitter() { return new Emitter .EmitterBuilder(emitterUrl, getContext()) .method(HttpMethod.GET) .security(RequestSecurity.HTTP) .callback(callback) .build(); }
private Tracker buildTracker() { Tracker tracker = new Tracker .TrackerBuilder(buildEmitter(), "br.digitalpages.com.br/mobile", getAppId(), getContext()) .base64(false) .platform(DevicePlatforms.Mobile) .level(LogLevel.VERBOSE) .build(); return tracker; }
Follow the log:
V/SnowplowTracker->Util: pool-10-thread-4|Converting a map to a JSONObject: {uid=7077235, res=800x1280, co={“schema”:“iglu:com.snowplowanalytics.snowplow/contexts/jsonschema/1-0-1”,“data”:[{“schema”:“iglu:br.com.digitalpages/dp_client_context/jsonschema/1-0-0”,“data”:{“system_id”:“40”,“institution_id”:“1432”}},{“schema”:“iglu:com.snowplowanalytics.snowplow/mobile_context/jsonschema/1-0-0”,“data”:{“deviceModel”:“GT-N5110”,“androidIdfa”:“ce14a1b5-7c75-4871-a5e4-a929a6505f97”,“osType”:“android”,“osVersion”:“4.4.2”,“deviceManufacturer”:“samsung”}}]}, dtm=1463150304960, tz=America/Sao_Paulo, e=ue, tv=andr-0.5.4, p=mob, tna=br.digitalpages.com.br/mobile, aid=aridesa_mobile/0.0.1, lang=português, eid=ee0fa841-863f-41be-af8f-3b97685c954f, ue_pr={“schema”:“iglu:com.snowplowanalytics.snowplow/unstruct_event/jsonschema/1-0-0”,“data”:{“schema”:“iglu:br.com.digitalpages/dp_publication_event/jsonschema/1-0-1”,“data”:{“category”:“reading”,“publication_id”:“50850”,“elapsed_time”:1584,“page”:“4145062”,“name”:“download_page”}}}}
V/SnowplowTracker->Tracker: pool-10-thread-4|Tracking Unstructured Event: {“uid”:“7077235”,“res”:“800x1280”,“dtm”:“1463150304960”,“co”:"{“schema”:“iglu:com.snowplowanalytics.snowplow\/contexts\/jsonschema\/1-0-1”,“data”:[{“schema”:“iglu:br.com.digitalpages\/dp_client_context\/jsonschema\/1-0-0”,“data”:{“system_id”:“40”,“institution_id”:“1432”}},{“schema”:“iglu:com.snowplowanalytics.snowplow\/mobile_context\/jsonschema\/1-0-0”,“data”:{“deviceModel”:“GT-N5110”,“androidIdfa”:“ce14a1b5-7c75-4871-a5e4-a929a6505f97”,“osType”:“android”,“osVersion”:“4.4.2”,“deviceManufacturer”:“samsung”}}]}",“e”:“ue”,“tz”:“America/Sao_Paulo”,“p”:“mob”,“tv”:“andr-0.5.4”,“tna”:“br.digitalpages.com.br/mobile",“aid”:“aridesa_mobile/0.0.1”,“ue_pr”:"{“schema”:“iglu:com.snowplowanalytics.snowplow\/unstruct_event\/jsonschema\/1-0-0”,“data”:{“schema”:“iglu:br.com.digitalpages\/dp_publication_event\/jsonschema\/1-0-1”,“data”:{“category”:“reading”,“publication_id”:“50850”,“elapsed_time”:1584,“page”:“4145062”,“name”:“download_page”}}}”,“eid”:“ee0fa841-863f-41be-af8f-3b97685c954f”,“lang”:“português”}