ClickTale Support Forums

All times are UTC - 6 hours

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Sat Dec 29, 2007 2:16 pm 
Site Admin

Joined: Fri Jul 21, 2006 2:39 pm
Posts: 1206
Location: Israel
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
function ClickTaleRemoveAdsenseFrame()
  if (typeof ClickTaleIsPlayback != 'function' || ClickTaleIsPlayback() )
    var c=document.getElementsByName('google_ads_frame');
      var e=c.item(c.length-1);

Second, include this js file by adding the following line in every html page where you have adsense ads

<script type="text/javascript" src="clicktale-adsense.js"></script>

Third, after each block of adsense add the following code
<script type="text/javascript">ClickTaleRemoveAdsenseFrame();</script>

Note: a block of adsense ends with a
<script type="text/javascript" src=""></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.

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 6 hours

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group