When using ClickTaleUploadPage API method and AdSense, your ad blocks will be shown twice during playback. This is because in "client-capture" more, the ads are rendered twice. Once during recording and once during playback.
To correct the situation you can add some code to your pages that will remove the second instance of the ad.
First create a js file (i.e. clicktale-adsense.js) and include the following code in it
Code:
function ClickTaleRemoveAdsenseFrame()
{
if (typeof ClickTaleIsPlayback != 'function' || ClickTaleIsPlayback() )
{
var c=document.getElementsByName('google_ads_frame');
if(c.length)
{
var e=c.item(c.length-1);
e.parentNode.removeChild(e);
}
}
}
Second, include this js file by adding the following line in every html page where you have adsense ads
Code:
<script type="text/javascript" src="clicktale-adsense.js"></script>
Third, after each block of adsense add the following code
Code:
<script type="text/javascript">ClickTaleRemoveAdsenseFrame();</script>
Note: a block of adsense ends with a
Code:
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
Advanced note: if you only have one block of adsense, you can execute the body of the function inline right after the ad block and not use an additional file.