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

Adobe Analytics GET OR POST method

Avatar

Avatar
Validate 1
Level 1
pradeep_07
Level 1

Like

1 like

Total Posts

56 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
pradeep_07
Level 1

Like

1 like

Total Posts

56 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
Boost 1
Applaud 5
View profile
pradeep_07
Level 1

14-08-2020

Hi 

 

I understand that  Adobe web application (JavaScript) uses the HTTP GETS method to process requests for information, which includes confidential data . Then the expert indicates that instead of using the GETS method the web application should use POST. Is it possible to make this change? How can we do it?

 

What is the best practice?

GET or POST method

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar
Establish
MVP
evolytics_brian
MVP

Likes

70 likes

Total Posts

145 posts

Correct Reply

44 solutions
Top badges earned
Establish
Seeker
Give Back
Engage 1
Boost 50
View profile

Avatar
Establish
MVP
evolytics_brian
MVP

Likes

70 likes

Total Posts

145 posts

Correct Reply

44 solutions
Top badges earned
Establish
Seeker
Give Back
Engage 1
Boost 50
View profile
evolytics_brian
MVP

14-08-2020

Hi, @pradeep_07 -

AppMeasurement doesn't have an option to manually force a POST call. It will, however, automatically generate a POST call if the request size is greater than 2047 bytes.

While this would totally be an unsupported modification to the AppMeasurement.js library, and would require that any future updates to the library that you install on your site undergo the same modification, you could do a search for "2047" and replace both instances with a smaller threshold (2?) to ensure that all calls go out as POST rather than GET. 

Avatar

Avatar
Give Back
Level 4
kainth
Level 4

Likes

46 likes

Total Posts

117 posts

Correct Reply

24 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Give Back
Level 4
kainth
Level 4

Likes

46 likes

Total Posts

117 posts

Correct Reply

24 solutions
Top badges earned
Give Back
Boost 5
Boost 3
Boost 25
Boost 10
View profile
kainth
Level 4

17-08-2020

Hi @pradeep_07 ,

Based on my understanding, if there are more than 2047 characters in your Analytics server call then the server call automatically gets converted to POST but if you have less than 2047 characters in your request then the workaround would be to use Data Insertion API, which will allow you to send the data either in GET or POST calls. For more information on how to send the data in POST call, you can refer to the below documentation link.

 

Link: https://github.com/AdobeDocs/analytics-1.4-apis/blob/master/docs/data-insertion-api/overview/c_data_...

Hope this helps.

Regards,

Abhinav

Avatar

Avatar
Affirm 250
Moderator
PratheepArunRaj
Moderator

Likes

292 likes

Total Posts

831 posts

Correct Reply

252 solutions
Top badges earned
Affirm 250
Contributor
Springboard
Shape 1
Validate 10
View profile

Avatar
Affirm 250
Moderator
PratheepArunRaj
Moderator

Likes

292 likes

Total Posts

831 posts

Correct Reply

252 solutions
Top badges earned
Affirm 250
Contributor
Springboard
Shape 1
Validate 10
View profile
PratheepArunRaj
Moderator

14-08-2020

Dear Pradeep,

Instead of JavaScript beacon Data Insertion API provides a mechanism for server-side data collection and submission to Experience Cloud servers. This method supports both HTTP POST and HTTP GET for submitting data to Adobe Experience Cloud servers. Below link will help you with the implementation:

Link: https://github.com/AdobeDocs/analytics-1.4-apis/blob/master/docs/data-insertion-api/c_data_insertion...

If security is a concern for you, you can use this method, but make sure you read all the advantages and disadvantages of the method before making the changes.

Thank You, Arun.