Set the buttons URL to
javascript:lp.jQuery.ubpoverlay.close()| <script> | |
| lp.jQuery(function($) { | |
| var ruleID = 'emailMatch'; | |
| //The email field to check against | |
| var firstEmailField = 'email'; | |
| //The second confirmation email field |
| <script> | |
| var callback = function(formatted_number, unformatted_number) { | |
| var numberLinks = document.getElementsByClassName('number_link'); | |
| for (var i in numberLinks) { | |
| // Change clkn to clkg if you are tracking your links as Unbounce conversion goals | |
| numberLinks[i].href = "clkn/tel/" + unformatted_number; | |
| numberLinks[i].innerHTML = ""; | |
| numberLinks[i].appendChild(document.createTextNode(formatted_number)); | |
| } |
| // This also requires a adwords onhandler conversion script. | |
| // See the section on 'Tracking clicks on links or buttons as conversions' in the article below | |
| // on how to obtain that script | |
| // https://support.google.com/adwords/answer/6095821?hl=en | |
| <script> | |
| $( "#lp-pom-button-15" ).click(function(event) { | |
| event.preventDefault(); | |
| <script type="text/javascript"> | |
| function yourSubmitFunction(e, $) { | |
| e.preventDefault(); | |
| var _ubaq = _ubaq || []; | |
| _ubaq.push(['trackGoal', 'convert']); | |
| var ub_script = document.createElement('script'); | |
| ub_script.type = 'text/javascript'; | |
| ub_script.src = |
| <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 type="text/javascript"> | |
| function yourSubmitFunction(e, $) { | |
| e.preventDefault(); | |
| //CUSTOM CODE HERE | |
| // If your code is asynchronous, call this final line in your callback instead | |
| lp.jQuery('.lp-pom-form form').submit(); | |
| } |
Set the buttons URL to
javascript:lp.jQuery.ubpoverlay.close()| <style> | |
| @media (max-width: 600px){ | |
| /*Custom CSS HERE */ | |
| } | |
| </style> |
| <script> | |
| // NOTE: If you want to track these links as conversion goals on Unbounce, | |
| // change 'clkn' to 'clkg' in the commented areas below | |
| // Add the button ID's to this array that you want tracked | |
| // For example: ['#lp-pom-button-12', '#lp-pom-button-20'] | |
| var callButtons = []; | |
| var ubCallback = function(formatted_number, unformatted_number) { | |
| var numberLinks = document.getElementsByClassName('number_link'); |