Skip to content

Instantly share code, notes, and snippets.

@johnnyopao
Last active December 15, 2022 11:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save johnnyopao/b1990f421eb1ef2a48d9 to your computer and use it in GitHub Desktop.
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
<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