Custom Page-Specific Variables

The following JavaScript variables can be set before the Lucky Orange code is loaded on any particular page. They will override certain settings on a per page basis. So, if you wanted your chat box to appear on a different side, or not at all, for a specific page on your site, you'd use one of these variables on that page.

Jump to Topic

  1. Disable Dynamic Recordings
  2. Scramble Text if Dynamic Mode
  3. Set a Custom Z-Index for the Chat Box & Polls
  4. Disable Recording of Heat Map Data
  5. Override Associated URLs
    1. Recordings Data
    2. Form Analytics Data
    3. Heat Maps Data
  6. Override the Title Associated with a Page for Recordings
  7. Override Alignment
    1. Chat Box
    2. Polls
  8. Hide the Chat Box and Away Form
  9. Hide Polls
  10. Disable Interception & Recording of AJAX Responses
  11. Record Console Logging
  12. Disable Recording
  13. Get Recording ID from IP Address
  14. Disable Flash compression
  15. Disable Recording Canvas Elements


Disable the Use of Enhanced Recordings

To force the system to use non-dynamic recordings for a page, even if the page supports dynamic recordings, set this variable.

window.__lo_disable_mutations = true;

If recording in dynamic mode, force the page to scramble all text

window.__lo_scramble_text = true;

Set a Custom Z-Index for the Chat Box & Polls

window.__wtw_lucky_chat_zindex = 999;

Disable Recording of Heatmap Data

window.__wtw_lucky_no_heatmap_data = 1;

URL Overrides

You can provide custom URLs to be associated with the data collected from a page rather than the URL of the page itself.

  • To override the URL associated with a page's Recordings data:

    window.__wtw_lucky_override_save_url = "http://your-custom-url-goes-here.com";

  • To override the URL associated with a page's Form Analytics data:

    window.__wtw_lucky_override_fa_url = "http://your-custom-url-goes-here.com";

  • To override the URL associated with a page's Heat Map data:

    window.__wtw_lucky_override_heatmap_url = "http://your-custom-url-goes-here.com";

Override the Title Associated with a Page for Recordings

Normally the title associated with a Recording is document.title. The following allows you to set a custom page title.

window.__wtw_lucky_override_save_title = "Custom Title";

Override Chat & Poll Alignment

The possible values for both Chat and Poll alignment are: 'left', 'center', and 'right'.

  • Chat Alignment

    window.__wtw_lucky_chat_align = 'right';

  • Poll Alignment

    window.__wtw_lucky_poll_align = 'right';

Hide the Chat Box and Away Form

window.__wtw_lucky_no_chat_box = true;

Hide Polls

window.__wtw_lucky_no_polls = true;

Disable Interception & Recording of AJAX Responses

window.__wtw_lucky_no_ajax = true;

Record Console Logging (console.log, console.error, console.warn)

window.__lo_log_console = true;

Disable Recording

window.__wtw_lucky_do_not_record = true;

Note: When Recordings are disabled, you can still use Chat and Live View.

Get the recording ID from the IP address, instead of the 1st party cookie

window.lo_use_ip_lookups = true;

Disable Flash Compression

window.__lo_disable_flash = true;

Disable Recording Canvas

window.__lo_ignore_canvas = true;

Still need help? Contact Us Contact Us