Skip to content

Instantly share code, notes, and snippets.

@Sleavely
Created January 13, 2017 12:22
Show Gist options
  • Save Sleavely/97128c9a254b752d159d814302699f4c to your computer and use it in GitHub Desktop.
Save Sleavely/97128c9a254b752d159d814302699f4c to your computer and use it in GitHub Desktop.
Sample for Profile Cloud integrations
send_event = new inno.Profile.Event({
"definitionId" : definitionId,
"data" : {
"email" : email,
"urlroi" : urlRoi
}
});
send_session = new inno.Profile.Session({
"collectApp" : innoHelper.getCollectApp(),
"id" : "churn-prevention",
"section" : "core",
"data" : {}
});
send_session.addEvent(send_event);
var saveableProfile = new inno.Profile();
saveableProfile.id = profile.id;
saveableProfile.setSession(send_session);
innoHelper.saveProfile(saveableProfile, function() {
console.log("success");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment