How Can We Help?

Search for answers or browse our knowledge base.

Documentation | Demos | Support

On this page
Print / Download as PDF

Signals: Web Script

Overview

This script sets a business identifier (BID) for your application and loads an external JavaScript file to collect data insights.

Parameters

  • bid: A string variable that holds the business identifier.

Data Collected

  1. os: The operating system information, retrieved from navigator.platform or the query parameter os.
  2. sw: The screen width of the device, retrieved from window.screen.width or the query parameter sw.
  3. sh: The screen height of the device, retrieved from window.screen.height or the query parameter sh.
  4. ua: The browser’s user agent, retrieved from navigator.userAgent or the query parameter ua.
  5. domain: The domain name of the current site, retrieved from window.location.hostname or the query parameter domain.
  6. url: The full URL of the page, retrieved from window.location.href or the query parameter url.
  7. eip: Encrypted representation of household IP.

 

Usage

  1. Setting the BID

    • Replace "[ASSIGNED_BID]" with your specific business identifier.
    • Ensure this script is included in the HTML <head> or <body> sections to initialize the bid variable.

  2. Loading the Data Collector Script

    • Ensure the external script URL is correct and accessible.
    • The async attribute allows the script to load in the background while the rest of the webpage continues to render.

Example

				<script>
let bid = "[ASSIGNED_BID]";
</script>
<script src="https://equinix-collector-1.insights.report/s/intz-clctr.js" async></script>