Pinterest has over 410 million monthly active users as of the first quarter of 2021. More than 90% of social media marketers are utilizing this social media platform. This American image-sharing site is considered a largely female platform.

Customers can either add the Pinterest pixel within Shopify settings or paste the pixel ID code in the theme.liquid before </head>.

Step 1: Base code (please follow steps on the link above)

Step 2: Checkout code (please follow steps on the link above)

Step 3: Addtocart code

  1. From your Shopify admin, click Online Store then Themes.

  2. In the current theme you’re using, click Actions and Edit code.

  3. Under Snippets look for code liquid file named product-template.liquid

  4. Search the file for <button by pressing and holding command+f on Mac or control+f on PC.

  5. Place the following code within the ending caret of the <button> or <input> element

  6. Add it besides the id="AddToCart--{{ }}" in the button div element.

  7. FIRST BUTTON (see below screenshot)

Second Button ( see below screenshot )

Here's the code below:

onclick="pintrk('track', 'addtocart');"

NOTE: Step 1 and Step 2 step-by-step instructions can be found on the link below.

Did this answer your question?