Send Smartlook data to Sequential

Keep your Smartlook snippet or package. Change where the script loads from, and the key. Tracking calls keep working; session replay continues on Sequential.

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

Script tag install

Make two edits to the snippet the site already has:

  1. c.src: load /recorder.js from the API URL (https://api.usesequential.com) instead of https://web-sdk.smartlook.com/recorder.js.
  2. init: use your Sequential Smartlook ingest key, and make the options object {}. Delete region: it picks a Smartlook data centre and means nothing here.
The snippet with both lines changed and marked:
html

<!-- keep your existing snippet; change the two marked lines -->
<script type='text/javascript'>
  window.smartlook||(function(d) {
    var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0];
    var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript';
    c.charset='utf-8';c.src='https://api.usesequential.com/recorder.js';   // ← was web-sdk.smartlook.com
    h.appendChild(c);
    })(document);
    smartlook('init', 'YOUR_SMARTLOOK_INGEST_KEY', {});   // ← your Sequential key; drop { region: … }
</script>
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.usesequential.com
connect-src https://api.usesequential.com

Session replay

Sequential’s recorder records only if the project has a live replay ingest key (sq_replay_…).

  • It starts on its own. It needs no extra snippet, and it shares Smartlook’s session id, so events and recordings line up.
  • What it masks, samples and skips is set per project in Sequential (Settings › Recording & data). No option in your page changes it. To stop recording, turn off Record sessions there. Do not add client-side options for it.

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 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.Use your Sequential Smartlook ingest key.
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.

To confirm that recordings arrive: Check session replay.

What is supported

Support Capabilities
Yes Custom events; Page / screen views; Identify (user id); User properties; Errors; Session replay; DevTools: errors, console, network, performance
Partial Autocaptured clicks & forms
No Groups / accounts; Feature flags, surveys, experiments; Server-side SDKs
Full support table
What Sequential does with Smartlook traffic
CapabilitySupportNotes
Custom eventsYessmartlook('track', name, props).
Page / screen viewsYesPage loads and in-page (pushState) navigation, plus navigation(path).
Autocaptured clicks & formsPartialClicks with a CSS selector and element text. No form, focus, input or network events.
Identify (user id)Yessmartlook('identify', id, props).
User propertiesYesidentify props and smartlook('properties', …).
Groups / accountsNoSmartlook has no groups.
ErrorsYesUncaught errors, unhandled rejections and smartlook('error', …).
Session replayYesSmartlook's recorder is replaced: Sequential's recorder starts automatically and shares the Smartlook session id. Masking comes from the project's recording settings, not from record().
DevTools: errors, console, network, performanceYesCaptured by the recorder the Smartlook script starts. smartlook('error', …) shows as an error. Smartlook's interceptors and advancedNetwork options do not apply to it.
Feature flags, surveys, experimentsNoSmartlook has none.
Server-side SDKsNoWeb only. Sequential answers Smartlook mobile SDK traffic and drops it.
Smartlook API calls, options and `record()`

Sequential serves its own Smartlook-compatible script. Smartlook’s interceptors still work (returning false drops an event). pause, resume, restart, anonymize, disable, getData and initialized behave as before. sessionId, visitorId, recordId, key and version are readable on window.smartlook.

record({ forms, ips, numbers, emails, api }) does not change masking. Sequential stores the call as a record event of the System class. Event lists hide System events. See Events.

Next steps