redacted for privacy
Hey @redacted44901 someone else might have direct experience they can share, but you might find it useful to look at https://developers.google.com/analytics/devguides/collection/protocol/v1/devguide or perhaps the universal-analytics package as places to start.
Let us know how it goes!