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
BedrockMission!

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
Unlock
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct Reply

5 solutions
Top badges earned
Unlock
Publish 5
Publish 3
Publish 10
Publish 1
View profile

Avatar
Unlock
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct Reply

5 solutions
Top badges earned
Unlock
Publish 5
Publish 3
Publish 10
Publish 1
View profile
justin_grover
Employee

14-07-2014

Great suggestion.

Avatar

Avatar
Unlock
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct Reply

5 solutions
Top badges earned
Unlock
Publish 5
Publish 3
Publish 10
Publish 1
View profile

Avatar
Unlock
Employee
justin_grover
Employee

Likes

15 likes

Total Posts

148 posts

Correct Reply

5 solutions
Top badges earned
Unlock
Publish 5
Publish 3
Publish 10
Publish 1
View profile
justin_grover
Employee

21-07-2014

Avatar

Avatar
Applaud 500
MVP
Asheesh_P
MVP

Likes

129 likes

Total Posts

334 posts

Correct Reply

144 solutions
Top badges earned
Applaud 500
Affirm 100
Contributor
Boost 100
Give Back 10
View profile

Avatar
Applaud 500
MVP
Asheesh_P
MVP

Likes

129 likes

Total Posts

334 posts

Correct Reply

144 solutions
Top badges earned
Applaud 500
Affirm 100
Contributor
Boost 100
Give Back 10
View profile
Asheesh_P
MVP

16-03-2019