> AI agents: this is one page of nextanalytica's docs. The full index for agents: https://nextanalytica.app/llms.txt

# Google Tag Manager revenue tracking

> Record orders in a Google Tag Manager app, from the browser or from your server, so revenue ties to the visit, channel and campaign it came from.

Updated: 2026-12-01

With Google Tag Manager, orders you already push to the dataLayer as `purchase` arrive in nextanalytica as orders, with their `transaction_id`, value and currency. No new tag needed.

## How does it look?

```js
dataLayer.push({ event: "purchase", ecommerce: { transaction_id: "A-10492", value: 129.9, currency: "EUR" } });
```

The `transaction_id` makes a repeated push count once. See [Events from Google's dataLayer](/docs/tracking/datalayer).

## What can you ask your agent?

- "Revenue by channel this month, against last month."
- "Which campaigns brought orders?"

## Next steps

- [Google Tag Manager analytics](/docs/platforms/gtm)
- [Revenue tracking](/docs/learn/revenue-tracking)

Canonical address: https://nextanalytica.app/docs/platforms/gtm/orders
