On this page
What this issue is
The Pinterest tag is a small piece of JavaScript. It loads from Pinterest's servers and sends a request each time someone views a page or completes an action. Each request carries a tag ID, a number that links the data to one Pinterest ad account.
There are two versions of this problem. Missing means the base code is not on some or all pages, so no requests go out. Wrong tag ID means the code is there but the ID belongs to another account, an old test account, or has a typo. Pinterest then gets the data in the wrong place, or not at all.
Why it costs you leads or sales
Pinterest ads rely on the tag to count conversions, build retargeting audiences and learn who is likely to buy. Without it, reports show zero or very low results even when people are buying. Optimisation has nothing to learn from, and you may cut campaigns that were actually working.
- Pin clickVisitor lands on your site
- Page loadsTag missing or wrong ID
- ConversionLead or sale happens
- Pinterest reportNo conversion recorded
With a missing or wrong tag, the visit happens but Pinterest never receives it.
Example: 40 real conversions in a week, but only some are reported depending on tag health.
How to check if your site has it
Find your real tag ID
In Pinterest Ads Manager, open Conversions (under Ads), then the Pinterest tag section. Note the tag ID shown for your ad account.
Use the Pinterest Tag Helper
Install the Pinterest Tag Helper browser extension and visit your home page, a landing page and your thank-you page. It shows whether a tag is found and which ID it uses.
Inspect network requests
Open browser developer tools, go to the Network tab, filter for 'pinterest' and reload. You should see requests to ct.pinterest.com or s.pinimg.com containing your tag ID.
Check the page source
Search the source for 'pintrk'. Look at the pintrk('load', ...) line and compare the number with your tag ID.
Check more than the home page
Repeat on landing pages, the checkout and the thank-you page. Tags are often missing on pages built with a different template.
How to fix it
Install the base code once per page, with the correct tag ID. Installing it twice causes duplicate events, so remove old copies first.
<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>Find where the tag lives
Check your Pinterest plugin, a header-and-footer scripts plugin and your theme settings. Remove duplicates and keep one source.
Enter the correct ID
Paste the tag ID from Pinterest Ads Manager into the plugin field, or paste the base code into the site-wide header section.
Clear caches
Purge your caching plugin and CDN so the updated code is served.
Use the Pinterest channel
In Shopify admin, open Sales channels, then Pinterest, and connect the correct Pinterest account. Check the tag ID it shows in Settings.
Remove manual copies
Search theme.liquid and Settings, then Customer events for old pintrk code and delete it if the channel handles the tag.
Add or edit the tag
Create a Custom HTML tag with the base code above, or use the Pinterest tag template if available in your workspace. Enter the correct tag ID.
Trigger on all pages
Use the All Pages trigger, and respect your consent setup if you use one.
Preview and publish
Use Preview mode to confirm the tag fires, then publish the container.
Add to site settings
Open Site settings, then Custom code, and paste the base code into Head code. Publish the site.
Add tracking code
Paste the base code into the Tracking Code, Header section of each funnel or website, in its settings. Save and publish.
Add a custom code snippet
Open Settings, then Custom code, add the base code, set it to load on all pages in the head, and publish.
Use code injection
Open Settings, then Advanced, then Code Injection, and paste the base code into the Header field.
Add to the shared head
Place the base code in the shared layout or header template so every page includes it once.
How to confirm it's fixed
- Pinterest Tag Helper shows a green result with the correct tag ID on key pages
- Network tab shows requests to Pinterest carrying your tag ID
- Only one pintrk('load') call appears per page
- Tag status in Pinterest Ads Manager shows recent activity
- A test visit appears in Pinterest's tag diagnostics after a short delay
How to prevent it happening again
Tags usually break after a theme change, a plugin update, a site rebuild or a Tag Manager publish by someone else. Keep one documented owner of the tag, store the correct ID in a shared note, and re-check the tag after every release.
Before
- Tag on some pages only
- ID copied from an old account
- Plugin and GTM both load it
After
- One tag source site-wide
- ID matches Ads Manager
- Checked after every release
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor runs your real customer journeys on a schedule, from the EU or the US, and checks the tracking hits sent to ad platforms, including Pinterest. If the Pinterest hit is missing or does not carry the expected tag ID, the step is flagged.
A failure is re-checked from a second region before one alert goes out, by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. Test traffic is marked (utm_source=funnelguard, fg_test=1) so you can filter it out. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.
Questions people ask
Why is my Pinterest tag not firing?
Common causes are the base code missing from some templates, a wrong tag ID, a consent banner blocking it, a caching plugin serving old code, or a Tag Manager trigger that does not match the page. Use the Pinterest Tag Helper and the browser Network tab to see which one applies.
How do I find my Pinterest tag ID?
Log in to Pinterest Ads Manager, open Conversions under Ads, and go to the Pinterest tag section. Your tag ID is shown there. Compare it with the number in the pintrk('load', ...) line on your site.
How do I check if the Pinterest tag is installed?
Install the Pinterest Tag Helper extension and visit your pages. It reports whether a tag is found and its ID. You can also search the page source for 'pintrk' or filter the Network tab for 'pinterest'.
What happens if I use the wrong Pinterest tag ID?
Pinterest receives your data under another account, or ignores it. Your own account shows no conversions or audience growth, so reporting and ad optimisation suffer.
Can the Pinterest tag be installed twice?
It can, for example through a plugin and Tag Manager together, but it causes duplicate events. Keep one source and remove the others.
Does the Pinterest tag work on Shopify?
Yes. Connect your account in the Pinterest sales channel, which installs the tag for you. Remove any manual pintrk code from the theme to avoid duplicates.
Can I monitor the Pinterest tag automatically?
Yes. FunnelGuard runs your journeys on a schedule and checks that the Pinterest hit is sent with the expected tag ID, then alerts you with a screenshot and likely cause if it is not.