> ## Documentation Index
> Fetch the complete documentation index at: https://razorpay-881012b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Automatic Customer Tagging for Retargeting

> Razorpay SSO automatically tags customers in Shopify to enable personalised retargeting campaigns and targeted marketing workflows.

<div style={{display:"flex",flexWrap:"wrap",alignItems:"center",gap:"0.35rem 0.9rem",border:"1px solid rgba(128,128,128,0.28)",borderRadius:"0.5rem",padding:"0.45rem 0.75rem",margin:"0 0 1.25rem",fontSize:"0.875rem"}}>
  <span style={{fontWeight:600}}>Available in</span>
  <span>🇮🇳 India</span>
</div>

When customers authenticate through [Login with Razorpay (SSO)](/docs/payments/magic-checkout/login-with-razorpay) on your Shopify store, specific tags are automatically assigned to their profiles. These tags provide automation capabilities that enhance your marketing efforts and improve customer engagement.

<AccordionGroup>
  <Accordion title="Advantages">
    * **Zero Additional Cost**: This feature is included with your Magic Checkout integration.
    * **Boost Revenue**: Create targeted marketing campaigns that convert more effectively.
    * **Time Saving**: Automate customer journeys that would otherwise require manual segmentation.
    * **Seamless Integration**: Works with your existing marketing tools and Shopify workflows.
  </Accordion>
</AccordionGroup>

## List of Tags

**Login with Razorpay** automatically applies the following tags to customer profiles in Shopify:

| Tag                      | Description                                                                             |
| ------------------------ | --------------------------------------------------------------------------------------- |
| **MAGIC\_LOGIN\_AUTO**   | Applied when returning customers are automatically identified without additional input. |
| **MAGIC\_LOGIN\_MANUAL** | Applied when customers manually authenticate using an OTP.                              |
| **LOGIN\_TIMESTAMP**     | Records the exact store visit time in ISO format.                                       |
| **MAGIC\_CUSTOMER**      | Identifies customers whose accounts were created through Razorpay Magic.                |

### Example: Customer Journey with Tags

These tags enable automation possibilities for your store. Create personalised retargeting flows based on login behaviour:

* Send WhatsApp messages to customers tagged with `MAGIC_LOGIN_AUTO` who have not completed a purchase in 7 days.
* Offer special promotions to customers with `MAGIC_LOGIN_MANUAL` tags who abandoned their carts.
* Use `LOGIN_TIMESTAMP` to trigger time-sensitive offers after login events.

#### Example Setup

This example demonstrates how to create an automated campaign to re-engage customers who have not placed orders recently.

<iframe width="560" height="315" src="https://www.youtube.com/embed/hrXRNUWjIyU" title="Example: Customer Journey with Tags" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen />

Follow the steps given below:

1. **Customer Identification**:
   * Customer logs in (automatically/manually through Magic).
   * System automatically assigns `Magic_login` tag.
2. **Segment Creation**:
   * Create segment: Customers who have not placed an order since February.
   * This segment dynamically updates as customer behaviour changes.
3. **Campaign Rule**: If customer has **Magic\_login** tag and customer belongs to **No orders since February** segment then send an **Email**.

#### Additional Campaign Possibilities

The system supports unlimited automation combinations based on your requirements. Common use cases include:

<Tabs>
  <Tab title="Product Interest Campaigns">
    * Customer identified + viewed specific items → send targeted coupon.
    * Customer identified + browsed category multiple times → send category-specific offers.
  </Tab>

  <Tab title="High-Value Customer Recovery">
    * Customer identified + no order in 3 days → send premium re-engagement message.
    * Customer identified + high purchase frequency + recent inactivity → send personalised offers.
  </Tab>

  <Tab title="Behavioural Trigger Campaigns">
    * Customer identified + 4 website visits in 7 days + abandoned checkout + no order in 5 days → send discount coupon.
    * Customer identified + repeated product views + no purchase → send limited-time offer.
  </Tab>
</Tabs>

## Compatible Automation Tools

Leverage Razorpay Shopify tags with various automation platforms:

* **Shopify Flow**: Create conditional workflows using the login tags as triggers.
* **Zapier**: Connect to hundreds of apps based on tag events.
* **WhatsApp Business Solutions**: Trigger customer communications based on tag status.
* **Email Marketing Tools**: Create segments based on login behaviour.

For advanced use cases, combine multiple tags to create targeted customer segments with specific behaviours and attributes.

### Related Information

[Customer Analytics](/docs/payments/magic-checkout/login-with-razorpay/customer-analytics)
