> For the complete documentation index, see [llms.txt](https://docs.adpage.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adpage.io/documentation/documentation-nl/integraties-marketingtools/pinterest-ads/client-side-pinterest-ads-tracking-instellen-met-deduplicatie.md).

# Client-side Pinterest Ads-tracking instellen met deduplicatie

Client- en server-side tagging voor Pinterest Ads instellen met event\_id-deduplicatie

Als u zowel server-side als client-side tagging gebruikt, ontvangt Pinterest dezelfde conversie twee keer: één keer vanuit de browser en één keer vanaf uw server. Deduplicatie voorkomt dat dit dubbel wordt geteld. Het werkt wanneer beide gebeurtenissen de **zelfde gebeurtenisnaam** en de **zelfde event\_id**.&#x20;

Dus het doel in deze handleiding is dat uw Pinterest Tag, uw GA4-tag en uw server-side Pinterest Conversions API-tag allemaal dezelfde interactie beschrijven met dezelfde event-ID.

### Voordat je begint

Zorg ervoor dat u het volgende heeft:

* [ ] Een werkende [server-side Pinterest Conversion API-configuratie](/documentation/documentation-nl/integraties-marketingtools/pinterest-ads.md).
* [ ] Je **Pinterest Tag-ID**. Zie [Hoe u uw Pinterest Tag-ID vindt](/documentation/documentation-nl/integraties-marketingtools/pinterest-ads/waar-je-de-pinterest-tag-id-advertiser-id-en-api-token-vindt.md).
* [ ] Een **Unieke Event-ID** variabele in uw webcontainer.

### Stap 1: Maak een variabele voor uw Pixel-ID

1. Open je GTM **web** container en ga naar **Variabelen**.
2. Maak een nieuwe **Door gebruiker gedefinieerde variabele** en kies **Constant** als variabeletype.
3. Voer uw Pinterest Tag-ID in als waarde en sla de variabele op.

{% hint style="info" %}
Een constante variabele gebruiken in plaats van de ID in elke tag te typen, betekent dat u deze later op slechts één plek hoeft te wijzigen.
{% endhint %}

### Stap 2: Maak uw Pinterest Base Code-tag

1. Ga naar **Tags** en maak een nieuwe tag aan. Selecteer de **Pinterest Tag** als tagconfiguratie.

<figure><img src="https://2136026570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2FBscPWVXahmDqtt2sRWCz%2Fimage.png?alt=media&amp;token=a01cad30-f1d7-4f15-a3be-02886cea503a" alt=""><figcaption></figcaption></figure>

2. In het **Tag-ID** veld selecteert u uw Tag-ID-variabele.
3. Als **te activeren gebeurtenis** selecteert u **Alleen Base Code (geen gebeurtenis)**.&#x20;
4. Geef deze tag de trigger die u voor alle pagina's gebruikt (Page View / cookie\_consent\_update)

### Stap 3: Maak de conversietags

1. Maak een nieuwe tag aan en selecteer de **Pinterest Tag** als tagconfiguratie.
2. Vul de **Pinterest Tag-ID** variabele in.
3. Als **te activeren gebeurtenis** aan of dit een standaard- of een aangepast evenement is. Selecteer een standaardgebeurtenis in het keuzemenu, of typ een aangepaste gebeurtenisnaam in het invoerveld.
4. Selecteer **Aangepaste parameters** onder **Aanvullende parameters**. Voeg **event\_id** toe als parameternaam en uw variabele voor Unieke Event-ID als waarde.
5. Selecteer als trigger dezelfde trigger die u gebruikt voor de GA4-gebeurtenistag voor deze interactie.
6. Sla de tag op. En herhaal dit voor de andere gebeurtenissen en conversies die u wilt instellen.

{% hint style="warning" %}
Vergeet niet de page\_view-tag in te stellen en dezelfde trigger te gebruiken als uw GA4 page\_view-gebeurtenistag.
{% endhint %}

<figure><img src="https://2136026570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2Fe7gZuiCmIuEVNFfgHM2v%2Fimage.png?alt=media&amp;token=c83633e0-a9bb-4b6a-882d-93d7d641a05d" alt=""><figcaption></figcaption></figure>

### Stap 4: Voeg de event\_id toe aan uw GA4-gebeurtenissen

Uw GA4-gebeurtenistags vullen de servercontainer, dus de event-ID moet met hen meegaan. Voeg voor elke interactie die u wilt dedupliceren uw **Unieke Event-ID** variabele toe als een event\_id-gebeurtenisparameter aan de GA4-gebeurtenistag die op die interactie wordt geactiveerd.

<figure><img src="https://2136026570-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FA65KwL1NwewlJbtCXsXd%2Fuploads%2F0BpvIPXyTvkYHyJ7C8QB%2Fimage.png?alt=media&amp;token=3347dd2c-d02c-42e2-b5cd-a0c12191dc2e" alt=""><figcaption></figcaption></figure>

### Stap 5: Testen en verifiëren

Open de voorbeeldmodus van Google Tag Manager om te controleren of de event\_id in de client-side TikTok-gebeurtenistag overeenkomt met de server-side TikTok Events API-tag. Als dit niet het geval is, zijn de gebruikelijke oorzaken:

* De gebeurtenisnamen komen niet overeen. De Pixel stuurt de ene naam en de server-side tag een andere.
* De event-ID's komen niet overeen, of de server-side tag ontvangt helemaal geen event-ID.
* De twee tags worden geactiveerd op verschillende triggers, dus ze beschrijven nooit dezelfde interactie.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.adpage.io/documentation/documentation-nl/integraties-marketingtools/pinterest-ads/client-side-pinterest-ads-tracking-instellen-met-deduplicatie.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
