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

# Events from Google's dataLayer

> The tag reads the events your site already pushes for Google Tag Manager, such as purchases and sign-ups.

Updated: 2026-11-17

If your site uses Google Tag Manager or gtag.js, it already pushes events to `window.dataLayer`. The tag reads them too, so your purchases, sign-ups and leads arrive without a new line of code. The work you did for Google counts twice.

## Which events does the tag read?

Both shapes work: Google Tag Manager's objects and gtag's commands.

```js
dataLayer.push({ event: "purchase", ecommerce: { transaction_id: "A-10492", value: 129.9, currency: "EUR", items: [/* … */] } });
gtag("event", "sign_up", { method: "Google" });
```

| Event | Becomes |
| --- | --- |
| `purchase` | An order, with its `transaction_id`, value and currency |
| Any other event (`sign_up`, `generate_lead`, `add_to_cart`…) | A custom event of that name, with how many items, the sign-in `method`, value and currency |

## What does the tag leave out?

- `page_view` and Google's own events (`gtm.js`, `gtm.click`…): the tag counts page views itself.
- Everything else in the push: `user_data`, emails, phones, addresses and other parameters never leave the page.
- More than **100** events from one page load.

Canonical address: https://nextanalytica.app/docs/tracking/datalayer
