Jump to content

Pinterest Tag + eCommerce on SS

Recommended Posts

Site URL: https://amyjopilates.com/

I'm attempting to setup the ecommerce integration with the Pinterest tag and I'm not finding a solution for what I need to do here. 

I have done the following: 

  1. Placed Pinterest tag in header of site under code injection
  2. Place checkout event code data on order confirmation page code box

I'm getting errors on my tag but I'm not sure how to fix them. I'm also not sure how to edit this current code for the checkout to fix the errors they're saying we have.

This is the code I added to the order confirmation page: 

<script>
pintrk('track', 'checkout',{
value: {orderGrandTotal},
order_quantity:1
line_items: [
{
product_id: '1414'
}
]
});
</script>
<noscript>
<img height="1" width="1" style="display:none;" alt=""
src="https://ct.pinterest.com/v3/?tid=2613884621991&event=checkout&noscript=1"/>
</noscript>

I added the product ID but it's pulling that we need currency and value as well as product ID when I added product ID.

I'm also completely lost on how to track add to carts as well.

Any help would be appreciated.

Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 9/22/2022 at 2:41 AM, AmyJP said:

Site URL: https://amyjopilates.com/

I'm attempting to setup the ecommerce integration with the Pinterest tag and I'm not finding a solution for what I need to do here. 

I have done the following: 

  1. Placed Pinterest tag in header of site under code injection
  2. Place checkout event code data on order confirmation page code box

I'm getting errors on my tag but I'm not sure how to fix them. I'm also not sure how to edit this current code for the checkout to fix the errors they're saying we have.

This is the code I added to the order confirmation page: 

<script>
pintrk('track', 'checkout',{
value: {orderGrandTotal},
order_quantity:1
line_items: [
{
product_id: '1414'
}
]
});
</script>
<noscript>
<img height="1" width="1" style="display:none;" alt=""
src="https://ct.pinterest.com/v3/?tid=2613884621991&event=checkout&noscript=1"/>
</noscript>

I added the product ID but it's pulling that we need currency and value as well as product ID when I added product ID.

I'm also completely lost on how to track add to carts as well.

Any help would be appreciated.

I found the following references:

Squarespace tutorial:

https://support.squarespace.com/hc/en-us/articles/206543577-Connecting-Pinterest-to-Squarespace

Pinterest:

https://help.pinterest.com/en/business/article/squarespace-and-pinterest-tag

Hope they can help

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.