Skip to main content
MIGRATE FROM SEGMENT

Migrate from Segment to Monfri CDP

For teams that use Segment as a CDP, not only as a data pipe. How long it takes depends on your code and your data.

Elapsed: depends on your data Active work: depends on your code

Is it right for you?

Monfri's CDP does:

  • Event tracking from your site (JavaScript SDK) and your server (API), with consent
  • Segments that update themselves
  • One profile per person — anonymous visits are merged when the person signs in or orders
  • Activation through e-mail, push, CRM and Automation flows

Do not choose it if your main need is to route events on to many warehouses and analytics tools, to enforce a strict event schema, or to sync data from a warehouse back into your tools — Monfri's CDP is not built for that.

Step 1 — Document your tracking plan

List the events and properties you send today — for example by exporting your tracking plan from Segment. Monfri has no tracking-plan import; the list is your checklist while you swap the calls.

Step 2 — Set up Monfri CDP

Add your site in Monfri and copy the script tag with the site's key.

Step 3 — Swap SDK calls

Segment: analytics.track('Event Name', { prop: value })

Monfri: cdp.track('Event Name', { prop: value })

The calls have the same shape. For most codebases:

  1. Replace <script src="segment..."> with the Monfri script tag
  2. Replace analytics.track(…) with cdp.track(…)
  3. Replace analytics.identify(userId, traits) with cdp.identify(userId, traits)
  4. Replace analytics.page() with cdp.page()

Your event names can stay the same. In a large codebase, use search and replace or your editor's rename tools.

Step 4 — Audiences

Segment audiences do not carry over as a file. Rebuild them as segments in Monfri CDP:

  1. List your active audiences
  2. For each, write down the rules — AND/OR conditions on events and traits
  3. Create a new segment in Monfri CDP with the same conditions

Step 5 — Track in parallel

For a while, send events to both. Check:

  • event counts day by day
  • that profile merging behaves as you expect
  • segment sizes

If the numbers differ, usually an SDK call was missed.

Step 6 — Activation

In Monfri, e-mail, push and CRM are on the same platform — segments start campaigns and flows directly. If you still need to send data to an outside system, use an HTTP step in an Automation flow.

Step 7 — Remove Segment

Once Monfri covers everything important, remove the Segment script tag and end the old subscription.

Tips for large codebases

  • Gradually. Swap one page or feature at a time rather than all at once.
  • Both libraries, briefly. While you swap, both SDKs can run side by side.
  • Watch parity. Compare event counts per event name between the two systems and look into the differences.
  • Server first. If you are comfortable, move server-side events (through the API) before the browser ones.

Ready to migrate from Segment?

Start your 14-day free trial. Import your Segment data and rebuild your flows. No credit card required.