Skip to content

support Validating Hits endpoint #48

@rashtao

Description

@rashtao

Is now available a new endpoint to validate the Google Analytics Measurement Protocol requests:
https://developers.google.com/analytics/devguides/collection/protocol/v1/validating-hits.

In the GoogleAnalyticsConfig one can set the http url, eg:

GoogleAnalyticsConfig()
                .setHttpUrl("http://www.google-analytics.com/debug/collect")
// ...

but then the http response from the server is mapped to GoogleAnalyticsResponse, that only keeps the status code and the request params. So atm it is impossible to check the response payload and thus validating the hit.

A really easy modification to the code would be just adding a field to GoogleAnalyticsResponse containing the original org.apache.http.HttpResponse.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions