Skip to content

Commit 76ab5e8

Browse files
authored
Merge pull request #6635 from segmentio/ashton-huxtable-patch-7
Add note about empty campaign objects in Analytics.js
2 parents 2caf9f4 + f1a7436 commit 76ab5e8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/connections/sources/catalog/libraries/website/javascript/troubleshooting.md

+4
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ You'll also need to modify the Segment script with your `nonce` tag, which shoul
225225
> info ""
226226
> Since Segment interacts with several integrations, support surrounding Content Security Policy issues is limited.
227227
228+
## Why am I getting an empty campaign object in my event payload?
229+
230+
Analytics.js generates a campaign object inside the context object whenever the URL contains search parameters. Without any UTM parameters, the campaign object remains empty.
231+
228232
## Known issues:
229233

230234
[Review and contribute to these on GitHub](https://github.com/segmentio/analytics.js/issues).

0 commit comments

Comments
 (0)