Analytics.js Browser Support


The Segment JavaScript library, Analytics.js, loads a snippet on your webpage that supports existing user consent APIs and native browser controls. Segment regularly tests Analytics.js against the following browsers on all major platforms, and updates the library accordingly.

The library is regularly tested and is functional with the following browsers:

  • Internet Explorer
  • Apple Safari
  • Google Chrome
  • Mozilla Firefox
  • Microsoft Edge
  • Brave

Deprecation of Analytics.js Classic

Analytics.js Classic was deprecated on February 28, 2023. As of March 2023, Segment upgraded all sources to Analytics.js 2.0.

Internet Explorer Support

Segment guarantees support for Internet Explorer 11 and later for Analytics.js. Remember that different bundled (device-mode) destinations might have different compatibility guarantees for their own products. Refer to the vendor’s documentation to confirm browser compatibility.

If you need to support older versions of Internet Explorer or Opera, Segment recommends you to either load a polyfill script in the head as shown in this code snippet, or use the analytics-next npm package and polyfill bundle as shown in Babel.

Classic destinations and Analytics.js support Internet Explorer 11, but some Actions destinations are not yet supported.

Tracking Protection (ITP, ETP)

Segment is a customer data platform (CDP) that helps companies harness first-party customer data. The recent browser changes fully align with Segment’s privacy stance.

Browser manufacturers have enhanced their privacy features by adding third-party tracking protection mechanisms for end-users. These browser changes target third-party trackers and their cookies, and each platform takes a different approach.

For example, Firefox Enhanced Tracking Protection (ETP) relies on a dynamic list of known trackers to decide what to block. Browsers that use Apple’s WebKit engine, like Safari and Chrome for iOS, use Intelligent Tracking Protection (ITP) which actively prevents the browser from loading cookies from a third-party domain.

Note: Segment cookies expire after seven days of user inactivity, like all other application cookies under the WebKit engine ITP policy.

Proxies and Analytics.js

Because of regulatory, environmental, or security concerns, some customers prefer to set up proxy infrastructure for Analytics.js.

You can also use the apihost configuration option in the Analytics object to route traffic to different API endpoints.

This page was last modified: 12 Aug 2024



Get started with Segment

Segment is the easiest way to integrate your websites & mobile apps data to over 300 analytics and growth tools.
or
Create free account