@financial-times/o-tracking
Advanced tools
Comparing version 4.3.2 to 4.4.0
# Changelog | ||
## [4.4.0](https://www.github.com/Financial-Times/origami/compare/o-tracking-v4.3.2...o-tracking-v4.4.0) (2022-07-12) | ||
### Features | ||
* o-tracking, add test mode minus debug logs ([fcea526](https://www.github.com/Financial-Times/origami/commit/fcea526f883ce422e5cd48f7b318242afa7fced8)) | ||
### [4.3.2](https://www.github.com/Financial-Times/origami/compare/o-tracking-v4.3.1...o-tracking-v4.3.2) (2022-04-21) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@financial-times/o-tracking", | ||
"version": "4.3.2", | ||
"version": "4.4.0", | ||
"description": "Provides tracking for a product. Tracking requests are sent to the Spoor API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -93,2 +93,14 @@ # o-tracking | ||
o-tracking also has a `test-data` mode to mark events as test events without the debugging information in the console: | ||
```js | ||
import oTracking from '@financial-times/o-tracking'; | ||
const config = { | ||
test_data: true, // Mark the events as test events without extra debug logging. | ||
... | ||
}; | ||
oTracking.init(config); | ||
``` | ||
#### Methods | ||
@@ -95,0 +107,0 @@ |
@@ -50,3 +50,3 @@ import {get as getSetting} from './settings.js'; | ||
if (getSetting('config').test) { | ||
if (getSetting('config').test || getSetting('config').test_data) { | ||
system.is_live = false; | ||
@@ -53,0 +53,0 @@ } else { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151324
339