Skip to content

Commit e0f7172

Browse files
authored
Merge pull request #4334 from segmentio/jfoskin-patch-1
First party cookies
2 parents b7885ae + 1a9574d commit e0f7172

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/connections/sources/catalog/libraries/website/javascript/troubleshooting.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ This works for any [context field](/docs/connections/spec/common/#context) that
134134
### What is the impact of exposing the source's write keys?
135135

136136
For the Segment script to work in the browser, you need to expose the write key in order for client-side tracking to work. Segment's library architecture requires the write key to be exposed, similar to that of other major tools like Google Analytics, Mixpanel, Kissmetrics, Hubspot, and Marketo.
137-
137+
138138
If you see any unusual behavior associated with your write key, you can generate a new key. Navigate to **Connections > Sources** and select your source. On the **Settings** tab, go to the **API Keys** section, and click **Generate New Key**.
139139

140140
If you want to hide the write key, you can use Segment's [HTTP Tracking API source](/docs/connections/sources/catalog/libraries/server/http-api/) or one of the other [server-side libraries](/docs/connections/sources/catalog/#server).
@@ -157,6 +157,11 @@ analytics.track("Order Completed", {}, {
157157
158158
Some destinations accept properties only. As a result, custom context fields you add may not forward to these destinations.
159159

160+
### Why am I seeing additional cookies on my website?
161+
162+
The AJS cookies being set under segment.com are first-party cookies. They are part of Segment's own implementation as well as the destination Segment uses. These cookies are not related to your implementation of Segment, and you only see them because you've visited Segment's domain using the same browser. They are sent to the writekey connected to Segment's own workspace, and are associated with the events Segment tracks when you visit segment.com.
163+
164+
160165
## Known issues:
161166

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

0 commit comments

Comments
 (0)