Door je Google Tag Manager-account aan je Pinterest-tag te koppelen, krijg je inzicht in de mate waarin Pinterest van invloed is op het webverkeer naar je winkel en de verkoop van je producten.
Met de basiscode kun je gegevens verzamelen over gebeurtenissen, zoals wanneer iemand een product koopt of een product toevoegt aan zijn of haar winkelmand. De basiscode moet op alle pagina's van je website worden geïnstalleerd. Je bepaalt zelf of je de basiscode op Pinterest of in Google Tag Manager installeert.
- Log in op je zakelijke Pinterest-account
- Klik op
het hamburgerpictogram linksboven op de pagina - Klik onder Zakelijk op Conversies
- Klik op Aan de slag
- Selecteer je verbindingsbron en klik op Doorgaan
- Klik op Overslaan
- Selecteer Google Tag Manager en klik vervolgens op Doorgaan
- Klik op Doorgaan met Google
- Er wordt een nieuw tabblad geopend; log in met een Google-account
- Kies waartoe je Pinterest toegang wilt geven en klik op Doorgaan
- Kloppen de gegevens bij Account en Container? Klik dan op Doorgaan
- Vul eventueel een naam voor je tag in en schakel desgewenst de opties Automatische conversietoeschrijving of Verrijking van metagegevens in
- Klik op Tag installeren
Met gebeurteniscodes kun je de impact meten van je Pinterest-advertenties op bepaalde acties op je website. Ze zijn ook nodig om campagnes te starten die automatisch worden geoptimaliseerd voor bepaalde gebeurtenissen, zoals conversiecampagnes en dynamische retargeting van advertenties. Gebeurteniscodes zijn tevens nodig om platformen als
Voordat je je eerste gebeurteniscode installeert, moet je eerst de basiscode installeren. De basiscode moet altijd vóór de gebeurteniscode worden uitgevoerd. Je kunt gebeurteniscodes alleen in Google Tag Manager installeren.
- Er verschijnen aanvullende invulvelden, afhankelijk van de optie die je kiest. Je kunt een waarde invullen of op het bouwsteentje klikken en de gegevenslaagvariabele voor de relevante gebeurtenisgegevens toevoegen.
- Voor AddToCart-, Checkout- en PageVisit-gebeurtenistags kun je een dynamische variabele als product_id-gebeurtenisgegeven toevoegen voor het maken van doelgroepen en retargeting.
- Het dynamische product_id-variabele heeft geen extra syntaxis nodig - het moet alleen het ID invullen dat overeenkomt met je inventaris.
- Als je meerdere product_id's tegelijk verwacht of wilt verzenden, moet je een gegevenslaagvariabele aanmaken die onze 'line_items'-syntaxis gebruikt. Hieronder vind je de opbouw en een voorbeeld van een 'line_items'-array.
Keep in mind that you’ll have to follow the steps below each time you add an event.
- Go to Google Tag Manager and click Add a new tag.
- Enter a name for your tag at the top of the screen where it says Untitled Tag.
- Click Tag Configuration.
- Click
the search icon the top-right corner of the page and start typing Pinterest in the search bar. Click Pinterest Tag when it appears below. - Enter your Pinterest tag ID from your Pinterest account’s Conversions page below Tag ID.
- You can also choose a variable to reuse by clicking
the plus icon next to Tag ID.
- You can also choose a variable to reuse by clicking
- Click the dropdown menu below Event to Fire and select the event you’d like to track on your website.
- Depending on what you choose, optional inputs will appear. You can enter a value or click the brick icon and choose the data layer variable for the relevant event data.
- For addtocart, checkout, and pagevisit event tags, you can add a dynamic variable for product_id event data for audience creation and retargeting.
- The product_id dynamic variable does not need any extra syntax, it just needs to populate the ID that matches your inventory.
- If you expect or want to send multiple product_ids at the same time, you’ll need to set up a data layer variable to use our line_items syntax. See below for the structure and an example of a line_items array.
- Optional: Check the box next to Custom Parameters for audience targeting.
- Click Advanced Settings, then select Tag Sequencing.
- Check the box next to Fire a tag before <your tag> fires.
- Click Select Tag and choose the base tag you set up previously from the dropdown menu.
- Click Triggering and select the specific action or page where you'd like your event to fire.
- Click Save at the top-right corner
- Click Submit to publish the change
Je kunt meerdere product-ID's tegelijk invoeren om het verkeer naar al je producten bij te houden.
Je moet hiervoor tevens een
<script>
dataLayer = [{
items : [
{
product_id: '1414',
product_category: 'Schoenen'
},
{
product_id: 'ABC',
product_category: 'Speelgoed'
}
]
}];
</script>
Als je de gegevenslaag eenmaal hebt toegevoegd, publiceer je de code van je website of sla je deze op.
- Go to Google Tag Manager.
- Click the event code or tag you want to add product IDs to.
- Select an event from the Event to Fire dropdown menu.
- Check the box next to Custom Parameters. Leave Product ID and Product Category under Line Items blank when you’re adding custom parameters.
- Click Add Row to add a variable.
- Enter a name for your variable below Name, then click + below Value.
- Select an existing variable from the list or click + at the top-right corner to create a new variable.
- Click Triggering to set any triggers needed for your site.
- Click Save.
In order for this to work, you'll also need to create a data layer variable called "items" on any page you want to set the product IDs and product categories. You can set all of them here:
<script>
dataLayer = [{
items : [
{
product_id: '1414',
product_category: 'Shoes'
},
{
product_id: 'ABC',
product_category: 'Toys'
}
]
}];
</script>
Once you've added the data layer, deploy or save your website's code.
Je kunt ook gegevens van de gebeurtenis-ID opnemen voor ontdubbelingsdoeleinden.
- Opmerking: de Value (Waarde) moet dynamisch worden gegenereerd voor elke gebeurtenis, zodat deze uniek is voor de gebeurtenis
- Go to Google Tag Manager
- Click the event code or tag you want to add product IDs to
- Click the field below Event to Fire, then select an event from the list
- Check the box next to Custom Parameters
- Click Add Row to add a variable
- Below Name, enter ‘event_id’ as the name for your variable, then click
the plus icon below Value to provide a value- Note: The Value should be dynamically generated for each event in order to be unique to the event
- Click Save
Gebruik je een