//Change the values in this section to customise for your implementation. //Replace with business's phone number EXACTLY as it appears on the website. var business_number = "01234 567891"; //Replace with business's phone number without spaces or symbols. var business_number_unformatted = "01234567891"; //Replace this value with the unique selector for the phone number's element. var business_number_identifier = "YOURELEMENT.CLASSORID"; //End customization section var callback = function(formatted_number, unformatted_number) { var numberElement = document.querySelector(business_number_identifier); var numberString = numberElement.innerHTML; numberString = numberString.replace(business_number,formatted_number); numberElement.innerHTML = numberString; }; //The line of code below is for testing with GTM's debug mode. //It replaces the business phone number with a testing number (01234 567891). window.onload = callback('01234 567891', business_number_unformatted); //This code executes everything. When you're done testing and you're ready to publish the //GTM container, place '//' in front of the code above, and remove the '//' below. //window.onload = _googWcmGet(callback, business_number);