Alias Spec (Customer.io): merge identities so your retention triggers don’t break

Customer.io partner logo

Table of Contents

Summarize this documentation using AI

This banner was added using fs-inject

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Overview

If you’re running retention in Customer.io, identity drift is one of the fastest ways to quietly tank performance—cart recovery stops firing, post-purchase splits get messy, and you end up messaging the same buyer twice under different profiles. If you want this implemented cleanly (especially across web + mobile + paid traffic), book a strategy call and we’ll map the identity plan to your actual customer flows.

Alias Spec is the mechanism that tells Customer.io: “these two identifiers represent the same person.” In practice, it’s how you connect anonymous/guest activity (cookie ID, device ID) to a known customer (email, customer_id) so segmentation stays accurate and triggers stay reliable.

How It Works

Alias is a data-in pattern: you send an alias payload into Customer.io, and Customer.io uses it to merge/associate profiles that would otherwise remain separate. The goal isn’t just deduping records—it’s preserving the event timeline so your campaigns and segments behave like a single customer journey.

  • Two IDs, one person: you provide an existing identifier (often the anonymous ID you’ve been tracking) and a new identifier (often the authenticated/known ID).
  • Identity resolution happens at ingest: once Customer.io processes the alias, future events tied to either identifier resolve to the same person profile (depending on how you’ve implemented identify vs track and which ID you treat as primary).
  • Event history matters: the main operational win is that pre-login events (browse, add_to_cart) become usable for post-login messaging (cart recovery, product education, replenishment timing) because they’re now attached to the known profile.
  • Segmentation and triggers get cleaner: segments like “Added to cart in last 2 hours AND not purchased” stop missing people who added-to-cart as a guest and purchased/logged-in later.

In most retention programs, we’ve seen aliasing make the biggest difference in the “guest checkout → email capture → purchase” window, where the revenue is high and the data is most likely to fragment.

Step-by-Step Setup

The right setup depends on where identity changes in your funnel. The key is to decide what your anonymous identifier is, where it’s generated, and the exact moment you can confidently link it to a known customer.

  1. Pick your identifiers (and be consistent).
    Decide what you’ll use as:
    • Anonymous ID: web cookie ID, device ID, or your own generated visitor_id.
    • Known ID: customer_id from Shopify/your backend, or email (customer_id is usually safer long-term).
  2. Track anonymous behavior from first session.
    Send events like product_viewed, added_to_cart, checkout_started against the anonymous ID so you have recovery and intent signals even before login/email capture.
  3. Send an alias call at the moment identity becomes known.
    Common moments that work operationally:
    • Account creation
    • Email capture in checkout
    • Successful login
    • Order confirmation (if that’s the first time you truly know who they are)
  4. Immediately “identify” the known profile with core attributes.
    Right after aliasing, update the person with durable fields you’ll segment on: email, customer_id, first_order_date, accepts_marketing, sms_consent, etc.
  5. Validate the merge with a real funnel replay.
    Run a test: anonymous browse → add to cart → then log in / submit email → confirm the known profile shows the pre-login events and enters the correct recovery campaign.

When Should You Use This Feature

Alias isn’t optional once you care about revenue attribution and trigger reliability. If you’re seeing “missing” abandoners, duplicate sends, or weird segment counts, it’s usually an identity problem—not a creative problem.

  • Cart abandonment with guest checkout: A shopper adds a product as a guest, then enters an email at checkout. Without aliasing, your cart recovery flow often targets the anonymous profile (unreachable) instead of the email profile (reachable).
  • Cross-device behavior: Someone discovers on mobile, completes on desktop. Aliasing (plus a strong known ID) helps unify intent and purchase so post-purchase and replenishment logic stays accurate.
  • Subscription/loyalty enrollment after purchase: If the first “known” moment is after the order (e.g., they join rewards), aliasing lets you still use the pre-enrollment purchase + browse history for upsell timing.
  • Reactivation based on historical engagement: If old profiles exist under one ID and new sessions come in under another, reactivation segments get undercounted and you’ll miss winnable customers.

Operational Considerations

Aliasing is simple conceptually, but it tends to break in the messy middle—multiple sources, multiple IDs, and inconsistent event payloads. Treat it like infrastructure for your retention engine, not a one-off integration task.

  • Segmentation accuracy depends on merge timing: If you alias only at order confirmation, your “abandoned checkout” segment will still miss people who entered email but didn’t buy. If you alias at email capture, you’ll recover more carts.
  • Define a single primary key for “known” customers: In practice, using customer_id as the durable key reduces churn when emails change or when you support multiple emails per customer.
  • Source-of-truth mapping: If Shopify is your customer source of truth, align Customer.io’s person attributes to Shopify fields and keep them updated. If your CDP is the source, enforce the same ID strategy across tools.
  • Trigger reliability hinges on consistent IDs in events: Your added_to_cart and order_completed events must resolve to the same person after aliasing, or you’ll get false “not purchased” branches and over-message buyers.
  • Orchestration realities: If you run email + SMS, duplicate profiles create channel conflicts—one profile has SMS consent, the other has email, and your frequency caps won’t behave the way you think.

Implementation Checklist

Before you ship aliasing to production, lock the identity rules and test the flows that actually make you money (cart recovery and post-purchase). This checklist keeps you out of the most common traps.

  • Anonymous ID is generated consistently (web + mobile) and stored client-side
  • Known ID strategy is decided (customer_id preferred) and available at identity moments
  • Alias is sent at the right funnel step (email capture/login, not just purchase)
  • Post-alias identify/update sets core attributes needed for segmentation
  • Key events (product_viewed, added_to_cart, checkout_started, order_completed) are validated to land on the merged profile
  • Cart recovery campaign entry conditions are tested with guest → known transitions
  • Frequency caps and suppression rules are verified after merge (no double-sends)

Expert Implementation Tips

Most teams implement aliasing “correctly” and still get weird campaign behavior because they didn’t pressure-test the edge cases. These are the operator moves that keep your triggers clean.

  • Alias at email capture, not just at purchase. For D2C, the email field in checkout is often the first reliable identity point. That’s where you win back the most revenue.
  • Standardize event naming and payload keys before you debug campaigns. If one source sends email and another sends customerEmail, you’ll mis-diagnose it as a workflow issue when it’s a mapping issue.
  • Use “not purchased” logic carefully after aliasing. Once profiles merge, historical purchases may suddenly appear and cause customers to skip recovery steps. That’s good—unless your purchase event is delayed. Make sure your purchase event ingestion latency is understood.
  • Watch for consent attributes living on the ‘wrong’ profile. If SMS consent is captured pre-alias on an anonymous profile, you need to ensure it’s retained on the merged known profile or you’ll silently lose SMS reach.

Common Mistakes to Avoid

These are the issues that show up as “Customer.io is buggy” but are almost always identity and ingestion problems.

  • Aliasing too late in the funnel: you’ll under-recover carts and your “high intent” segments will look smaller than reality.
  • Using email as the only stable ID: email changes, aliases, and multiple emails per buyer create fragmentation over time.
  • Inconsistent identifiers across sources: web events use anonymous ID, backend sends purchase events with email, and you never connect them—so your abandoners never suppress after purchase.
  • Assuming merges fix bad event payloads: aliasing won’t help if your order_completed event doesn’t include the right ID or arrives hours late.
  • Not testing real scenarios end-to-end: especially guest checkout on iOS Safari (cookie volatility) and logged-in repeat purchasers (existing profile collisions).

Summary

If your retention triggers depend on intent signals (views, carts, checkout) and your customers often become “known” mid-funnel, Alias Spec is what keeps those signals usable. Implement it early (email capture/login), standardize IDs, and validate that events land on one merged profile. If you can’t trust identity, you can’t trust segmentation—or revenue reporting.

Implement Alias Spec with Propel

When we implement aliasing for D2C brands in Customer.io, we usually start by mapping the exact identity moments in your funnel (guest → email capture → purchase → account) and then pressure-test the campaigns that are most sensitive to merges (cart recovery, post-purchase, winback). If you want a clean plan that won’t break once you add SMS, mobile, or a CDP, book a strategy call and we’ll walk through your current IDs, events, and where your triggers are leaking.

Contact us

Get in touch

Our friendly team is always here to chat.

Here’s what we’ll dig into:

Where your lifecycle flows are underperforming and the revenue you’re missing

How AI-driven personalisation can move the needle on retention and LTV

Quick wins your team can action this quarter

Whether Propel AI is the right fit for your brand, stage, and stack