Legacy Trigger Code (<18x) - Trigger Specifications


  • Based on latest JavaScript best practices
  • Delivered fully name-spaced, minified, and obfuscated
  • Works across multiple tabs/browsers
  • Works across protocols and sub-domains
  • Code tested on client’s production web site prior to delivery


  • Initiates survey in browser session, on exit of site/section, or upon clickable event
  • Uses three cookies: two session, one persistent (optional)
  • Excludes invitation based on local URL, referring URL, userAgents, cookie, or variable
  • Presents qualifying page prior to showing of the survey
  • Fully multi-lingual enabled including invitation, tracker, and survey
  • Random sampling by measure and/or language
  • Standard site parameters passed for all measures including, but not limited to, page views, url, browser, operating system, referring domain, search terms, and device type (for mobile)
  • Ability to define custom events based on URL, variable, or cookie (e.g., purchase confirmation, items in cart, dollars purchased).

Browser Support:

  • Internet Explorer 8+
  • Firefox 1.5+
  • Safari 3+
  • Chrome 4+

Operating System Support:

  • Microsoft Windows
  • Mac
  • Linux
  • iOS (mobile)
  • Android (mobile)

Code Size (approx.):

  • Uncompressed: 69 KB (with SessionReplay: 113KB)
  • Compressed (G-zipped): 25 KB (with SessionReplay: 40KB)


  • Single line of JavaScript code referenced globally
  • JavaScript library hosted on client’s web servers
  • Data collection hosted by ForeSee
  • Code delivered as a single ZIP file with instructions

Other articles in this section:

  1. Implementing ForeSee for Web
  2. Implementation Steps
  3. Testing & Troubleshooting
  4. Survey Options
  5. Code File Library
  6. Performance Optimization
  7. Trigger Specifications (current article)
  8. ForeSee Replay Specifications
  9. Replay Privacy Options
  10. 508 & WCAG Compliancy