Request example:

POST: https://google-analytics.bi.owox.com/collect?tid=UA-12345-1

Payload: v=1&tid=UA-12345-1&cid=555&t=pageview&dp=%2Fhome

An example of payload data:

v=1                                              // Protocol version
&tid=UA-XXXXX-Y                                  // Tracking ID / Web Property ID
&cid=555                                         // Client ID

&t=screenview                                    // Hit type: Screenview
&an=funTimes                                     // Application name
&av=4.2.0                                        // Application version
&cd=Home // Screen name (required for mobile properties) &ds=app // Data source &cdXX={clientId}+'_'+{timestamp in milliseconds} // OWOX BI Session ID
&qt=123456 // The time delta (in milliseconds) between when the hit
// being reported occurred and the time the hit was sent

In the GET-parameter of the request, you should specify the &tid parameter — the ID of the Google Analytics property that you’ve specified while creating a pipeline for user behavior data.
The body of the request has to be equal to the same in Google Analytics request (parameters reference).

Also, note that the data sent to https://google-analytics.bi.owox.com/collect?tid=UA-XXXX-X displayed only BigQuery only. To send data to Google Analytics you need to make HTTP request to the endpoint https://www.google-analytics.com/collect.

Please note:
To ensure that the hit you send becomes available in the session streaming tables, you should also send sessionID as a custom dimension in Google Analyitcs.

Data Updates:

The hits sent via the Measurement Protocol will be available in hit streaming tables for the required time if sent with the qt (Queue Time) parameter.
The hits will only be available in the session streaming tables if received within no more than 48 hours since the end of the day in the time zone specified in the Google Analytics view. In this case the hits will be associated with the corresponding sessions, according to the clientID and the timestamp sent as custom dimensions.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.