We have a shopify embedded public app(An embedded app is rendered inside iframe) created using node , next js and react js.
We have requirement the google analytics in our application.
We are the facing the following problems when implementing the same
- Custom events not being send to the Google Analytics on triggering from the component level.
We are not getting any console errors and call is reaching the analytics library and is not
send from there.
- Sometimes when the page is refreshed and reloaded, The active users in GA dashboard appears to be zero.
I am using the gtag.js implementation and the below is the code snippet:
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…