Pinterest Addtocart code on Brooklyn theme

Solved
lapislazuli
New Member
8 0 0

Hi all

I really need some help. I'm almost done setting up Pinterest tag on Shopify but got stuck with the last step. Instruction tells me to add the code in the product-template.liquid. I have been looking at the script and can't find where I can put the code. I look through all the threads in the community page and can't find an answer. Appreciate help please! 

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

 

Screen Shot 2020-08-20 at 14.02.15.png

0 Likes
JHKCreate
Shopify Partner
2046 331 445

Hi There!

Would you mind sharing a link so I can help you quicker?

The last step is telling you to add this on the "Add To Cart" <button> 

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
0 Likes
lapislazuli
New Member
8 0 0

Hi Thank you!

I found this on the product-template.liquid, is this where I add the Pinterest code? 

 

Screen Shot 2020-08-20 at 14.15.27.png

 

 

0 Likes
JHKCreate
Shopify Partner
2046 331 445

Nearly quite! We're looking for the same thing but with the Add To Cart functionality, keep looking underneath a bit.

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
0 Likes
lapislazuli
New Member
8 0 0

Here? 

 

Screen Shot 2020-08-20 at 14.21.29.png

0 Likes
JHKCreate
Shopify Partner
2046 331 445

To replace the first first where it's highlighted:

<button type="submit" onclick="pintrk('track','addtocart');" name="add"

 

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
0 Likes
lapislazuli
New Member
8 0 0

I think this is it, right? 

 

Screen Shot 2020-08-20 at 14.23.35.png

0 Likes
lapislazuli
New Member
8 0 0

I did it! Thank you so much for your help.  

 

Screen Shot 2020-08-20 at 14.27.25.png

0 Likes
JHKCreate
Shopify Partner
2046 331 445

This is an accepted solution.

Fantastic! Happy to have helped! Just add a small space between "submit" & the onclick for visual clarity nothing else.

If you could mark the solution as solved that would help everyone find answers quicker, thanks!

- Did we solve your issue? Like & Mark As Solution to help the community
- Should you need any direct help: contact@jhkcreate.com
0 Likes
lapislazuli
New Member
8 0 0

Added the space. Thank you again! 

0 Likes