# Revenue Tracking

***

## Introduction

You can track revenue and CTR on LimeChat flows and broadcasts by using our link shortening service. There are two ways of enabling to do this depending on whether you are using a Shopify brand or not.

***

## Tracking Revenue for Shopify Brands

![Screenshot 2024-12-16 at 3.31.25 AM.png](https://prod-files-secure.s3.us-west-2.amazonaws.com/7a099a4b-9d25-4c8c-8175-4ea980187a7e/caee9e5a-cbfe-4620-bd5b-38fb2636fb0e/Screenshot_2024-12-16_at_3.31.25_AM.png)

1. To enable Link Tracking, you need to first add the `*dynamic_cta_redirection*` feature flag for your account from: <https://flow-builder.limechat.ai/admin/account/featureflag/add/>
2. Once that is done, every time you create a template with a dynamic url the url in the template is replaced with `https://buy.limechat.ai/<>`
3. The URL entered originally to create the template is stored as the ‘Redirect URL’ which is the URL where the user would be eventually redirected to.
4. This URL can be edited by clicking on the CTA button in the template node, click on the green icon at the end of the URL shown, and then adding the Redirect URL.

![Screenshot 2024-12-16 at 3.38.53 AM.png](https://prod-files-secure.s3.us-west-2.amazonaws.com/7a099a4b-9d25-4c8c-8175-4ea980187a7e/c69a6a16-c677-4204-a26e-c18ead815ef7/Screenshot_2024-12-16_at_3.38.53_AM.png)

![Screenshot 2024-12-16 at 3.39.03 AM.png](https://prod-files-secure.s3.us-west-2.amazonaws.com/7a099a4b-9d25-4c8c-8175-4ea980187a7e/75d20670-7729-4102-9519-07e79dad8407/Screenshot_2024-12-16_at_3.39.03_AM.png)

***

## Tracking Revenue for non-shopify brands

**Pre-requisites:**

1. Confirmed order event is required.
2. Order confirmation event must include currency.
3. Dynamic CTA attribution must be enabled for the account.

**How It Works:**

1. We’ll track clicks when users interact with broadcasts or automated flows.
2. If we receive an order placed event for that number within X (configurable) days, it will be attributed and displayed in the analytics screen.

***

## Steps to Configure Influenced Revenue in CVF

1. Go to [Influenced Revenue Configuration](https://flow-builder.limechat.ai/admin/conversational_flows/influencerevenueconfig/).
2. Click on **Add**.
3. Select the account for which you want to set up Influenced Revenue via CVF.
4. Choose the event for which you want to record Influenced Revenue.
5. In the **Config** section, map the price field, order ID field, and currency field based on the data received in the event.

```json
	{
			"price_field":"total_amount", 
			"order_id_field": "order_id", 
			"currency_field" : "currency"
	}
```

![Untitled](https://prod-files-secure.s3.us-west-2.amazonaws.com/7a099a4b-9d25-4c8c-8175-4ea980187a7e/01f76241-a37d-42a3-833c-c3ad9fa748ac/Untitled.png)

***

## How to Debug?

1. If you have interacted with the campaign, check [Link tracking table](https://metabase.limechat.ai/question#eyJkYXRhc2V0X3F1ZXJ5Ijp7ImRhdGFiYXNlIjo4MywidHlwZSI6InF1ZXJ5IiwicXVlcnkiOnsic291cmNlLXRhYmxlIjo1NjI3LCJmaWx0ZXIiOlsiYW5kIixbIj0iLFsiZmllbGQiLDY0NDM2MCxudWxsXSx0cnVlXSxbIj0iLFsiZmllbGQiLDY0NDM2MSx7ImJhc2UtdHlwZSI6InR5cGUvSW50ZWdlciJ9XSwxMDc5OCwyNzQ3M11dfX0sImRpc3BsYXkiOiJ0YWJsZSIsInZpc3VhbGl6YXRpb25fc2V0dGluZ3MiOnt9LCJvcmlnaW5hbF9jYXJkX2lkIjpudWxsLCJ0eXBlIjoicXVlc3Rpb24ifQ==) with helpdeskID. If your entry is recorded go to step2
2. Place an order and check if order confirm event was received
3. If for your number entry is there in both the tables then revenue should be visible in UI


---

# 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://limechatai.gitbook.io/limechat-product-guide/whatsapp-marketing/flows/revenue-tracking.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.
