i did Install the global site tag and also the event snippet,
but when i try to Add an onclick attribute it tell me that the is not defined?
what am i doing wrong?also how i am able to do the tracking on the add to cart, because i am on the "product page" and i am not able to do "on Click" here is the instruction for adding an onclick attribute with HTML: Add an onclick attribute directly to the code for the button or link you'd like to track. The code you use will depend on how the link or button is displayed on your site: as a text link, button, or button image.Add the code to a button: This code shows you how to add click tracking functionality to a button using the <button> tag. Replace "http://example.com/your-link" with the URL for your website.<button onclick="return gtag_report_conversion('http://example.com/your-link')">Submit</button> please help