For the complete documentation index, see llms.txt. This page is also available as Markdown.

Subscribe to unlock

Let shoppers unlock content by subscribing with their email, through Shopify, Mailchimp, or Klaviyo.

Subscribe to unlock asks a visitor to enter their email address, then grants access once they subscribe (or, for a Klaviyo segment, once the app confirms they're already on your list). It's an action-based rule — like Passcode and Confirmation prompt, it doesn't have an If/Unless toggle, because the shopper unlocks the content by completing the subscribe step rather than by matching a yes/no condition.

Sami B2B Lock, Password Protect supports three email services for this rule. You pick one per rule:

  • Shopify — uses your store's native email marketing consent. No extra account or API key needed. This is the default option and has no additional cost.

  • Mailchimp — connects to your Mailchimp account with an API key so you can subscribe visitors straight into one of your audience lists.

  • Klaviyo — connects to your Klaviyo account with an API key so you can subscribe visitors into a list, or check membership against a segment.

Add the rule

  1. Open Locks and create a new lock, or open an existing one to edit it.

  2. Choose the content you want to protect. See Access rules overview for how rules fit into a lock.

  3. Click the Unlock rules tab, then in the Condition type dropdown, select Subscribe to unlock.

The Unlock rules tab with Subscribe to unlock selected in the Condition type dropdown.
Select Subscribe to unlock from the Condition type dropdown on the Unlock rules tab.
  1. Choose an Email service: Shopify, Mailchimp, or Klaviyo.

Shopify (default, no setup)

Shopify email marketing consent works out of the box — there's nothing to connect. Once selected, the app shows a note that it remembers a subscribed visitor for their current browser session and won't ask them to subscribe again until that session ends; to require re-subscription sooner or later than that, set a duration in the Grant access (optional) field below it.

The Subscribe to unlock rule with Shopify selected as the email service.
Shopify email marketing consent requires no extra setup.

Mailchimp

  1. Enter your Mailchimp API key (an API key with audience access, generated from your Mailchimp account) and click Check connection.

  2. Once connected, select which audience list the visitor should be subscribed to.

  3. Set an optional Grant access duration, the same as with Shopify.

The Subscribe to unlock rule with Mailchimp connected and an audience list selected.
Connect Mailchimp with an API key, then pick the audience list to subscribe visitors to.

Your Mailchimp API key is checked securely and is never exposed on the storefront. Once you save the lock, the key is stored encrypted.

Klaviyo

  1. Enter your Klaviyo private API key and click Check connection.

  2. Once connected, choose an audience type: List or Segment.

  3. Select the specific list or segment.

  4. Set an optional Grant access duration if you're using a list (Klaviyo segments don't use this field — see below).

The Subscribe to unlock rule with Klaviyo connected, showing the audience type selector and list or segment picker.
Connect Klaviyo, then choose whether to subscribe visitors to a list or check membership in a segment.

Shopper-facing copy

By default, shoppers who hit a Subscribe to unlock rule see:

  • Notification: "Content locked" / "Subscribe with your email to access this content."

  • Email input placeholder: "Enter email address..."

  • Button: "Subscribe"

  • Errors: "Please fill in field", "Invalid email", "Unable to subscribe. Please try again."

All of this text is editable per lock and per storefront language. See Translate lock messages.

A locked storefront page showing the Content locked card with an email field and a Subscribe button.
An unsubscribed visitor gets the subscribe card instead of the page.

Save

  1. Click Save. The rule takes effect on your storefront as soon as the app embed is enabled.

API keys for Mailchimp and Klaviyo are stored encrypted and are only ever used to check or add subscribers for this rule — see Permissions and data.

Last updated

Was this helpful?