I want to install the Pinterest tag in my Shopify BROOKLYN THEME. I followed the three steps for installation but it doesn't work. This is the type of error reported by Pinterest Tag Helper:
I think the problem is on the third step which is the following:
<< In "templates", locate the code file called "product.liquid" or "product-template.liquid" or "product-form. Liquid" and open it. Note that the name may vary depending on the theme installed, but the code of the "Add to cart" button is present in the products.liquid or equivalent file. >>
I have to put the code onclick = "pintrk ('track', 'addtocart');" here:
I WAIT FOR YOUR PRECIOUS ADVICE
Did you get this resolved? I have the same problem. But my line 228 looks different from yours. I'm using Brooklyn theme as well.