Modify 'personalise' tracking event to only send through 'guuid'
Currently, when a user performs a personalise
call, upon returning the library automatically sends an event to the collector containing the full received JSON payload. This is difficult to handle for a variety of reasons and probably expensive too.
Instead, we should only send through the resulting guuid
(part of the result JSON)
So this:
if (primedTrackerAvailable == true) {
PrimedTracker.PersonaliseEvent event = PrimedTracker.getInstance().new PersonaliseEvent();
event.response = response;
PrimedTracker.getInstance().trackEvent(event);
}
Should probably become:
if (primedTrackerAvailable == true) {
PrimedTracker.PersonaliseEvent event = PrimedTracker.getInstance().new PersonaliseEvent();
event.response = response.get("guuid");
PrimedTracker.getInstance().trackEvent(event);
}
Event object should look as follows:
{"guuid": "…"}
Edited by Matthijs van der Kroon