Skip to content

Commit 17a110d

Browse files
committed
update ajs2 upgrade docs[netlify-build]
1 parent c94dafb commit 17a110d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,14 @@ In some cases, upgrading to Analytics.js 2.0 requires manual effort beyond enabl
3939

4040
### When using in-domain instrumentation CDN aliasing
4141

42-
If the source you intend to upgrade 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 or higher) before you toggle on Analytics.js 2.0.
42+
If the source you intend to upgrade 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 or higher) before you toggle on Analytics.js 2.0.
43+
44+
To ensure that AJS is loaded from your indomain CDN, add the following to your javascript snippet, directly after `analytics._writeKey="<WRITE_KEY>";`:
45+
46+
- `analytics._cdn="<YOUR_CDN_URL>"`
47+
48+
The updated snippet should read `...analytics._writeKey="<WRITE_KEY>";analytics._cdn="<YOUR_CDN_URL>"`.
49+
4350

4451
### When relying on Analytics.js Classic's `ajs_anonymous_id` cookie format
4552

0 commit comments

Comments
 (0)