Skip to content

Commit 9809926

Browse files
committed
Adding admonition infrastructure
1 parent e7bbaae commit 9809926

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ If the source you intend to upgrade uses the in-domain instrumentation as well a
4848

4949
Analytics.js 2.0 removes inbuilt quotes from cookie values, resulting in a different format for the `ajs_anonymous_id` value when compared to Analytics.js Classic. Though you can retrieve cookie values with [standard supported functions](/docs/connections/sources/catalog/libraries/website/javascript/identity/#retrieve-the-anonymous-id), you'll need to configure your environment to accept the new format if your implementation relies on accessing the cookie value directly.
5050

51+
> warning " Using the`utility` plugin"
52+
> Users who
53+
5154
### Using a strict content security policy on the page
5255

5356
Analytics.js 2.0 asynchronously loads different pieces of the library as needed. If the source you're upgrading uses a strict Content Security Policy (CSP) that allows JavaScript to be downloaded from specific locations, then you need to update the CSP to account for all the pieces used for Analytics.js 2.0. Therefore, beyond allowing the main analytics.min.js script, you should allow the following paths in your CSP:

0 commit comments

Comments
 (0)