Customize the Timeout for Dialog Box Campaign Type

Document created by 043468101e4252afdb21d58f86e0fe4368c613f2 Employee on Jul 8, 2015
Version 1Show Document
  • View in full screen mode

 

When creating a dialog box campaign type in RTP, you can set up the length of time (in seconds) the dialog box will display.

 

The provided options include: 5, 10, 30, 60 seconds or Never which means the dialog box displays until clicked on.

 

To customize the timeout and set it to any duration you want, see the following:

 

  1. Set the Timeout to be Never.


  1. Click on HTML. Edit the campaign’s HTML and insert the JavaScript below (also see here):

 

<script>

    (function(){

        setTimeout(function(){

            AITag.jQuery('#trwDialog').dialog('close');

        }, 1000*

   

       15 //seconds

   

    );}())

</script>

 

By default this JavaScript will add 15 seconds timeout to your campaign, you can change it to any duration you want by editing the code.

 

Also see: Triggering RTP Campaigns with a Delay

Attachments

    Outcomes