Products
Insights

Browser Requirements

Insights is built with modern browser APIs for optimal performance and reliability. The SDK uses ES Modules for loading and the Beacon API for reliable event transmission.

Minimum Browser Versions

BrowserMinimum Version
Chrome80+
Firefox72+
Safari14+
Edge80+
Chrome Android80+
iOS Safari14+
Samsung Internet14+

Required APIs

The following browser APIs are used by Insights:

APIPurposeFallback
ES ModulesScript loadingNone (required)
Beacon APIReliable event transmissionfetch() with keepalive
Intersection ObserverImpression trackingDisabled if unavailable
Fetch APIToken requests, data uploadNone (required)
localStorageToken persistenceIn-memory (current session only)

Graceful Degradation

Insights degrades gracefully in environments with limited API support:

  • Beacon API unavailable: Falls back to fetch() with the keepalive flag for reliable transmission during page unload
  • Intersection Observer unavailable: HTML attribute impression tracking is disabled; programmatic tracking via window.insights.impression() still works
  • localStorage unavailable: Tokens are stored in memory for the current session only
  • Core Web Vitals unavailable: Performance metrics are omitted from page view data

In all cases, core page view and event tracking continue to function. No errors are thrown in unsupported environments.

Script Loading

Insights must be loaded as an ES Module:

<script
  type="module"
  src="https://insights.thgaltitude.com/sdk/client.js"
  data-insights-channel="myprotein"
  data-insights-subsite="en"
  data-insights-storefront="nutrition"
></script>

The type="module" attribute is required. Without it, the script will not execute.

Next Steps

  • Installation - Add the script tag to your application
  • Tracking - Set up tracking for your application