Created
September 22, 2016 12:04
-
-
Save brennandunn/e4d1b11695ebd654e77279b7b03cea18 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
$(function(){ | |
params = jQuery.deparam.querystring() | |
for (var key in params) { | |
if (key.indexOf('utm') === 0) { | |
$('form#leadpages-form-selector-here').append( | |
$('<input type="hidden">').attr('name', key).val(params[key])) | |
) | |
} | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment