Skip to content

Commit

Permalink
Disable b64 for SDJ data on POST requests from browsers by default
Browse files Browse the repository at this point in the history
In POST requests this usually results in a smaller payload size, and is easier to debug. The node tracker shares this setting across multiple emitters that may not all use POST so we can't make this assumption there.
  • Loading branch information
jethron committed Oct 4, 2024
1 parent baec2a9 commit 21cd75d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/browser-tracker-core/src/tracker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export function Tracker(

let // Tracker core
core = trackerCore({
base64: trackerConfiguration.encodeBase64,
base64: trackerConfiguration.encodeBase64 ?? trackerConfiguration.eventMethod !== 'post',
corePlugins: browserPlugins,
callback: sendRequest,
}),
Expand Down

0 comments on commit 21cd75d

Please sign in to comment.