I'm trying to set up a server-side container tag that sends the gathered data not to Google Analytics but to another website. Usually I do that as a HTML tag with a JavaScript code on the client-side container. However with the server-side container, it seems there is only a limited form of JavaScript available, known as sandboxed JS.
'Document' is undefined. I can't access global objects. I've attempted all sorts of things like: const document= require('copyFromWindow')
Is there anyway I could solve this issue?
Thanks