Send Amplitude data to Sequential

Keep the Amplitude Browser SDK (@amplitude/analytics-browser) and point it at Sequential: your Amplitude ingest key as the API key, plus serverUrl.

View as Markdown

Install with your AI agent

Copy a complete instruction for a coding agent (Claude Code, Cursor, Copilot…) with your repo open. It says how to find an existing install, what to change, and how to check events arrive, and it includes this page.

Keys are placeholders; the agent will ask for them.

On this page

Install

Pick one of the three paths.

Your site Tab
Already calls amplitude.init(…) Already using
A bundled app (npm) npm
Plain HTML, or a tag manager such as Google Tag Manager Script tag

Already using Amplitude

Do not add a second copy. In the amplitude.init(…) call you already have, replace the API key and add serverUrl so events go to Sequential instead of Amplitude.

Keep every other option you pass, with two exceptions:

  • Remove useBatch: true if it is set (see Before you switch).
  • Remove a serverZone option: serverUrl replaces it.
Changed: the API key and `serverUrl`.
js

amplitude.init('YOUR_AMPLITUDE_INGEST_KEY', { serverUrl: 'https://api.usesequential.com/2/httpapi' });
Content-Security-Policy

Only if the site sets a Content-Security-Policy. Add these origins to the directives it already has; do not replace them.

text

script-src https://api.usesequential.com https://cdn.amplitude.com https://cdn.usesequential.com
connect-src https://api.usesequential.com

Add session replay (optional)

One line adds the recorder (/rec/recorder.js). It takes your replay ingest key (sq_replay_…), not the Amplitude ingest key. The recorder picks up Amplitude's session and user ids on its own, so every supported event (What is supported) lands on the replay timeline. Put it on every page you want to replay, after the SDK.

html

<script src="https://api.usesequential.com/rec/recorder.js/YOUR_REPLAY_INGEST_KEY"></script>

What it records and masks is set per project in Sequential (Settings › Recording & data), not in the page. See Add session replay to a website.

Check it works

  1. Web Load a page of the site in a normal browser.

  2. Open the network panel.

  3. Look for requests to the API URL (serverUrl) that answer 2xx.

Done when: In Sequential, step 3 of the project setup says "It works" when the first event arrives. Then your source's line on Settings › Setup says "receiving". The first event can take up to about a minute to appear.

If it does not work
SymptomCauseFix
A request answers 401The key is wrong, or belongs to another source. Every key works with one SDK only.Where the values come from
A request answers 403The request looked like a bot. Headless and automated browsers are rejected as bots.Load the page in a normal browser, not a headless or automated one.

What is supported

Support Capabilities
Yes Custom events; Autocaptured clicks & forms; Identify (user id); DevTools: errors, console, network, performance
Partial Page / screen views (the URL is kept only as an event property); User properties (add, append and unset are ignored); Session replay (Sequential’s recorder, not Amplitude’s own replay plugin)
No Groups / accounts; Errors; Feature flags, surveys, experiments; Server-side SDKs

All SDKs side by side: What each SDK supports.

Full support table
What Sequential does with Amplitude traffic
CapabilitySupportNotes
Custom eventsYesamplitude.track(name, props) through serverUrl. Leave batching (useBatch) off: the batch endpoint does not reach Amplitude handling today.
Page / screen viewsPartial[Amplitude] Page Viewed is a page view, but the URL is kept only as an event property, not as the event's URL.
Autocaptured clicks & formsYesElement clicks and form submits from autocapture.
Identify (user id)Yesamplitude.setUserId(id).
User propertiesPartialSequential stores Identify with set / setOnce, and ignores add, append and unset.
Groups / accountsNoSequential does not read setGroup and groupIdentify data, and drops it: no accounts.
ErrorsNoNo error events; track them as custom events.
Session replayPartialAmplitude's own replay plugin sends to Amplitude, not here. Add Sequential's recorder: it joins Amplitude's session id automatically.
DevTools: errors, console, network, performanceYesCaptured by Sequential's recorder, after you add the recorder to the page.
Feature flags, surveys, experimentsNoAmplitude Experiment is not supported.
Server-side SDKsNoBrowser and PostHog mobile SDKs only. Sequential rejects server-side SDK user agents as bots (403). To send events from your own server, use Sequential’s backend SDK for Node.

Next steps