MCPcopy Create free account
hub / github.com/GetStream/stream-go2 / TrackImpression

Method TrackImpression

analytics.go:24–27  ·  view source on GitHub ↗

TrackImpression is used to send and track analytics ImpressionEvents.

(ctx context.Context, eventsData ImpressionEventsData)

Source from the content-addressed store, hash-verified

22
23// TrackImpression is used to send and track analytics ImpressionEvents.
24func (c *AnalyticsClient) TrackImpression(ctx context.Context, eventsData ImpressionEventsData) (*BaseResponse, error) {
25 endpoint := c.client.makeEndpoint("impression/")
26 return decode(c.client.post(ctx, endpoint, eventsData, c.client.authenticator.analyticsAuth))
27}
28
29// RedirectAndTrack is used to send and track analytics ImpressionEvents. It tracks
30// the events data (either EngagementEvents or ImpressionEvents) and redirects to the provided

Callers 1

Calls 3

decodeFunction · 0.85
makeEndpointMethod · 0.80
postMethod · 0.80

Tested by 1