# How the unsubscribe link works? Learn how XFlow’s unsubscribe link works, why it matters, and how to choose and customize the unsubscribe experience for your restock alert emails. ## What is an unsubscribe link? An unsubscribe link is a clickable link included in your email that allows recipients to **opt out of receiving future emails** from you. When a customer clicks this link, they are removed from a specific email list. ## Why is it important? Including an unsubscribe link is essential for several reasons: * Legal compliance (e.g., CAN-SPAM, GDPR, and other email regulations) * Improved deliverability by reducing spam complaints * Better sender reputation * Respecting customer preferences * Cleaner email lists with more engaged subscribers Without an unsubscribe option, emails may be marked as spam, which can harm your domain reputation. ## Manage unsubscription option 1. Go to **Email templates > Email settings**. 2. Under **Unsubscription option**, choose your preferred option: * **Unsubscribe single product:** The customer stops receiving restock alerts for only the product referenced in the email. Alerts for other subscribed products remain active. * **Unsubscribe all products (global):** The customer stops receiving all restock alerts from your store. 3. Click **Customize** to personalize your unsubscribe page. 4. Click **Save** to save your changes. XFlow provides one **Unsubscribe link** in each email. You can only use **one unsubscription option at a time**: unsubscribe from a single product or from all products. ![](https://docs-assets.foxecom.app/xflow-app/154b60a2-5e8c-410c-9587-56de96d2a87f.png) ## Customize your unsubscribe experience Click **Customize** under **Unsubscription option** to open the **Unsubscribe & preferences** editor. Here, you can customize the branding and content shown to customers when they unsubscribe from restock alerts. ### Unsubscribe all products ![](https://docs-assets.foxecom.app/xflow-app/6eff89b1-50c7-4d49-86e5-1b3bf69db1a0.png) When **Unsubscribe all products** is selected, customers can unsubscribe from all back-in-stock alerts from your store at once. You can customize: * **Branding:** Logo, logo width, and brand color. * **Page content:** Heading, body, and disclaimer. You can use **`{product}`** and **`{variant}`** as placeholders where applicable. XFlow automatically replaces them with the relevant product or variant information. Customers can then click **Unsubscribe all** to stop receiving all restock notifications. ### Unsubscribe single product ![](https://docs-assets.foxecom.app/xflow-app/1c827e73-535b-46e1-8a90-4cd84c24fb15.png) When **Unsubscribe single product** is selected, customers can unsubscribe from the specific product referenced in the email. You can customize: * **Branding:** Logo, logo width, and brand color. * **Unsubscribe page:** Heading, body, and disclaimer. You can use **`{product}`** and **`{variant}`** as placeholders where applicable. XFlow automatically replaces them with the relevant product or variant information. * **Manage preferences:** Heading, body, and disclaimer for the page where customers can review and manage their product subscriptions. In **Unsubscribe single product**, customers can also open **Manage preferences** to review and update all their restock subscriptions. From here, they can: * Keep or remove individual product alerts * Click **Save preferences** to apply changes * Click **Unsubscribe all** to stop all restock alerts ![](https://docs-assets.foxecom.app/xflow-app/cc3bbc9c-3b0d-4114-a106-e74e1c4ec7f9.png) ## How to add an unsubscribe link ### Open the email template builder Go to the **Email Template Builder**, highlight the text you want to insert a link into, then click the icon in the text editor. ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20\(88\)_HIkde3VJ.jpg) ### Select the unsubscribe link Select the **Unsubscribe link (global)** type, then click Update. ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20\(87\)_JB0mBqri.jpg) ### You're all set - the unsubscribe link is now added ✨ The unsubscribe link will now appear in your email content. Once saved, it will automatically generate a working unsubscribe link in the email footer when sent to customers. ![image](https://docs-assets.foxecom.app/xflow-app/XFlow%20docs%20screenshot%20\(89\)_Wxhg6p10.jpg) ##