Skip to content

Commit 6e4bb6d

Browse files
committed
DOC-136 [netlify-ignore]
1 parent 0b9a7fd commit 6e4bb6d

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed
File renamed without changes.

src/connections/sources/catalog/libraries/website/javascript/analytics-js-2.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ Once enabled, after 5 minutes or less, the updated code is delivered.
4242
To revert back to the previous version of Analytics.js, disable the Analytics 2.0 toggle on any source you've enabled it.
4343

4444
## Cases that require manual upgrade
45-
<<<<<<< HEAD
4645
There are two cases where upgrading to Analytics.js 2.0 requires manual effort beyond enabling the Analytics.js 2.0 toggle.
4746

4847
### When using in-domain instrumentation CDN aliasing
@@ -52,24 +51,10 @@ If the source you intend to upgrade uses the in-domain instrumentation as well a
5251
### When using a strict content security policy on the page
5352

5453
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:
55-
=======
56-
We identified the following two cases where upgrading Analytics 2.0 requires manual effort beyond just enabling the Analytics 2.0 toggle.
57-
58-
### When using in-domain instrumentation CDN aliasing
59-
If your source uses the in-domain instrumentation as well as a custom "Alias for analytics.js", then you should update the AJS snippet to the latest version (4.13.2
60-
or higher) before toggling Analytics 2.0 on.
61-
62-
### When using a strict content security policy on the page
63-
Analytics 2.0 asynchronously loads different pieces of the library as needed, and therefore, if your source 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 2.0. Therefore, beyond allowing the main analytics.min.js script, you should allow the following paths in your CSP:
64-
>>>>>>> master
6554
- `https://cdn.segment.com/v1/projects/<WRITE_KEY>/settings`
6655
- `https://cdn.segment.com/analytics-next/bundles/*`
6756
- `https://cdn.segment.com/next-integrations/integrations/*`
6857

69-
<<<<<<< HEAD
70-
71-
=======
72-
>>>>>>> master
7358
## Open source libraries
7459

7560
Analytics.js 2.0 includes the following open source components:

0 commit comments

Comments
 (0)