# How to setting up Klaviyo's browse and cart abandonment flows

## Setting up Klaviyo's flows with TagFly

Merchants commonly utilize two or three of these Klaviyo flows: browse abandonment, cart abandonment, and checkout abandonment. These flows are generally driven by client-side tracking and events. TagFly can enhance the performance of these flows by implementing our server-side tracking of events and enriching sessions.

To enhance the performance of browse, cart, and checkout abandonment flows using TagFly's server-side tracking, follow these streamlined steps:

1. **Duplicate Existing Flows**: Create server-side versions by cloning each client-side flow.
2. **Update Triggers**: Switch the trigger on the new server-side flows to TagFly's server-side trigger.
3. **Implement Profile Filters**: Add filters to the server-side flows to exclude customers already enrolled in the corresponding client-side flows.
4. **Develop Custom Reports**: Construct reports to analyze and compare the efficiency of client-side flows against the enhancements from TagFly-powered server-side flows.

**Standard Flow Triggers**:

* Browse Abandonment: "Viewed Product"
* Cart Abandonment: "Added to Cart"
* Checkout Abandonment: "Started Checkout"

**TagFly Server-Side Event Triggers**:

* Browse Abandonment: "Viewed Product - TagFly SS"
* Cart Abandonment: "Added to Cart - TagFly SS"
* Checkout Abandonment: "Begin Checkout - TagFly SS"

After duplicating and updating the triggers, ensure you have at least four distinct flows:

* **Client-Side Browse Abandonment Flow**: Triggered by "Viewed Product"
* **Client-Side Cart Abandonment Flow**: Triggered by "Added to Cart"
* **Server-Side Browse Abandonment Flow**: Triggered by "Viewed Product - TagFly SS"
* **Server-Side Cart Abandonment Flow**: Triggered by "Added to Cart - TagFly SS"

Finally, ensure to include a profile filter in the server-side flows to prevent customers from being enrolled in both the server-side and client-side flows, maintaining exclusivity in flow participation.

## Configuring flows

To evaluate the revenue impact and confirm the effectiveness of TagFly's performance, follow these steps to set up your flows:

* Navigate to the Flows section.
* Next, locate a flow that uses the "Added to Cart" event as its trigger.

<figure><img src="https://1144253429-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6MBfYCwydxsHKqFQVY7j%2Fuploads%2FK9KKllk9KHfmazxpRyNr%2Fimage.png?alt=media&#x26;token=fdc6d890-3b8a-4bf9-bc20-94ad23b70538" alt=""><figcaption></figcaption></figure>

* Next, we aim to create a clone of this flow that activates only if the user doesn't trigger your existing flow. Click "Clone" on your existing flow.

<figure><img src="https://1144253429-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6MBfYCwydxsHKqFQVY7j%2Fuploads%2FSWb07jx7nfx3ZSTiHV5B%2Fimage.png?alt=media&#x26;token=cf0199e8-fc14-4bfb-bae6-e77138c2b8a9" alt=""><figcaption></figcaption></figure>

* When the Clone window appears, select the "Added to Cart - TagFly SS" event as shown, and update the name of the flow accordingly.

<figure><img src="https://1144253429-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6MBfYCwydxsHKqFQVY7j%2Fuploads%2FWNk9SiFVThni5lCF3uOh%2Fimage.png?alt=media&#x26;token=b1e50563-370a-4b56-979f-6c807ab4f4e8" alt=""><figcaption></figcaption></figure>

* Click "Clone Flow." Once inside the flow, add an additional filter to exclude users who will trigger your existing flow.

<figure><img src="https://1144253429-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6MBfYCwydxsHKqFQVY7j%2Fuploads%2FRDS3gfb4GfbgAQBPHF3G%2Fimage.png?alt=media&#x26;token=c58fb225-29a6-4fee-9601-fb562f8618bf" alt=""><figcaption></figcaption></figure>

* Ensure that you filter out your legacy event, not the TagFly server-side event.&#x20;
* You now have a new flow that can run alongside your existing flow.

{% hint style="info" %}
There's no need to maintain two dual flows; this setup is simply to verify that the server-side events function correctly and to measure the additional revenue generated.
{% endhint %}
