Skip to content

Commit

Permalink
update fixes from 3.1.3 (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
imnutz authored Jun 19, 2023
1 parent c4a408c commit 76fb8e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,10 @@ Every time a track functions is called, the following information is sent:
* **td_host** - document host
* **td_path** - document pathname
* **td_referrer** - document referrer
* **td_ip** - request IP (server)*
* **td_browser** - client browser (server)
* **td_browser_version** - client browser version (server)
* **td_os** - client operating system (server)
* **td_os_version** - client operating system version (server)

The following information will be populated by server-side

* **td_ip** - request IP (server)*. This information is only populated when `td_global_id` is enabled using `td.set('$global', 'td_global_id', 'td_global_id')` and is in signed mode.

Certain values cannot be obtained from the browser. For these values, we send matching keys and values, and the server replaces the values upon receipt. For examples: `{"td_ip": "td_ip"}` is sent by the browser, and the server will update it to something like `{"td_ip": "1.2.3.4"}`

Expand Down
2 changes: 1 addition & 1 deletion lib/record.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ exports._sendRecord = function _sendRecord (request, success, error, blockedEven
requestHeaders['Authorization'] = 'TD1 ' + request.apikey
requestHeaders['User-Agent'] = navigator.userAgent

if (this.isGlobalIdEnabled()) {
if (this.inSignedMode() && this.isGlobalIdEnabled()) {
requestHeaders['Content-Type'] = misc.globalIdAdlHeaders['Content-Type']
requestHeaders['Accept'] = misc.globalIdAdlHeaders['Accept']
} else {
Expand Down

0 comments on commit 76fb8e6

Please sign in to comment.