Using Macros in Postbacks

Last Updated: Feb 01, 2016 04:31PM PST
Apsalar's postback platform enables sending of a variety of data-points described in our glossary here.  This document details advanced use cases of using some of our more powerful macros.

Event Attribute Macro - {EVTATTR}

The Apsalar {EVTATTR} allows you to send a attribute value implemented in your iOS or Android app, through a postback to your desired endpoint.

For example, if you are passing a "level complete" event for your gaming app like:
[Apsalar eventWithArgs:@"LevelUp",
     @"Level", [NSNumber numberWithInt:10], nil];

You can send the value for "Level" to a postback destination using the {EVTATTR} macro.  

For example, the following postback template, when triggered by the above "LevelUp" event:{EVTNAME}&param={EVTATTR|Level}

Would evaluate to the following:
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found