google-analytics-api

Enabling enhanced measurement programatically


we are using an Admin API to programmatically create Data Streams for given properties - https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1beta/properties.dataStreams/create.

However all of the created Data Streams have enhanced measurement turned off by default. Is there or will there be a possibility to enable it together with the create request?

Thank you


Solution

  • Okay after a bit of digging

    EnhancedMeasurementSettings we can find the following

    EnhancedMeasurementSettings appear to only be for web DataStream's

    Singleton resource under a WebDataStream, configuring measurement of additional site interactions and content.

    The issue being is that this is only listed under alpha1 not the beta version of the api.

    Then if we look a bit more we find

    2021-10-12 EnhancedMeasurementSettings methods removed from the API.

    enter image description here

    Which seams to say its being removed but will be added back but its a year later and nothing.

    I am going to ping the team and see when it will be added back.