Skip to content

Instantly share code, notes, and snippets.

View noahub's full-sized avatar
💻
Doing computer stuff

Noah noahub

💻
Doing computer stuff
View GitHub Profile

Simple redirect to a URL:

<script type="text/javascript">
  window.location.replace('http://www.google.com/');
</script>

Redirect to a URL and pass through URL parameters and #anchor fragments

@noahub
noahub / conversionClick.html
Last active August 29, 2015 14:21 — forked from johnnyopao/conversionClick.html
Adds targeted element as a Conversion Goal for your Unbounce landing page.
<script>
window.trackConversion = function() {
$('body').append('<iframe src="clkg/http/http/unbouncepages.com/blankpage/" style="display: none"></iframe>');
};
lp.jQuery(function($) {
$('#lp-pom-button-11').click(function () {
trackConversion();
});