Last active
December 15, 2022 11:42
-
-
Save johnnyopao/587ae6e9685a94c37b85 to your computer and use it in GitHub Desktop.
Unbounce - Adwords Call tracking - Clickable links backup - See full instructions here: http://documentation.unbounce.com/hc/en-us/articles/203509834
This file contains hidden or 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
<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)); | |
} | |
}; | |
</script> | |
<script> | |
$(function(){ | |
_googWcmGet(callback, '1-800-123-4567') | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment