Google Analytics Admin API — Data Streams (GA4).
REST: properties/{property}/dataStreams
Docs: https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1beta/properties.dataStreams
Summary
Functions
POST properties/{property}/dataStreams — create a data stream.
DELETE a data stream.
GET properties/{property}/dataStreams/{dataStream} — get a stream.
GET properties/{property}/dataStreams — list streams for a property.
PATCH a data stream. Optional :update_mask.
Types
@type result() :: {:ok, term()} | {:error, Noizu.Google.Error.t()}
Functions
POST properties/{property}/dataStreams — create a data stream.
Body example (web stream):
%{
type: "WEB_DATA_STREAM",
displayName: "example.com",
webStreamData: %{
defaultUri: "https://example.com"
}
}
DELETE a data stream.
GET properties/{property}/dataStreams/{dataStream} — get a stream.
Prefer get(property, stream_id, opts). Full resource names are accepted as
property when they already contain /dataStreams/.
GET properties/{property}/dataStreams — list streams for a property.
PATCH a data stream. Optional :update_mask.