Articles on: Server Side

Setting up Pinterest tags on your sGTM server

Open your sGTM container.

Navigate to templates



Under Tag Templates, click on ‘Search Gallery’.

Use the search function to find the ‘Pinterest API for Conversions Tag’ template



Add this template to your workspace.

Navigate to Variables.



Create a new ‘User-Defined Variable’.

Choose ‘Constant’ as the variable configuration.



Enter your Pinterest Pixel ID. Name the variable “Pinterest Pixel ID” and save the variable.

Create another constant variable and enter your API Token. Name this variable “Pinterest Token” and save the variable.

Go to Tags.

Create a new tag. For the tag configuration, select the Pinterest tag template.

In the Advertiser ID input field, enter your Pixel ID variable. In the API Access Token input field, enter your Token variable.



For the event name choose "inherit from client"

Click triggers, then click the blue plus sign in the upper right corner.



For trigger configuration, choose the gray option ‘Custom’.

Select ‘Some Events’.

In the left dropdown menu, choose ‘Client Name’. In the middle dropdown menu, choose ‘equals’. In the right input field, enter “GA4”.

Add an extra condition by clicking the blue plus sign.

In the left dropdown menu, select ‘Event Name’. In the middle dropdown menu, select ‘matches RegEx’. In the right input field, enter all the events you want to send to Pinterest (that can be directly inherited), separated by vertical bars (|).



Name the trigger "pinterest trigger" and save

Name the tag "pinterest" and save

Updated on: 16/08/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!