Skip to main content

How Alia writes to the Shopify customer record

What Alia writes to Shopify when someone signs up: the customer record, marketing consent, customer and order tags, and the settings that control them.

Written by Rob D

When someone signs up through an Alia popup on a Shopify store, Alia creates or updates their Shopify customer record, writes their marketing consent, and can tag them with the popup they used, the reward they claimed, and their quiz answers. This happens alongside what your email or SMS platform receives. This article explains exactly what Alia writes to Shopify and how to control it.

The Shopify integration connects automatically when you install Alia, so most stores never need to set it up.

The customer record

When a visitor submits their email address or phone number, Alia looks for a Shopify customer with that email address, or with that phone number if they only gave a phone number.

  • No matching customer: Alia creates one with their email address, phone number, first name, last name, and language.

  • A matching customer: Alia updates it. It sets the first and last name if the visitor gave them, and adds an email address or phone number only if the customer doesn't already have one. Alia never replaces contact details already on the customer.

A signup creates a customer whether or not the person ever buys anything. To collect a last name, add a Last name input to your popup's form.

Marketing consent

Alia writes consent for each channel separately:

  • Email: when a visitor gives an email address, the customer is marked as subscribed to email marketing, with the opt-in level "confirmed opt-in."

  • SMS: when a visitor gives a phone number, the customer is marked as subscribed to SMS marketing, with the opt-in level "confirmed opt-in."

Alia only ever writes "subscribed." It never changes a customer to "not subscribed," so consent it doesn't write stays as it was in Shopify. If Alia knows someone unsubscribed from a channel, for example because your SMS platform reported an opt-out, it doesn't mark them as subscribed to that channel.

Consent is stored in two places: on the Shopify customer and in your connected email or SMS platform.

Customer tags

With Tag customers on, Alia adds these tags to the customer:

Tag

When it's added

Alia

Every customer Alia creates or updates from a signup

The popup's name, exactly as written, spaces included

When the visitor submits a form that subscribes them right away

The reward's title, such as 10% off

When the visitor claims a reward

The answer they chose

When the visitor answers a survey or quiz question

A two-letter country code, such as US

Only if you choose a source in Tag customer country

A few things to know:

  • Quiz answers: the tag holds only the answer text, not the question. For a question with several answers, only the first one becomes a tag. Your email or SMS platform gets the full question and every answer.

  • Popup name: the tag is only added when the form subscribes the visitor right away. If Immediately subscribe users to CRMs is off for that form, the customer still gets the Alia, reward, and quiz tags, but not the popup name. Give each popup a clear, distinct name, since it becomes a tag.

  • Timing: if a visitor answers a question or claims a reward before Alia has created their customer, Alia adds the tag once the customer exists.

  • Tags are only added: Alia never removes tags, including ones it added earlier.

💡 Note: Alia can't write to Shopify customer metafields, and targeting can't read metafields either. Alia writes tags and marketing consent only.

Order tags

With Tag driven orders on, Alia adds the tag Alia to every order that uses a discount code from an Alia reward. Use it to filter orders in Shopify.

Change what Alia writes to Shopify

  1. In Alia, go to Integrations and find the Shopify card.

  2. Select Edit to open Edit Shopify Integration.

  3. Choose your settings:

    • Tag customers: add tags to customers who sign up through Alia. On by default.

    • Tag driven orders: add the Alia tag to orders that use an Alia discount code. On by default.

    • Tag customer country: choose Don't tag (the default), Geographic country (from IP address), or Storefront country (from Shopify). This is unavailable while Tag customers is off.

  4. Select Save.

Tag customers turns all Alia customer tags on or off together. To keep some tags and not others, leave it on and remove the tags you don't want in Shopify. Turning it off stops new tags, but tags already on customers stay until you remove them.

Disable on the Shopify card stops Alia from creating and updating Shopify customers. We recommend leaving the integration on, even if you use an email or SMS platform.

Show different steps to existing customers

Because Alia checks Shopify when someone signs up, a form can branch on what Shopify knows. In the form's When form is submitted settings, Branch if user is already... has a Shopify user option:

  • Already exists: a Shopify customer with that email address or phone number already existed.

  • Has tag: the customer has a tag you name.

  • Has made an order: the customer has placed at least one order.

These branches need the form to subscribe right away, so leave Immediately subscribe users to CRMs on for that form.

Frequently asked questions

Are survey and quiz answers sent to Shopify?

Yes, as customer tags, while Tag customers is on. They're also sent to your email or SMS platform as properties. These are two separate destinations, and turning off Tag customers doesn't change what your platform receives.

Why doesn't a customer have the popup name tag?

The form they used probably has Immediately subscribe users to CRMs turned off, so the popup name tag isn't added. Also check that Tag customers is on.

A customer unsubscribed in Shopify. Will an Alia signup resubscribe them?

Signing up through a popup is a new opt-in, so Alia marks them as subscribed on the channel they gave. The exception is when Alia has itself recorded that they unsubscribed from that channel, such as an opt-out reported by your SMS platform. Then Alia leaves their consent as it is.

Why didn't Alia update the email address on an existing customer?

Alia only adds an email address or phone number to a customer who doesn't have one. It never overwrites contact details already in Shopify.

How do I tell A/B test variants apart?

Give each popup a distinct name. The popup name becomes a Shopify tag, and it's also sent to Klaviyo as alia_popup_name, so you can segment or split flows on it.

Still have questions?

Start a chat from inside the Alia app, or use the chat in our Help Center.

Did this answer your question?