> Send checkout and purchase events to Google Tag Manager, GA4 and Meta, ask for cookie consent, and add Meta's Conversions API.

Source: https://plandalf.com/docs/settings/tracking

Settings

# Tracking and pixels

Plandalf can report checkouts and purchases to your own analytics and ad accounts, so your campaigns get credit for the sales they bring in. Set it up under **Settings → Tracking & pixels**.

## Which steps you need

It depends on how your checkouts open. The **How your checkouts open** card at the top of the Setup tab tells you, from each checkout's page type and where buyers checked out in the last 30 days.

**Hosted**

Checkouts open on your Plandalf host and load your tags themselves. They need only your tag IDs (step 2).

**Modal** and **Fullscreen**

Checkouts open on your own website. They need the snippet on your site (step 1) as well as your tag IDs.

[![Tracking and pixels on the Setup tab: how your checkouts open, the snippet for your website, and fields for a Google Tag Manager container ID, GA4 measurement ID and Meta Pixel ID](https://plandalf.com/docs/shots/settings/tracking.webp)](https://plandalf.com/docs/shots/settings/tracking.webp)

Hosted checkouts need only your tag IDs. Checkouts on your own site also need the snippet.

## 1\. Add the snippet to your website

Skip this if all your checkouts are hosted. Otherwise, click **Copy** on the snippet in step 1 and add it to your site:

-   With Google Tag Manager: add a tag, choose **Custom HTML**, paste the snippet, set the trigger to **All Pages**, then submit and publish.
-   Without Tag Manager: paste it into the `<head>` of every page that shows a checkout.

The snippet passes checkout and purchase events to the Tag Manager, GA4 and Meta tags already on your page. Once a checkout opens on your site, its row turns from **Needs snippet** to **Ready**.

## 2\. Add your tag IDs

Field

Example

What it does

Google Tag Manager container ID

`GTM-AB12CD3`

Loads your container and pushes events to the data layer in Google's GA4 ecommerce format.

Google Analytics 4 measurement ID

`G-AB12CD34EF`

Sends events straight to GA4.

Meta Pixel ID

`123456789012345`

Sends InitiateCheckout and Purchase to your pixel.

Leave a field blank to turn that tag off, then click **Save**.

**Don't count purchases twice**

If your Tag Manager container already sends events to GA4, leave the GA4 field blank.

## Cookie consent

For hosted checkout pages, choose whether to ask before your tags load:

Option

What buyers see

**Don't ask**

Your tags load for everyone straight away.

**Ask visitors in the EU, UK and Switzerland**

They see a consent bar at the top of the checkout, and your tags load only after they accept. Everyone else gets your tags straight away.

**Ask everyone**

Every buyer sees the consent bar first.

## What gets sent

[![The What gets sent tab listing checkout opens, payment succeeds and free trial starts, each with its Google and Meta event name](https://plandalf.com/docs/shots/settings/tracking-events.webp)](https://plandalf.com/docs/shots/settings/tracking-events.webp)

Standard Google and Meta events for checkouts, purchases and trials.

When

Google

Meta

Includes

Checkout opens

`begin_checkout`

`InitiateCheckout`

Cart value, currency and items.

Payment succeeds

`purchase`

`Purchase`

The invoice ID as the transaction ID, amount charged including tax, the tax, currency and items. Each accepted upsell is its own purchase, and a new paid subscription also sends `Subscribe` to Meta.

Free trial starts

`start_trial`

`StartTrial`

Sent instead of a purchase, so a $0 trial doesn't count as a sale. Anything charged up front still counts as a purchase.

Test mode, previews and the builder's test button never send events, so test purchases stay out of your reports. Plandalf loads only the official Google and Meta tags from your IDs; custom scripts can't run on payment pages.

## Meta Conversions API

Pixels in the browser miss sales when ad blockers stop them. The Conversions API sends each purchase to Meta from Plandalf's servers as well, for every checkout, hosted or on your site.

1.  ### Generate a token
    
    In Meta Events Manager, open **Data sources**, select your pixel and go to its **Settings** tab. Under **Conversions API**, choose **Set up manually**, then **Generate access token**. Copy it straight away; Meta shows it only once.
    
2.  ### Paste it in Plandalf
    
    On the **Meta Conversions API** tab, paste it into **Access token**, save, then click **Check connection**.
    
3.  ### Check it in Meta
    
    Copy a code from the **Test events** tab in Events Manager into **Test event code** and save. Place a live order (a 100% off coupon works) and it shows in Test events within a minute. Then clear the code.
    

The tab shows when the last purchase was sent. To replace the token, paste a new one; to stop sending, click **Remove** and save.

Something wrong or missing? Email [hello@plandalf.com](mailto:hello@plandalf.com).
