# Shopify logged in user: target logged-in customers or guests

Canonical URL: https://support.optimonk.com/en/articles/shopify-logged-in-user

With the **Shopify logged in user** rule you can show a campaign only to visitors who are logged in to your Shopify store — or only to guests, for example with an offer to create an account.

In the rule picker it appears as **Shopify logged in user** — *Logged-in or guest Shopify customers*.

---

## How do I set it up?

1. Open **Campaigns** in the left menu and click the campaign you want to target.
2. Open the campaign's **Settings** tab.
3. Under **Who should see the popup**, click **Add new rule**.
4. Under **Webshop**, pick **Shopify logged in user**.
5. Next to **The visitors who are**, choose **logged in** or **not logged in**. A new rule starts with **not logged in**.
6. Click **Save** in the rule window, then **Save changes** in the bar at the bottom of the page.

The rule card sums it up: *Only for customers who are logged in* or *Only for customers who are not logged in*.

---

## Why don't I see this rule in the picker?

The rule only works on Shopify stores, so the picker only offers it when the campaign's domain is a Shopify store.

If a campaign already has this rule but its domain is not a Shopify store, the rule window warns you: *The campaign's domain (…) is not a Shopify store. There this rule never matches, so the campaign would be shown to nobody. Remove the rule, or run the campaign on a Shopify domain.*

---

## Good to know

- Rules are combined with AND: the visitor has to match this rule and all the other rules of the campaign.
- The rule can be added once per campaign. To change it later, click its card.
- Ideas: a "create an account" offer for guests, or a loyalty message only for logged-in customers.
