AmyJP Posted September 21, 2022 Share Posted September 21, 2022 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: Placed Pinterest tag in header of site under code injection 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
Beyondspace Posted September 24, 2022 Share Posted September 24, 2022 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: Placed Pinterest tag in header of site under code injection 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment