Skip to content

Instantly share code, notes, and snippets.

@Attaulla9
Forked from johnnyopao/conversionClick.html
Created June 23, 2021 11:22
Show Gist options
  • Save Attaulla9/36003ddeca1c42cc657ff69f1bd2c179 to your computer and use it in GitHub Desktop.
Save Attaulla9/36003ddeca1c42cc657ff69f1bd2c179 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