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

SOLVED

[API] What is the different between page element and pageURL ?

aye_monc9735877
Level 1
Level 1

Hi All,

I would like to know if the url return by sending page element in the request is the full page URL or not.

My Request

Report.Queue

{

        "reportDescription": {

          "reportSuiteID": "xxxxxx",

          "dateFrom": "2017-12-01",

          "dateTo": "2018-01-20",

          "metrics": [

            { "id": "visits" },

            { "id": "bounceRate" },

            { "id": "pageViews" },

            { "id": "averagetimespentonpage" }

          ],

          "elements": [

            {

              "id": "page",

              "top": 10,

              "startingWith": 1

            }

          ]

        }

      }

1 Accepted Solution
Abhijeet_Mishra
Correct answer by
Employee
Employee

Hi,

'Page' represents the 's.pagename' variable of Reports & Analytics and hence would return whatever value you have collected in this dimension. If you don't pass any value in this variable in your implementation, then it by default captures the URL. This variable has a limit of 100 bytes hence characters post that are stripped.

If you are looking to get URL values via API, I'd recommend using the 'pageURL' element. However, please note that it's only available in Data Warehouse API hence please ensure you specific 'warehouse' as the 'source' within the payload.

View solution in original post

3 Replies
Abhijeet_Mishra
Correct answer by
Employee
Employee

Hi,

'Page' represents the 's.pagename' variable of Reports & Analytics and hence would return whatever value you have collected in this dimension. If you don't pass any value in this variable in your implementation, then it by default captures the URL. This variable has a limit of 100 bytes hence characters post that are stripped.

If you are looking to get URL values via API, I'd recommend using the 'pageURL' element. However, please note that it's only available in Data Warehouse API hence please ensure you specific 'warehouse' as the 'source' within the payload.

View solution in original post

aye_monc9735877
Level 1
Level 1

Hello,

Thanks for the reply. You was saying that maximum length of the url return by requesting page element is 100 bytes. However i was able to get URL length up to 225 chars based on my testing. I also called the support yesterday, she told me that URL return by requesting page element and pageURL from datawarehouse are the same. I would expect to get more exact answer in this case.

Thanks,

Aye Mon.

Gigazelle
Employee
Employee

PageName has a limit of 100 bytes; pageURL actually has a limit of 255 bytes.