April 15, 2020

Pinterest Tag

By Dave Jeans
NOTE:
I will be adding more information to this blog as I find it.
PINTEREST CODE IN SHOPIFY
before
In Themes > Edit 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.insertBefor
e(t,r)}}
pintrk('load','YOUR_TAG_ID', { em: '{{ customer.email }}', });
pintrk('page');
script>
<noscript>
<img height="1" width="1" style="display:none;" alt=""
src="https://ct.pinterest.com/v3/?tid=YOUR_TAG_ID&noscript=1" />
noscript>
CHECKOUT CODE
Add this to the Settings > Checkout
{% if first_time_accessed %}
<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', { em: '{{ customer.email }}', });
pintrk('page');
script>
<noscript>
<img height="1" width="1" style="display:none;" alt=""
src="https://ct.pinterest.com/v3/?tid=YOUR_TAG_ID&noscript=1" />
noscript>
<script>
pintrk('track', 'checkout',{
value: {{ total_price | money_without_currency }},
currency: '{{ currency }}',
order_quantity: 1,
order_id: {{ checkout.id }}
});
script>
<noscript>
<img height="1" width="1" style="display:none;" alt=""
src="https://ct.pinterest.com/v3/?tid=YOUR_TAG_ID&event=checkout&noscript=1"/>
noscript>
{% endif %}
ADD TO CART CODE
PRODUCT TEMPLATE OR FORM
onclick="pintrk('track', 'addtocart', {value: {{product.selected_variant.price | money_without_currency}},order_quantity: 1});"


FIND MORE HELPFUL ARTICLES - The helpful guide to starting your Shopify Store

Find my Shopify TOOLS PAGE for more information.

Shopify Made EAsy books & courses by Veronica Jeans Bestselling author and Shopify Queen

Shopify Made Easy Book Series

Get the complete SHOPIFY MADE EASY series books on Amazon:

Book 1 - Build Your Ecommerce Empire

Book 2 - Brand Your Shopify Store

Book 3 - Optimize Your Shopify Store

Book 4 - Position Your Brand

Book 5 (Coming Aug. 2022)

Shopify Courses

"I simply do not know where my business would be without the help of Veronica. Like many, I had a great idea on starting an internet business but didn’t really know where to begin. Starting up sounds like a simple process, but it is so overwhelming when you have to do it by yourself. Veronica took me by the hand and led me through the most complicated ‘stuff’ on the internet and made it look simple!" ~ Donna - TheMissingPiecePuzzle.com

JOIN HERE