Shopify stores use different coding methods and apps to set the add-to-cart function, and unfortunately, there is no easy way to add this event on GTM.
So, we would highly recommend using an app like Analyzify to achieve this.