Weekly Ecommerce Automation articles, videos and tips by Marcus Schappi.

📌 Adding Pinterest "Add to Cart" tracking on Shopify

Published on 24 Feb 2020

Beyond Pinterest’s “base tracking” and “checkout conversion tracking”, you can also track “Add to Cart” events by adding the following code to your buttons and links:

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

For example your standard add to cart button would go from:

<button type="submit">Add to cart</button>


<button type="submit" onclick="pintrk('track', 'addtocart');">Add to cart</button>