Best advise is to read the Guidelines and policies at
I doubt it would work due to the Content Security Policies for extensions
And it’s potentially a competing product to Twitch. And it’s arguably shady to put that sort of tracking in, and you’d need to tell users before you track them, and it’s a nightmare when you consider GDPR, as Twitch would probably have to update their TOS to say that developers may use other third party tracking services.