Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Trouble with pinterest conversion ad campaign


Question

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 post
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Days

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

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


×
×
  • Create New...