Skip to content

Commit d780b6c

Browse files
Add note about empty campaign object
1 parent 4b8050c commit d780b6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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+
When any search parameters are present in the URL, Analytics.js will generate a campaign object inside the context object. If there are no UTM parameters present to be parsed, then the campaign object will remain 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)