Skip to content

Instantly share code, notes, and snippets.

@youvalv
Created December 5, 2019 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save youvalv/0487fd3e6376fce92d39863dcd8012e9 to your computer and use it in GitHub Desktop.
Save youvalv/0487fd3e6376fce92d39863dcd8012e9 to your computer and use it in GitHub Desktop.
// value: some information about the action - type of subscription plan, type of segment, A/B test ID. etc. Can be nil
// instanceId: the moment ID used to trigger the desired action. Can be nil
// action: definition of the action. Can be one of: http://docs.theneura.com/ios/Constants/NEngagementFeatureAction.html
[NeuraSDK.shared tagEngagementAttempt:"featureName" value:"ABTestId" instanceId:nil error:&err];
[NeuraSDK.shared tagEngagementFeature:"featureName" action:NEngagementFeatureActionSuccess value:valueField.text instanceId:instanceIdField.text error:&err];
// When error validation is not needed, the error parameter can be nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment