# Abandoned Cart Push Notification

### <mark style="color:green;">Prerequisites</mark>

* You must have enabled Firebase Push Notification support for your app.

### <mark style="color:green;">How to setup Abandoned Cart Push Notification?</mark>

**1.)** Go to Add-ons --> Integrations --> Abandoned Cart Push Notification & Enable it.

<mark style="color:red;">**NOTE:**</mark> <mark style="color:red;">Please create a new version of the App e.x. 1.0.2, if the current version does not support this feature. If the previous version is live on the stores, then request a new build and submit this new version to the stores.</mark>

**2.)** Select **Cart Identifier Type**

You can select between two Types.

* **Selector:** Use this type if your cart counter element has any class or id. As you can see in the image below, cart counter is between Span tag and it has class name. If your selector is a **class** then append . at the start and if **id** then append # at the start.

  <figure><img src="/files/PP8fKZWODdz3eZQ5VCMR" alt=""><figcaption></figcaption></figure>
* **Script:** Use this type if your cart counter element does not have any class or id. Script must return `true` if cart is not empty and `false` otherwise. For example, check below example script.

```javascript
if(document.querySelector('.Header__CartDot.is-visible')) { 
    true 
} else { 
false 
}
```

**3.)** Enter **Cart Identifier.** Based on the identifier type you selected, enter identifier value in this field. If its Selector then enter your selector else enter script.

**4.)** Enter **Notification Title.** Notification title will be used as a title when push notification will be sent. Check below image.

**5.)** Enter **Notification Message.** Notification message will be used as a message when push notification will be sent. Check below image.

<figure><img src="/files/OXpZSpza7AUIVFGP7D47" alt=""><figcaption></figcaption></figure>

**6.)** Enter **Notification Schedule.** Enter comma separated values in days for your notification schedule. For example, if you will enter 1,4,5 that means if your user have abandoned cart then they will receive a notification on 1st, 4th and 5th day.

**7.)** Enter **Notification Click URL.** User will be redirected to this URL when they will click on the notification.

### <mark style="color:green;">Benefits of Sending Abandoned Cart Notifications</mark>

1. **Increased sales:** Abandoned cart push notifications remind customers of items they left in their cart, increasing the likelihood that they will return to the website and complete their purchase.
2. **Customer retention:** By sending abandoned cart push notifications, businesses can show that they value their customers and want to help them complete their purchase.
3. **Better targeting:** Abandoned cart push notifications allow businesses to target specific customers who have shown interest in a product but have not yet made a purchase, increasing the chances of conversion.
4. **Personalization:** Abandoned cart push notifications can be personalized with the customer's name, the item they left in their cart, and other relevant information to make them more effective.
5. **Cost-effective:** Abandoned cart push notifications are a cost-effective way to increase sales as compared to other forms of marketing such as email marketing, PPC campaigns, and SMS marketing.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.twinr.dev/integrations/abandoned-cart-push-notification.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
