Analytics API 2.0: How to Apply Segments When Creating Calculated Metrics?

Avatar

Avatar
Boost 3
Level 1
carolinew371713
Level 1

Likes

3 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Boost 3
Level 1
carolinew371713
Level 1

Likes

3 likes

Total Posts

2 posts

Correct reply

0 solutions
Top badges earned
Boost 3
Boost 1
Applaud 5
View profile
carolinew371713
Level 1

18-12-2019

Hello all,

I am trying to move from the 1.4 API over to the 2.0 API.

When using the [POST] /calculatedmetrics endpoint in 2.0 to create a new calculated metric, I can't figure out how to apply a segment to my calculated metric definition.

In 1.4, I was able to define the "segments" array inside the "definition" parameter for the calculated metric. Now it seems that this is no longer the case.

I can't find anything relevant to this in the documentation, so does anyone know how to achieve this in the 2.0 Analytics API?

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Coach
MVP
ursboller
MVP

Likes

525 likes

Total Posts

1,020 posts

Correct reply

257 solutions
Top badges earned
Coach
Contributor
Bedrock
Seeker
Springboard
View profile

Avatar
Coach
MVP
ursboller
MVP

Likes

525 likes

Total Posts

1,020 posts

Correct reply

257 solutions
Top badges earned
Coach
Contributor
Bedrock
Seeker
Springboard
View profile
ursboller
MVP

20-12-2019

never tryed myself, but I would do the following: open analytics, create a calculated metric (with segment) and save. now inspect network traffic to see the "save request", within the request you can see how to apply the segment ...