Conversion
Tag an event as a conversion
In order to track a conversion, you need to set the property goal_type
on the event leading to conversion.
Property | Type |
---|---|
goal_type | string |
- Javascript
- Android (3.3.0+)
- Android
- Apple
pa.sendEvent('account.signup', {
...,
'goal_type': 'signup',
...
});
PianoAnalytics.getInstance().sendEvents(
Event.Builder("account.signup")
.properties(
Property(...),
Property(PropertyName("goal_type"), "signup"),
Property(...),
// you can add properties here
)
.build()
// you can add other events here
)
pa.sendEvent(new Event("account.signup", new HashMap<String, Object>() {{
put(...);
put("goal_type", "signup");
put(...);
}}));
pa.sendEvent(Event("account.signup", data: [
...
"goal_type": "signup",
...
]))