Google Analytics on Content Script

Hey all, in your docs you talk about how it's possble to use GA in your system, but the example only shows for popup, how about content scripts? are they supported?
5 Replies
lab
lab•2y ago
To send event from GA from CS, you likely want to just pipe those analytics down to bgsw
ar7casper
ar7casperOP•2y ago
so no way of making content script, work, right?
lab
lab•2y ago
There might be a way, but not on top of my head. The main issue is do you wanna track the target site or your extension, because GA might collect stuff out of context and the site's CSP might not let you use it to send GA events
ar7casper
ar7casperOP•2y ago
no no, i don't care about the site, i want my stuff. I have an overlay that's being opened once the user clicks on a button and i need to track how he uses that.
lab
lab•2y ago
Yeah just send the click even to bgsw and track it manually
Want results from more Discord servers?
Add your server