Last active
December 15, 2022 11:42
-
-
Save johnnyopao/b1990f421eb1ef2a48d9 to your computer and use it in GitHub Desktop.
This works to trigger a Unbounce Conversion for buttons that do not navigate away but instead keep them on the same page
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
<script> | |
window.trackConversion = function() { | |
$('body').append('<iframe src="clkg/http/unbouncepages.com/blankpage/" style="display: none"></iframe>'); | |
}; | |
lp.jQuery(function($) { | |
$('#lp-pom-button-11').click(function () { | |
trackConversion(); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment