Google AdWords integration

From ClickTale Wiki
Jump to: navigation, search
ClickTale Wiki
The instructions on this page are intended for self service accounts.
Enterprise customers should contact their account managers for integration support.

This method enables you to use your recording quota to record only visitors who have arrived via a Google AdWords campaign:

  1. Make sure the URL which these visitors arrive at has an extra identifying parameter, such as ref=adwords
  2. Place the following code on your website, instead of the bottom part of your tracking code:
<!-- ClickTale Bottom part -->
<div id="ClickTaleDiv" style="display: none;"></div>
<script src="http://cdn.clicktale.net/WRe.js" type="text/javascript"></script>
<script type="text/javascript">
var recordingratio = 0;
if (/[\/?&]ref=[^&]*adwords($|&|#)/i.test(window.location.href) || ClickTaleGetUID()!=null) {
recordingratio = 1;
}
if(typeof ClickTale=='function') ClickTale([!YOUR PROJECT ID!],[RECORDING RATIO],[!PARTITION!]);
</script>
<!-- ClickTale end of Bottom part -->

Please note that the parameters [!YOUR PROJECT ID!],[RECORDING RATIO],[!PARTITION!] should be replaced with the relevant parameters from your tracking code