Skip to main content

Installation

Javascript

<script>
var _mhct = _mhct || [];
_mhct.push(['mhCampaignID','VA-00001']);
!function(){var c=document.createElement("script");c.type="text/javascript",c.async=!0,c.src="//www.dynamicnumbers.mediahawk.co.uk/mhct.min.js";var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(c,i)}();
</script>

To install the Mediahawk Call Tracking (mhct) code, you need to insert the javascript provided to you when setting up your dynamic URL, making sure your mhCampaignID is set correctly. This can be included anywhere within your page, ideally between the <head></head> tags.

tip

Make sure you replace the VA-00001 with your dynamic URL ID.

HTML

<span class="mediahawkNumberX mhMobile">01234567890</span>

Once the javascript file has been included, you then need to add the appropriate mediahawkNumberX class to any phone number you wish to replace with your Mediahawk telephone number, making sure you replace X with the appropriate pool ID. You can also add the mhMobile class if you want to turn the number into a clickable link.

tip

Make sure you replace the mediahawkNumberX with your pool class.