TrackImpression is used to send and track analytics ImpressionEvents.
(ctx context.Context, eventsData ImpressionEventsData)
| 22 | |
| 23 | // TrackImpression is used to send and track analytics ImpressionEvents. |
| 24 | func (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 |