Analytics integration (GA4 not working)

Hi,

I’m having some issues with Google Analytics (GA4) integration. I made some changes to the JUCE example but still I’m not getting all the events to show up.

I’m using:


 juce::String baseURL = "https://www.google-analytics.com/mp/collect";
    auto url = juce::URL(baseURL)
                  .withParameter("measurement_id", apiKey)
                  .withParameter("api_secret", secret)
                  .withPOSTData(postData.joinIntoString("\r\n"));

Has anyone managed to get it working? Or does anyone know of another analytics tool that can be easily integrated with JUCE?

1 Like