@exobucks Best bet is to integrate the js code in your plugin itself, so all admins have to do is enable your plugin and that's that.
In your plugin you can execute your code in a client-side js file, and read the value of a configured ID from the plugin settings (if needed). You can see how this is done by inspecting how the Google Analytics plugin handles it:
The recommended method of sharing sessions between two separate and distinct applications is through OAuth2. We recommend this approach because NodeBB maintains its own user records, so that we can keep track of user-related metrics and other data. Relying on another database would be tricky, prone to breaking, and quite possibly dangerous.
Luckily, it's quite straightforward to get things working with OAuth2!
The first step is getting your application to expose an OAuth2 endpoint. If you're running a Node.js based app, you can use a module called OAuth2orize.