# Journey goals and revenue

> Decide what counts as success for a journey, how long after a message an order is credited to it, and when a journey stops for a contact.

URL: https://docs.lemuai.com/automation/goals-and-links
For: Everyone
Checked against LemuAI app version 1.0.12
Related: [Link Click Tracking](https://docs.lemuai.com/messaging/link-tracking), [Sending Limits](https://docs.lemuai.com/settings/sending-limits), [Journey Reports](https://docs.lemuai.com/automation/reports), [Dashboard](https://docs.lemuai.com/dashboard/overview)

A journey's report and the [Dashboard](https://docs.lemuai.com/dashboard/overview) show orders and revenue credited to your messages and calls. This page explains how that credit works and the journey settings that change it. The settings are in the journey editor's settings dialog (**Workflow Settings**).

## How an order is credited

1. An order arrives as a **conversion event** (by default `Purchase`, from Shopify, the [tracking snippet or SDKs](https://docs.lemuai.com/website-pixel/standard-events), or the [events API](https://docs.lemuai.com/api-reference/events/trigger)), or as a new record of a record type that holds orders.
2. LemuAI looks for the **last** journey or campaign message the contact got, on any channel, within that channel's **attribution window** (default: WhatsApp 72 hours, email 120 hours, calls 72 hours, SMS 24 hours).
3. If there is one, the order and its value are credited to that message, its journey or campaign, and its channel.

Details:

- An answered call counts as a message; an unanswered one doesn't.
- One order counts once, however many events report it (matched by `order_id`).
- Orders whose credited message had a link clicked first are marked as "after a click".

The workspace's conversion events and windows are set under **Settings → Sending Limits → Revenue attribution** (see [Sending Limits](https://docs.lemuai.com/settings/sending-limits)).

## A journey's own goal

Turn on **Count this journey's own conversions** to give the journey its own goal events, for example `Lead` for a lead-generation journey, or two purchase events from different stores. The journey's report then counts these events in place of the workspace's. Revenue on the Dashboard still counts only the workspace's conversion events.

## A journey's own attribution windows

Turn on **Own attribution windows** to set, per channel, how long after one of this journey's messages an order is credited to it. Channels you leave out use the workspace's windows. Use a short window for urgent messages (cart reminders: 24 hours) and a longer one for slow decisions.

## Link clicks

**Track link clicks** (on by default) sends links in the journey's WhatsApp messages and emails as short links that count clicks. A click gives the contact a `link_clicked` event (journeys can start on it, wait for it with **Wait for reaction**, or exit on it), marks the message **clicked**, and on your own website links the visit to the contact, so a purchase there is credited even if they never sign in. Bots and link previews aren't counted. Template link buttons, UTM tags and reports are explained in [Link Click Tracking](https://docs.lemuai.com/messaging/link-tracking).

## Ending a journey early

A journey stops for a contact when:

- they reach an **End** step,
- one of the trigger's **Exit events** happens (for example `Purchase` in a cart reminder journey), or
- they leave the segment the journey started from (**Exit when the contact leaves the segment**, for **Enters or leaves a segment** triggers).

Only runs that are queued or waiting are stopped; a run in the middle of a call or send finishes that step. The run shows `exited: {reason}`. See [Branching and Timing](https://docs.lemuai.com/automation/branching-and-timing#exit-events).

## Example: abandoned cart

- Trigger: **Events** → `InitiateCheckout`, with **Exit events** `Purchase`.
- **Track link clicks** on (the default), **Own attribution windows** WhatsApp 24 hours.
- Steps: Wait 1 hour → WhatsApp reminder with the cart link → **Wait for reaction** (`link_clicked`, 6 hours) → no reaction: email.

People who buy leave the journey right away; orders within 24 hours of the WhatsApp message are credited to it.
