コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Adobe Analytics GET OR POST method

Avatar

Level 7

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?

1 受け入れられたソリューション

Avatar

正解者
Community Advisor and Adobe Champion

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.

元の投稿で解決策を見る

4 返信

Avatar

Level 8

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

Level 7
Thanks Brian.

Avatar

正解者
Community Advisor and Adobe Champion

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.

Avatar

Level 6

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