Skip to main content

Overview

Deep links are URLs that configure how Hemsy opens: a pre-loaded product, a flow’s starter look, or a shared look, plus optional attribution IDs. Use them from product pages, emails, ads, blog posts, or collection tiles so customers don’t have to build a look from scratch or lose tracking context. Hemsy supports these query parameters for pre-populating or attributing a session: All of these can be combined with ?store=<slug> on staging and preview deployments to target a specific tenant.
Include anonymous_id whenever the storefront has an anonymous visitor ID available. Today, Hemsy uses it for Twilio Segment tracking and checkout/order attribution. Longer term, it should be treated as the shared anonymous identity for all integrations that need to connect Hemsy activity back to storefront activity.

anonymous_id: Visitor attribution

anonymous_id is an optional query parameter that lets the merchant storefront tell Hemsy which anonymous visitor is opening the experience. Use it when launching Hemsy from:
  • Embedded storefront buttons
  • Product page links
  • Email or ad links where the visitor ID is available
  • Any integration that wants to reconcile Hemsy events with storefront behavior
Example:
Combined with a product shortcut:
Combined with a shared look:

What anonymous_id does

When present, Hemsy uses anonymous_id to:
  • Attach the visitor identity to Hemsy analytics events.
  • Pass the same identity through checkout creation, so it can surface on the Shopify order as an additional detail/custom attribute when the order is placed through Hemsy checkout.
  • Provide a stable identity key for supported integrations.
Current integration support is focused on Twilio Segment. Merchants should still pass anonymous_id consistently now so Hemsy can use the same identity for additional integrations as they are added.
If a shopper visits a Hemsy-hosted URL directly, for example by typing https://yourstore.hemsy.ai/ into the browser, Hemsy cannot infer the anonymous visitor ID from the merchant’s storefront domain. The storefront must pass the ID explicitly via anonymous_id in the URL or via the embed script configuration.

?product=: Single-product shortcut

For the common case of “launch Hemsy with one product pre-loaded”, ?product= accepts either:
  • A numeric Shopify product ID: ?product=8888888888888
  • A Shopify GID: ?product=gid://shopify/Product/8888888888888
  • A product handle: ?product=organic-cotton-duvet
With visitor attribution:
The product is added as the first layer and rendered on your first model photo right away.
?share=<shortId> is reserved for links generated by Hemsy’s in-app Share feature. The short ID resolves server-side to a previously saved look: user photo, generated image, and full selection. You don’t need to construct these yourself. They’re produced by the app when a shopper taps Share. If the storefront knows the visitor identity, append anonymous_id to shared look links too:

?flow=<flowId> opens a flow on its starter look: one layer per flow step, already filled in with the merchant’s starter picks, and the saved starter render. See Launch Modes for how flows are set up.
Combined with ?product=, the flow opens with that product in its matching step, the other steps empty, and the product rendered right away. See Product context in a flow.
?flow= is ignored when the link also carries ?share=.