mui / toolpad

Toolpad: Full stack components and low-code builder for dashboards and internal apps.
https://mui.com/toolpad/
MIT License
1.27k stars 282 forks source link

Add Google Analytics #997

Closed apedroferreira closed 2 years ago

apedroferreira commented 2 years ago

Duplicates

Latest version

Summary 💡

From https://github.com/mui/mui-toolpad/issues/592. Add Google Analytics to Toolpad for usage reporting.

Examples 🌈

For now we can probably just do something like in this example? https://github.com/vercel/next.js/tree/canary/examples/with-google-analytics

Motivation 🔦

No response

prakhargupta1 commented 2 years ago

I think this issue can be delayed. At this point, the only GA event we'll be interested would be no. of apps built. But I think there would be more ways to measure it. Acc. to me, we should do this after the overhaul. Let me know what do you think?

apedroferreira commented 2 years ago

I think this issue can be delayed. At this point, the only GA event we'll be interested would be no. of apps built. But I think there would be more ways to measure it. Acc. to me, we should do this after the overhaul. Let me know what do you think?

It could maybe still be useful to track the amount of traffic and such, but we can also delay it if you think it's best.

prakhargupta1 commented 2 years ago

Ok, let's do the basic implementation then, I think following events would be good to track:

  1. Clicks on View demo button
  2. Count of demo views
  3. Number of apps created (may not be related to GA)

Which data source users are trying can be tracked as well, but I don't think it will serve any purpose.

prakhargupta1 commented 2 years ago

@apedroferreira Let's track the demo related GA events through this old issue.

apedroferreira commented 2 years ago

@apedroferreira Let's track the demo related GA events through this old issue.

Sounds good, I guess for now we're adding: