# Newsletter keys

Locksmith allows you to integrate directly with either **Mailchimp** or **Klaviyo**. When setup, Locksmith will ask customers for an email address when they arrive on a locked page. Once the email is entered, a customer is immediately granted access, and Locksmith will automatically send the subscription information to the corresponding service.

![](https://277214568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUeGWHuijBPr8Og1Gta%2Fuploads%2FVhOMcMvDJNp6M18zW5kQ%2FScreen%20Shot%202022-07-29%20at%202.12.12%20PM.png?alt=media\&token=9b03443f-e10b-4517-b0c3-e5cad8a8f915)

{% hint style="info" %}
**Note**: Mailchimp and Klaviyo both have their own policies regarding double opt in, and it is typically enabled by default. This setting is adjusted in your Mailchimp or Klaviyo dashboards - it is not a setting that is controlled by Locksmith.
{% endhint %}

## Mailchimp

Detailed information on how to setup Mailchimp can be found here:

{% content-ref url="../../tutorials/more/mailchimp" %}
[mailchimp](https://www.locksmith.guide/tutorials/more/mailchimp)
{% endcontent-ref %}

## Klaviyo

If using Klaviyo, you have the option to simply request that visitors subscribe in order to gain access:

{% content-ref url="../../tutorials/more/klaviyo" %}
[klaviyo](https://www.locksmith.guide/tutorials/more/klaviyo)
{% endcontent-ref %}

Or, you can also use Klaviyo to grant access only to those who are *already* subscribed to a specific list in your Klaviyo account:

{% content-ref url="../../tutorials/more/use-a-klaviyo-list-or-segment-as-an-access-control-list" %}
[use-a-klaviyo-list-or-segment-as-an-access-control-list](https://www.locksmith.guide/tutorials/more/use-a-klaviyo-list-or-segment-as-an-access-control-list)
{% endcontent-ref %}

## Using your default Shopify mailing list

Shopify ships out of the box with a marketing mailing list service. If you would like to use Locksmith to grant access to those who have already subscribed to this, you can do so using a custom Liquid key condition.&#x20;

This is slightly different than the above options, in that **it will only grant access to a signed in customers - if the customer is already subscribed**! To start, check out our guide on this here:

{% content-ref url="custom-liquid-key-condition-basics" %}
[custom-liquid-key-condition-basics](https://www.locksmith.guide/keys/more/custom-liquid-key-condition-basics)
{% endcontent-ref %}

The condition you're looking for is:

`{% if customer.accepts_marketing %}`

When set up, this will present the customer will the regular prompt to sign in (as opposed to the subscription prompt):

![](https://277214568-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MUeGWHuijBPr8Og1Gta%2Fuploads%2FpYpzWMENw8L51TyGuVAF%2FScreen%20Shot%202022-07-27%20at%202.45.59%20PM.png?alt=media\&token=431ae88b-7ff6-4691-b116-04d2defc4a52)

If desired, you can adjust your message prompt to direct your customers to the page footer(in most stores) to subscribe to your newsletter. More information on editing messages here:

{% content-ref url="../../tutorials/more/customizing-messages" %}
[customizing-messages](https://www.locksmith.guide/tutorials/more/customizing-messages)
{% endcontent-ref %}

## Using other mail services

Locksmith does not support other mail services at this time.&#x20;

However, if you have a mail service that automatically tags customers that are subscribed, you can use Locksmith to check for a customer tag:

{% content-ref url="../customer-account-keys" %}
[customer-account-keys](https://www.locksmith.guide/keys/customer-account-keys)
{% endcontent-ref %}

Please feel free to contact us via email at **<team@uselocksmith.com>** if you have any questions!

### Related pages:

{% content-ref url="../../faqs/more/why-isnt-my-remote-key-condition-working" %}
[why-isnt-my-remote-key-condition-working](https://www.locksmith.guide/faqs/more/why-isnt-my-remote-key-condition-working)
{% endcontent-ref %}
