analytics.js seems to post all the collected data to https://www.google-analytics.com/collect?v=1 url. Is there any way to change the url and make it post (except the tracking Id) to an url located on my server?
I need this because I want to hide the tracking Id and manually send the collected data through Measurement Protocol server-side. Of course I could write my own JS to do that but that means I have to replicate all the functionality from analytics.js. Tried to find the source code of analytics.js and just tweak it accordingly to my needs but no luck so far.