Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
449 views
in Technique[技术] by (71.8m points)

reactjs - Google Analytics implementation in shopify public app

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

  1. 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.
  2. 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:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...