calin-beard
11/13/2017 - 3:57 PM

Google Phone Tracking https://support.google.com/adwords/answer/6095883

// HTML added in Add NEW -> HTML
<p style="font-weight:bold;font-size: 36px; line-height: 50.4px;color:#2089c2"> Call Us <a style="color:#2089c2" href="tel:1300301771" class="phonenumber">1300 301 771</a></p>



// Script from header
<script type="text/javascript">
  $( document ).ready(function() {
    _googWcmGet('number', '1300 301 771');
  });
</script>



// Script added in Footer
<script type='text/javascript'>
  $( 'a.phonenumber' ).html( '<span class="number">1300 301 771</span>' );
</script>
<script>
window.onload = function(){
_googWcmGet('number', '1-877-557-1250');
};
</script>

1. First add the phone number on your page, to do this go to Add New -> HTML, in the html box add this line ```<span class="number">1-877-557-1250</span>``` and place the box in the place where you want your phone number to appear.
2. Now go to Settings -> JavaScript and add in this code:

```
<script>
window.onload = function(){
_googWcmGet('number', '1-877-557-1250');
};
</script>

```

This code is the equivalent of the ```<body onload="_googWcmGet('number', '1-800-123-4567')"></body>```

3. Replace the phone numbers with your own.