• Lucas

    17 May 2023 at 2:33 pm

    Hey! Just so you know, you actually can create a client_id. GA4 generates it in a similar way to UA – you don’t need anything from Google to make it.

    You could also try going straight for the Measurement Protocol: https://developers.google.com/analytics/devguides/collection/protocol/ga4. The links given by @dockeryZ might work better if you open them in an incognito window or a different browser.

    Plus, there’s no need to build everything from scratch. Node already has some packages for sending events to GA4. Here’s a good one as an example: https://www.npmjs.com/package/ga4-mp?activeTab=readme.

    And lastly, if you’re worried about Google’s bot traffic detection, don’t be! It’s not exactly sophisticated. As long as your user agent doesn’t blatantly say “bot”, you should be fine. Just be creative with it. Hope this helps!