Sync forms can run custom javascript on success or failure. Place “callback” with specified function within the revmsgConfig variable. If this variable isn’t already defined, know that it must appear before the Sync script link in the HTML.

revmsgConfig = {
callback: function(data) {
if(data.error) {
// there was a problem, do not fire conversion code.
// maybe show another error state/message
} else {
// fire conversion pixel embed
// show a success message
// show "share this functionality"
// or other "YAY!" thing here.
}
}
}