For Developers / Instrument your app |
Localytics provides support for recording customer lifetime value (CLV). You can pass the CLV value you choose when you tag an event.
This value doesn't have to be dollar-oriented. For example, in a magazine app, lifetime Articles Read might be a more appropriate metric. In a gaming app, Total Games Played might be the most valuable metric.
As this is strictly an integer value, it's important to keep the integer value you are incrementing in the lowest possible unit. If you are interested in exact dollars, you might include the decimal place value, such as 2.99, but the integer value that is passed to Localytics is 299, not 2.99. If the cents don't matter, feel free to use actual or rounded whole dollar values.
You must also select a CLV value type in the Administration panel of the Dashboard for each app by selecting edit next to your app name. This can either be cents in certain currencies, or else value if the measurement isn't a dollar figure.
+ (void)tagEvent:(NSString *)event attributes:(NSDictionary *)attributes customerValueIncrease: (NSNumber *)customerValueIncrease;
public static void tagEvent(final String event, final Map<String, String> attributes, final long customerValueIncrease)
Localytics.TagEvent("Options Saved", attributes, 4995)
localyticsSession.tagEvent( "Event Name", {“AttributeName”: attributevalue, “AttributeName2”: attributevalue2}, customerValueIncrease);
TagEvent(string eventName, Dictionary<string, string> attributes = null, long customerValueIncrease = 0)
m.LL.TagEvent("EventName", "attribute", CLV)