A simple JSON object is used in these examples for the purpose of clarity. The actual data sent is a full event or visitor object. We also include a single URL parameter of param1 receiving a value of value1 to demonstrate how additional parameters are sent.
Send event/visitor - GET method
When using the GET method with the Send Event Data or Send Visitor Data actions, the data is sent as a single query string parameter named data . The value is a URL-encoded JSON string of the event/visitor data object. Any URL parameters configured are appended as additional query string parameters.
In this example the data is:
"foo" : "bar"}
The resulting URL-encoded JSON string is:
You can see that this appears in the final GET request as the following query string parameter:
USER-AGENT: Apache-HttpClient/4.5.1 (Java/1.8.0_111)
Send event/visitor - POST method
The following are sample POST requests for the application/json and application/x-www-form-urlencodedcontent types.