Jump to content

Trouble with pinterest conversion ad campaign

Recommended Posts

Hello!

I've contacted pinterest multiple times and they haven't been able to help me.  I'm trying to create a pinterest conversion ad campaign.  I followed the steps here https://help.pinterest.com/en/business/article/squarespace-and-pinterest-tag and inserted my unique tag ID where it said to. I put the two separate codes where it said to, in my site header and in the checkout page section. 

When I try to create a conversion ad in pinterest it won't allow me to  and says "Your Pinterest tag is not firing conversion events"

I reached out to pinterest and they gave me a new code and said to put this only in the header and it will replace the initial codes they gave me. 

<!-- Begin Pinterest base code -->
<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','2612384564892', { em: '{customerEmailAddress}', np: 'generator' , });
pintrk('page');
</script>
<!-- End Pinterest base code -->

<script>
/*addtocart event*/
function pinATC(){
if (document.querySelectorAll('.....sqs-add-to-cart-button-inner')) {
var ATCbutton = document.querySelectorAll('.....sqs-add-to-cart-button-inner');
for (var i = 0; i < ATCbutton.length; i++) {
ATCbutton.addEventListener('click', function(){
pintrk('track', 'addtocart',{
np: 'generator',
value: 'varPlaceholder',
order_quantity: 'varPlaceholder',
})})}}}


document.readyState == 'complete' ? pinATC():window.Squarespace.onInitialize(Y, pinATC);
</script>

 

It's been a day and I'm still getting the same message from pinterest saying that my tag isn't firing. 

Anyone know what I can do to get my tags to fire to pinterest? 

Thank you!

Link to comment
  • 10 months later...

Hello, have you figured this out yet?  I have literally been going through the same problem and getting no where and Pinterest is zero help.  You have to actually inject the event code (conversions) but there are no instructions on how to do this.  I've read on one site that you need to turn on developer mode for this. 

Link to comment
  • 1 year later...

@crtphoto728 did you figure this out?  I'm dealing with it, too.  I understand the need to put our personal ID number in a code, however I wish it was straight forward.  There should be codes that require no editing other than our number, and they should tell us exactly where to put them.  I don't understand coding.  I did get someone to respond to be a couple of times, but I'm just not sure what to do on my end.  

Link to comment
  • 1 month later...
Quote

 

Hi, I managed to get my tag working and catalogue uploaded without turning on developer mode i have now been approved as a verified merchant.  Put the base code in the header and the checkout event code in the order confirmation page to navigate to it on squarespace 7,0 

settings>advanced>code injection

add the base code in the header section 

 

<!-- PINTEREST TAG BASE CODE -->
<script type="text/javascript">
!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 HERE', { em: '{customerEmailAddress}', });
pintrk('page');
</script> 
<noscript> 
<img height="1" width="1" style="display:none;" alt=""
src="https://ct.pinterest.com/v3/?tid=YOUR TAG ID HERE&noscript=1" /> 
</noscript>
<!-- END OF PINTEREST TAG BASE CODE -->

 

Then scroll down to the order confirmation page and put the checkout event code in there 

 

<!-- PINTEREST CHECKOUT EVENT TRACKING -->
<script>
pintrk('track', 'checkout', { 
   value: 10.00, 
   order_quantity: 2, 
   currency: 'GBP', 
   product_ids: ['1414', '1415'] }
);
</script>
<noscript>
<img height="1" width="1" style="display:none;" alt="" src="https://ct.pinterest.com/v3/?tid=YOUR TAG ID HERE&event=checkout&ed[value]=10.00&ed[order_quantity]=2&noscript=1" />
</noscript>
<!-- END OF PINTEREST CHECKOUT EVENT TRACKING -->

 

this should get your tag installed but it sometimes takes a few days for the error messages to go away.  also if there isn't any activity on your site, the error messages come back.  If the tag isn't firing due to lack of activity, pinterest thinks the tag isn't working and so says it's unhealthy.  if you're not making many sales, pop a free digital download product in your inventory and go buy it every now and then to make the checkout event fire.  

 

I'm having trouble with my add to cart since it's seems to be firing on every page view. not so worried about that but will try and figure it out. 

 

hope that helps. this is currently working very well for me.  happy to help with how i got my verified status if you get your tags working effectively and want it later. 

 

Link to comment
  • 1 month later...

To anyone who is searching this thread and has this issue, I JUST resolved it. I found a developer who was able to get it fixed very quickly for me (this is after working with a google tag manager and trying to search online for hours for how to find the solution myself-with zero success). 

He set up my google tag with all the data for the tag to be able to pull my product ids, value, etc, and all the data pinterest needs for a healthy tag. He didn't need to go into developer mode on my site (some developers I spoke to said they would need to and that just made me very nervous), and it was a pretty quick process for him to write the code and get it all installed and affordable. 

I highly recommend him. Assuming it's okay to share his info here, his email is george.dilthey@gmail.com. 

He saved me SO MUCH TIME and brainspace. My verified merchant status is not up and running with a healthy tag and my ads manager is now getting all the info she needs on the backend since the data is pulling through. 

 

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.