> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bouquet-inc.com/llms.txt
> Use this file to discover all available pages before exploring further.

# See sales from favorites in GA4

> How to see purchases and revenue from sessions in which customers opened a page from their favorites list, using an exploration in your store's Google Analytics 4 (GA4), and how those sessions are identified.

## How it works

MultiLikes automatically adds a `multilikes` URL parameter to links in the favorites list. GA4 records the URL of each page that is opened, parameter included. Narrow your data down to sessions that opened a page with the parameter, and you can see purchases and revenue from favorites.

* There is nothing to set up in GA4, in your theme, or in the app. If your store already uses GA4, all you need to do is create an exploration
* Because this is not a UTM parameter, GA4 source and medium reporting stays the same. The results of your original traffic sources, such as ads and search, are kept as they are

## How sessions from favorites are identified

### Links that get the parameter

The parameter is added to links in the favorites list that point to pages in your store. Each type of favorite has its own value.

| Type of favorite | Links that get the parameter | Value |
| - | - | - |
| Product | Product image, product name, and "View details" | `wishlist-product` |
| Product | The cart that opens after the customer adds the product to the cart | `wishlist-cart` |
| Collection | Each item link in the list | `wishlist-collection` |
| Page | Each item link in the list | `wishlist-page` |
| Article | Article image and title | `wishlist-article` |
| Brand | Link to the brand's collection, and "View details" | `wishlist-brand` |
| Store | "View details" | `wishlist-store` |

For example, opening a product from the favorites list leads to a URL like `/products/sample-item?multilikes=wishlist-product`.

### Links that do not get the parameter

To count only purchases that come from the favorites list, the parameter is not added to:

* Links to Google Maps
* "View details" links that point to a site outside your store
* Links on pages that list all brands or all stores (these are not favorites lists)

### How purchases are counted

* A session that opened at least one page with the parameter counts as a session from favorites
* All purchases in that session are counted, including products other than the one opened from the favorites list. This captures the sales that come from customers browsing your store after starting from their favorites
* Only purchases made in the same session in which the customer opened a page from the favorites list are counted. Purchases made later (by default, GA4 starts a new session after 30 minutes of inactivity) or on another device are not counted, so the figures come out somewhat lower than your actual sales from favorites

## Creating the exploration

In GA4 **Explore**, build a report that shows purchases and revenue from favorites sessions by day.

**1. Create a free-form exploration**

In GA4, open **Explore** from the left menu and choose **Free form**.

**2. Create a segment for favorites**

Click **+** next to **Segments** and choose **Session segment**. Click **Add new condition**, choose **Page location**, set the condition to **contains**, and enter `multilikes=wishlist`. Name the segment, for example "From favorites", and save it.

**3. Add dimensions and metrics**

Click **+** next to **Dimensions** to add **Date**, and **+** next to **Metrics** to add **Sessions**, **Ecommerce purchases**, and **Purchase revenue**.

**4. Build the table**

Drag **Date** to **Rows** and the three metrics to **Values**. Drag your "From favorites" segment to **Segment comparisons** to see the figures for sessions from favorites.

Remove the segment from **Segment comparisons** to go back to figures for all sessions. This lets you see how much of your store's total sales comes from favorites.

### By type of favorite

Create segments with the full value to compare types of favorites. For example, to see purchases from product favorites, use sessions where **Page location** contains `multilikes=wishlist-product`. You can compare up to four segments at a time in **Segment comparisons**.

## Seeing sales from notification emails

To also see sales from [restock alert](/en/apps/multilikes/flows/restock-notification) and [price drop alert](/en/apps/multilikes/flows/price-drop-notification) emails, add UTM parameters to the links in those emails.

Example: `?utm_source=multilikes&utm_medium=email&utm_campaign=restock`

In GA4, choose `multilikes / email` under **Session source / medium** to see purchases and revenue from sessions that started from notification emails. Use a different `utm_campaign` for each type of notification to see restock alerts and price drop alerts separately.

## Ideas

* Compare sales from favorites before and after you change where the favorite button appears or how customers reach their favorites list
* Compare which types of favorites (products, brands, stores, and more) drive sales, and decide where to focus your campaigns
* Use sales from favorites in internal reports and to measure your campaigns

## Related analytics

To compare favorite counts and sales by SKU or product type, see [Reading the Favorites analytics screen](/en/apps/multilikes/analytics/admin-report).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.