Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Retrieving segment definitions via API

Avatar

Avatar
Boost 5
Level 2
paull75389211
Level 2

Likes

13 likes

Total Posts

4 posts

Correct reply

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

Avatar
Boost 5
Level 2
paull75389211
Level 2

Likes

13 likes

Total Posts

4 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
paull75389211
Level 2

14-07-2014

We want to document and track versions of SiteCatalyst segment definitions outside of the system. 

 

The way we do this now is copy/pasting from the information window in SiteCatalyst but it's inefficient and prone to errors (e.g. marking exclusion blocks).

 

Looking a bit further into it I can see that when the information icon is clicked to view the segment definition it actually retrieves a json object from an appservice:

 

https://appservice1.omniture.com/analytics/1.0/segments/?expansion=definition

 

Which looks like this (apologies for this formatting):

 

{
  • "id": "53aaaf4ce4b0acd00fa0563b",
  • "name": "",
  • "description": null,
  • "rsid": "",
  • "owner":{
    • "id": 440376
    },
  • "definition":{
    • "container":{
      • "context": "hits",
      • "func": "container",
      • "pred":{
        • "val":{
          • "description": "Pages (Conversion) (evar7)",
          • "name": "variables/evar7",
          • "func": "attr"
          },
        • "str": "",
        • "func": "streq"
        }
      },
    • "func": "segment",
    • "version":[
      • 1,
      • 0,
      • 0
      ]
    }
}
 
When calling that url with a different segment id the response returns access denied (as it should). I would like to be able to download all json responses from any report suite for all segments though. Either through calling this service or via the SC API. 
3 Comments

Avatar

Avatar
Seeker
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct reply

5 solutions
Top badges earned
Seeker
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Seeker
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct reply

5 solutions
Top badges earned
Seeker
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
justin_grover
Employee

14-07-2014

Great suggestion.

Avatar

Avatar
Seeker
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct reply

5 solutions
Top badges earned
Seeker
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Seeker
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct reply

5 solutions
Top badges earned
Seeker
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
justin_grover
Employee

21-07-2014

Avatar

Avatar
Coach
Community Advisor
Asheesh_Pandey
Community Advisor

Likes

132 likes

Total Posts

337 posts

Correct reply

147 solutions
Top badges earned
Coach
Applaud 500
Affirm 100
Give back 300
Boost 100
View profile

Avatar
Coach
Community Advisor
Asheesh_Pandey
Community Advisor

Likes

132 likes

Total Posts

337 posts

Correct reply

147 solutions
Top badges earned
Coach
Applaud 500
Affirm 100
Give back 300
Boost 100
View profile
Asheesh_Pandey
Community Advisor

16-03-2019