Last active
July 29, 2023 06:24
-
-
Save chris-castillo-dev/42616fddd5eb41c47fc5aa529b33b981 to your computer and use it in GitHub Desktop.
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
$form.on('fluentform_submission_success', function() { | |
// You can run your own JS and will be run on successful form submission | |
var s = document.createElement('script'); | |
var code = 'clarity("set", "conversionAction", "New Lead")'; | |
try{ | |
s.appendChild(document.createTextNode(code)); | |
document.body.appendChild(s); | |
} catch(e){ | |
s.text = code; | |
document.body.appendChild(s); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment