r/GoogleAppsScript • u/Neat-Willingness-278 • Aug 03 '25
Question How do I detect when someone installs my Drive app from the Google Workspace Marketplace?
I'm using a web app with Drive SDK integration (not Apps Script). Ideally, I'd like to get a server-side signal so I can create a user record in my database (store id, e-mail address and refresh token).
Is there a webhook or install event I can hook into? Or do I need to wait until the user opens a file through my app before tracking them?
4
Upvotes
1
u/WicketTheQuerent Aug 04 '25
This might help https://developers.google.com/workspace/marketplace/use-analytics
1
u/TapExpress Aug 04 '25
Generally what I do is in the onOpen make a call to my database to get the user. If it doesn't exist I create a record. But with the SDK I'm sure you can find some sort of action they take and check for user there.