Facebook Pixel + WooCommerce + AJAX = Confusion

I think .bind() and/or .click() might come in handy here. You could possibly attach the tracking function to the click-event for your “Add to Cart”-button.

But I´m no JavaScript/jQuery guy, so someone else has to help you here.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)