From a4cbceabcafabac5863fb6d98380516f7d642643 Mon Sep 17 00:00:00 2001 From: Ariel Silvestri Date: Fri, 21 Jan 2022 15:26:02 -0500 Subject: [PATCH 1/3] Adds a blurb about trackLink's update --- .../catalog/libraries/website/javascript/upgrade-to-ajs2.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md b/src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md index c148ab7dc3..e505f0f68f 100644 --- a/src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md +++ b/src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md @@ -54,3 +54,7 @@ Analytics.js 2.0 asynchronously loads different pieces of the library as needed. - `https://cdn.segment.com/v1/projects//settings` - `https://cdn.segment.com/analytics-next/bundles/*` - `https://cdn.segment.com/next-integrations/integrations/*` + +### Using trackLink on elements that are not links + +Previously, it was possible to attach `trackLink` to any element, and a trackLink call would fire for that element if it wasn't a link. Now, when you attach `trackLink` to an element, if that element is not a link, an additional search of that element’s children occurs to see if it contains any nested links and fires track calls based off of those links. If you wish to fire track calls on non-link elements that have links as children, you can use a `track` call instead. From 9ff7bdd2ade5cff1e1982777defe7433b163a4fc Mon Sep 17 00:00:00 2001 From: Ariel Silvestri Date: Fri, 21 Jan 2022 15:26:41 -0500 Subject: [PATCH 2/3] Slight style change --- .../catalog/libraries/website/javascript/upgrade-to-ajs2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md b/src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md index e505f0f68f..c67bd401a2 100644 --- a/src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md +++ b/src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md @@ -57,4 +57,4 @@ Analytics.js 2.0 asynchronously loads different pieces of the library as needed. ### Using trackLink on elements that are not links -Previously, it was possible to attach `trackLink` to any element, and a trackLink call would fire for that element if it wasn't a link. Now, when you attach `trackLink` to an element, if that element is not a link, an additional search of that element’s children occurs to see if it contains any nested links and fires track calls based off of those links. If you wish to fire track calls on non-link elements that have links as children, you can use a `track` call instead. +Previously, it was possible to attach `trackLink` to any element, and a `trackLink` call would fire for that element if it wasn't a link. Now, when you attach `trackLink` to an element, if that element is not a link, an additional search of that element’s children occurs to see if it contains any nested links and fires track calls based off of those links. If you wish to fire track calls on non-link elements that have links as children, you can use a `track` call instead. From dbc33583dba7145ba346ca836430440bd1b1db50 Mon Sep 17 00:00:00 2001 From: rchinn-segment <93161299+rchinn-segment@users.noreply.github.com> Date: Mon, 24 Jan 2022 09:34:54 -0800 Subject: [PATCH 3/3] Update upgrade-to-ajs2.md --- .../catalog/libraries/website/javascript/upgrade-to-ajs2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md b/src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md index c67bd401a2..ebf708bec2 100644 --- a/src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md +++ b/src/connections/sources/catalog/libraries/website/javascript/upgrade-to-ajs2.md @@ -17,7 +17,7 @@ To upgrade a source to Analytics.js 2.0: 6. Open the Debugger to ensure that events are flowing as expected. > info "" -> If you set `'Segment.io:' false` in the integrations object, Analytics.js 2.0 drops the event before it reaches the Source Debugger. +> If you set `'Segment.io:' false` in the integrations object, Analytics.js 2.0 drops the event before it reaches the Source Debugger. ## Automatic migration @@ -57,4 +57,4 @@ Analytics.js 2.0 asynchronously loads different pieces of the library as needed. ### Using trackLink on elements that are not links -Previously, it was possible to attach `trackLink` to any element, and a `trackLink` call would fire for that element if it wasn't a link. Now, when you attach `trackLink` to an element, if that element is not a link, an additional search of that element’s children occurs to see if it contains any nested links and fires track calls based off of those links. If you wish to fire track calls on non-link elements that have links as children, you can use a `track` call instead. +Previously, it was possible to attach `trackLink` to any element, and a `trackLink` call would fire for that element if it wasn't a link. Now, when you attach `trackLink` to a non-link element, an additional search of that element’s children occurs for any nested links and fires track calls based on those links. If you wish to fire track calls on non-link elements that have links as children, you can use a `track` call instead.