# How do I set up analytics and tracking?

Oddle Shop has built-in integrations with Google Analytics 4 and Facebook Pixel. You can connect either or both directly in Merchant Admin — no custom scripts required.

***

## Google Analytics 4

### Before you start

* [Create a Google Analytics 4 property](https://support.google.com/analytics/answer/9304153?hl=en) if you don't have one.
* Remove any existing Google Analytics scripts from your shop. Running more than one instance causes inaccurate tracking.
* Find your Measurement ID: in Google Analytics, go to **Admin > Data Streams**, select your web stream, and copy the ID. It starts with `G-`.

### Add your Measurement ID

1. In Merchant Admin, go to **Online Ordering > Settings**.
2. Under **Shopping Cart Tracking**, find **Google Analytics Tracking ID** and paste your Measurement ID.
3. Click **Save**.

{% hint style="info" %}
It can take up to 24 hours for data to appear in your Google Analytics dashboard after connecting.
{% endhint %}

### Events tracked automatically

Oddle sends the following events to Google Analytics 4:

| Event            | When it fires                       |
| ---------------- | ----------------------------------- |
| `page_view`      | Customer views a page               |
| `view_item`      | Customer opens a product page       |
| `add_to_cart`    | Customer adds an item to their cart |
| `view_cart`      | Customer opens their cart           |
| `login`          | Customer logs in                    |
| `begin_checkout` | Customer reaches checkout           |
| `purchase`       | Customer completes an order         |

### Why might numbers differ from Oddle's analytics?

Google Analytics 4 and Oddle use different counting methods. Some common reasons for discrepancies:

* Customers using ad blockers or with cookies disabled
* Google Analytics filters out bots and crawlers, which Oddle may count differently

***

## Facebook Pixel

Facebook Pixel lets you build advertising audiences and measure how your ads drive orders on your shop.

### Before you start

1. Set up a [Facebook Ads Manager account](https://www.facebook.com/ads/manage) if you don't have one.
2. Create a Pixel in Ads Manager, or use an existing one. See [Facebook's documentation](https://www.facebook.com/business/help/314143995668266) for help.
3. Find your Pixel ID: in Ads Manager, open **Events Manager** and copy the ID listed under your site name.

![](/files/r6DIGRu9CEVUrBwmxgGI)

### Add your Pixel ID

1. In Merchant Admin, go to **Online Ordering > Settings**.
2. Under **Shopping Cart Tracking**, find **Facebook Pixel ID** and paste your Pixel ID.
3. Click **Save**.

![](/files/eX9WHjDiNWL3fnTyPxPD)

{% hint style="info" %}
Once your Pixel ID is saved here, Oddle handles all event tracking automatically. You don't need to add any separate event scripts.
{% endhint %}

Oddle automatically sends 6 standard Facebook Pixel events when customers interact with your shop:

![](/files/Px0gyW80eqFR5IYcwrRz)

***

## Shop analytics in Merchant Admin

Beyond third-party tools, Merchant Admin has a built-in analytics module. Access it at **Analytics** from the main menu.

### Overview

The Overview page shows a summary across your stores:

* **Total Sales** — revenue after discounts, including delivery fees and taxes
* **Visitors** — unique users who landed on your shop (different from sessions)
* **Orders** — total number of orders received

Use the **Data Type** and **Date Range** filters to view data by delivery date or submission date.

![](/files/iQGeYcuQhMcGW4qin4db)

### Visitor Acquisition

See where your traffic comes from — broken down by referrer source (social, direct, search, etc.).

* **Traffic Over Time** shows a stacked view of all sources together.
* **Individual Component view** shows each source separately, useful for measuring the impact of specific campaigns.

The Conversion Funnel shows the drop-off at each step from landing on your shop to completing a purchase, measured by sessions.

![](/files/OP3Oa2Qnyfsomplyiu26)

### Sales

Sales reports break down revenue across your stores:

* **Gross Sales** — subtotal of all orders
* **Discounts** — value applied from promotions (excludes free items)
* **Delivery Fees** — fees paid by customers
* **Tax** — taxes and charges paid by customers

You can also view sales by product, category, and promotion to see which items and campaigns drive the most revenue.

### Inventory

The Inventory report shows itemised breakdowns for confirmed orders, useful for daily prep planning. Only orders in **Confirmed** status appear — pending and delivered orders are excluded.

### Customer by Sales

This report shows all customers on your account with their purchase history:

* **Days Since Last Purchase**
* **Number of Orders**
* **Total Amount Spent** (including delivery and taxes)

### Downloading reports

* To export as PDF or PNG: click **Export** at the top right of any report.
* To export as Excel or CSV: click the **Gear** icon at the top right and select your format.


---

# 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://www.oddle.me/docs/help-center/oddle-shop/how-do-i-set-up-analytics-and-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.
