snowplow / snowplow-javascript-tracker

Snowplow event tracker for client-side and server-side JavaScript. Add analytics to your websites, web apps and servers.
http://snowplowanalytics.com
BSD 3-Clause "New" or "Revised" License
555 stars 222 forks source link

Provide option not to retry on event send failure (close #1248) #1257

Closed greg-el closed 1 year ago

greg-el commented 1 year ago

This PR adds an option to the newTracker config, which allows the user to choose if they want to retry sending events in the case of a sending failure, e.g.:

newTracker(..., {
    retryFailures: true,
});
bundlemon[bot] commented 1 year ago

BundleMon

Files added (6) Status | Path | Size | Limits :------------: | ------------ | :------------: | :------------: :white_check_mark: | libraries/browser-tracker-core/dist/index.mod
ule.js
| +25.41KB | 26KB / +10% :white_check_mark: | trackers/javascript-tracker/dist/sp.js
| +24.25KB | 25KB / +10% :white_check_mark: | trackers/javascript-tracker/dist/sp.lite.js
| +14.89KB | 15KB / +10% :white_check_mark: | trackers/browser-tracker/dist/index.umd.min.j
s
| +14.73KB | 15KB / +10% :white_check_mark: | libraries/tracker-core/dist/index.module.js
| +13.35KB | 15KB / +10% :white_check_mark: | trackers/browser-tracker/dist/index.module.js
| +3.51KB | 5KB / +10%

Total files change +96.13KB 0%

Final result: :white_check_mark:

View report in BundleMon website ➡️


Current branch size history