Before you start
Place the account base code once, send checkout only after order confirmation, and verify the event without duplicating the purchase on reload. Check for an existing Pinterest Tag in the theme, CMS, or GTM so the base is not installed twice.
1. Install Pinterest's base code
In Pinterest Ads Manager, open Conversions → Tag manager → Install the Pinterest tag, choose manual setup, and copy your personalized base code. Put it in the shared head on every eligible page. Pinterest says the sample is illustrative and recommends the account-generated code. This example uses a placeholder ID; do not deploy it as-is.
<!-- Pinterest Tag base example; use the code generated for your account -->
<script>
!function(e){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(
Array.prototype.slice.call(arguments))};var
n=window.pintrk;n.queue=[],n.version="3.0";var
t=document.createElement("script");t.async=!0;t.src=e;var
r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r)}}("https://s.pinimg.com/ct/core.js");
pintrk('load', 'YOUR_TAG_ID');
pintrk('page');
</script>
<noscript><img height="1" width="1" style="display:none;" alt="" src="https://ct.pinterest.com/v3/?tid=YOUR_TAG_ID&event=init&noscript=1" /></noscript>For GTM, install the Pinterest base tag first and keep event tags separate. Do not combine manual and GTM installations. See Pinterest's base-code instructions and GTM setup.
2. Send checkout only after confirmation
Pinterest documents the lowercase checkout event. Add it only after the order is confirmed and the base has loaded:
pintrk('track', 'checkout');For order details, use parameter names in the current event-code reference and map real transaction values. Do not hard-code revenue. In GTM, a data-layer message needs an event trigger and Pinterest tag mapping; by itself it is not sent to Pinterest.
3. Verify
Use Tag verification and event activity in Ads Manager. Check the Tag ID, one controlled test, and that reloading a receipt does not fire the same purchase again. Honor consent before loading the Tag. Browser activity is not proof of processing or attribution.
Use the dashboard to inspect browser-visible values; verify event activity in Pinterest Ads Manager.
Official references
- Install the Pinterest base code Checked November 10, 2026
- Add Pinterest event codes Checked November 10, 2026
- Set up Pinterest Tag with Google Tag Manager Checked November 10, 2026
- Verify the Pinterest Tag Checked November 10, 2026
What changed
- v1.0Initial bilingual guide; provider setup and validation steps checked against official documentation.
- v1.1Revised both language versions with verified provider code and clearer data-layer-to-tag mapping; checked official setup and validation references.
- v1.2Completed the Pinterest base-code example with the official no-JavaScript fallback.