From a29ccbd4ed14da4bb5dcb7ad372dda513266ce81 Mon Sep 17 00:00:00 2001 From: Ashton Huxtable <78318468+ashton-huxtable@users.noreply.github.com> Date: Fri, 10 Mar 2023 11:45:53 -0700 Subject: [PATCH 1/3] Add info about source options for subdomains --- .../sources/catalog/libraries/website/javascript/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/connections/sources/catalog/libraries/website/javascript/index.md b/src/connections/sources/catalog/libraries/website/javascript/index.md index 59eb5ed187..9f1d9ccc2b 100644 --- a/src/connections/sources/catalog/libraries/website/javascript/index.md +++ b/src/connections/sources/catalog/libraries/website/javascript/index.md @@ -760,6 +760,8 @@ Analytics.js tracks across subdomains out of the box; all Segment destinations f To track activity on your subdomains, include the Segment Analytics.js snippet on each subdomain. Segment sets users' `anonymousId` on the top-level domain, so users are tracked across any subdomains. +Since Segment tracks across subdomains out of the box, you can use the same Segment source, or separate sources for each one. This decision will depend entirely upon your teams goals for tracking each subdomain. + ## UTM Tracking UTM parameters are only used when linking to your site from outside your domain. When a visitor arrives using a link containing UTM parameters, Segment's analytics.js library will parse the URL query string and add the information to the event payload. For more information about UTM tracking, see the [Tracking Customers Across Channels and Devices](/docs/guides/how-to-guides/cross-channel-tracking/) documentation. From c587b680eeabd6739cdaa92b3b92b7b276930cd8 Mon Sep 17 00:00:00 2001 From: Ashton Huxtable <78318468+ashton-huxtable@users.noreply.github.com> Date: Thu, 16 Mar 2023 11:08:39 -0600 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: stayseesong <83784848+stayseesong@users.noreply.github.com> --- .../sources/catalog/libraries/website/javascript/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connections/sources/catalog/libraries/website/javascript/index.md b/src/connections/sources/catalog/libraries/website/javascript/index.md index 9f1d9ccc2b..50818bc27e 100644 --- a/src/connections/sources/catalog/libraries/website/javascript/index.md +++ b/src/connections/sources/catalog/libraries/website/javascript/index.md @@ -758,9 +758,9 @@ Segment offers video player 'plugins' so you can quickly collect video events us Analytics.js tracks across subdomains out of the box; all Segment destinations fully support this feature. -To track activity on your subdomains, include the Segment Analytics.js snippet on each subdomain. Segment sets users' `anonymousId` on the top-level domain, so users are tracked across any subdomains. +To track activity on your subdomains, include the Segment Analytics.js snippet on each subdomain. Segment sets users' `anonymousId` on the top-level domain, so users are tracked across any subdomain. -Since Segment tracks across subdomains out of the box, you can use the same Segment source, or separate sources for each one. This decision will depend entirely upon your teams goals for tracking each subdomain. +Since Segment tracks across subdomains, you can either use the same Segment source, or use separate sources for each subdomain. What you decide depends on your teams goals for tracking each subdomain. ## UTM Tracking From c15da272c11573d53544e963a896b3d6f00e09a5 Mon Sep 17 00:00:00 2001 From: stayseesong <83784848+stayseesong@users.noreply.github.com> Date: Fri, 17 Mar 2023 14:21:40 -0700 Subject: [PATCH 3/3] Update index.md --- .../sources/catalog/libraries/website/javascript/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/connections/sources/catalog/libraries/website/javascript/index.md b/src/connections/sources/catalog/libraries/website/javascript/index.md index 50818bc27e..a384cde573 100644 --- a/src/connections/sources/catalog/libraries/website/javascript/index.md +++ b/src/connections/sources/catalog/libraries/website/javascript/index.md @@ -756,11 +756,11 @@ Segment offers video player 'plugins' so you can quickly collect video events us ## Cross-subdomain analytics -Analytics.js tracks across subdomains out of the box; all Segment destinations fully support this feature. +Analytics.js tracks across subdomains out of the box. All Segment destinations fully support this feature. -To track activity on your subdomains, include the Segment Analytics.js snippet on each subdomain. Segment sets users' `anonymousId` on the top-level domain, so users are tracked across any subdomain. +To track activity on your subdomains, include the Segment Analytics.js snippet on each subdomain. Segment sets users' `anonymousId` on the top-level domain, so that users are tracked across any subdomain. -Since Segment tracks across subdomains, you can either use the same Segment source, or use separate sources for each subdomain. What you decide depends on your teams goals for tracking each subdomain. +Because Segment tracks across subdomains, you can either use the same Segment source, or use separate sources for each subdomain. What you decide depends on your team's goals for tracking each subdomain. ## UTM Tracking