Connecting Klaviyo
1
Create a private API key in Klaviyo
In Klaviyo, open
Settings, then API keys, and select Create Private API Key.
Give the key these scopes:2
Paste the key in Moshi
In Moshi, open
Integrations, select Klaviyo, and paste the private API key.3
Save
Moshi checks the key when you save it.
Profiles write access and Segments write access are both required.
What Moshi sends to Klaviyo
Turn onSend funnel data to Klaviyo.
Once a day, Moshi syncs the shoppers it captured. Each profile can include:
- Email and name
- Address, where available
- Survey answers you mapped
moshi_flow: the name of the Moshi flowmoshi_flow_id: the id of that flow
Build your segments and reports on
moshi_flow_id or moshi_flow.
A $source value of moshi may also appear, but other tools, such as popup apps, can overwrite $source. Don’t rely on it.The “Moshi shoppers” segment
When you connect, Moshi automatically creates a segment named Moshi shoppers in your Klaviyo account. It includes every profile wheremoshi_flow_id is set.
- Don’t rename or delete it.
- If it is deleted, save your key in Moshi again to recreate it.
- Klaviyo can take a little while to fill a new segment.
Hide sign-up popups from Moshi shoppers
Shoppers who arrive from a Moshi chat have usually already shared their details. A “join our list” popup interrupts them on the way to checkout. Use two rules together:Klaviyo sign-up forms
1
Open the form
In Klaviyo, go to
Sign-up forms and open the popup or flyout.
Go to the Targeting & Behavior (or Targeting) tab.2
Exclude the segment
Under visitor targeting, set
Don't show to and choose profiles in list or segment: Moshi shoppers.3
Exclude the Moshi URL
Under URL targeting, set
Don't show on certain URLs and choose URL contains utm_source=moshi.4
Publish
Save and Publish the form.
Alia popups
If you use Alia for popups, follow the Alia guide. It uses the same two rules.Test it
- Open an incognito window.
- Visit a product page on your store with
?utm_source=moshiadded to the end of the URL. - The popup should not appear. For exit-intent popups on desktop, move your mouse toward the browser tabs.
- Visit the same page without
?utm_source=moshi. The popup should appear as normal.
If the popup is hidden with the parameter and shown without it, your rules work.