Created
January 13, 2017 12:22
-
-
Save Sleavely/97128c9a254b752d159d814302699f4c to your computer and use it in GitHub Desktop.
Sample for Profile Cloud integrations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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