From 9fee0e051c1c43faeb9c0654f29b52e8108b8f96 Mon Sep 17 00:00:00 2001
From: Eric Schneider <37347760+eric-schneider@users.noreply.github.com>
Date: Thu, 9 Jan 2025 10:49:24 -0800
Subject: [PATCH 01/20] Add consent management link to footer
---
src/partials/footer.hbs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/partials/footer.hbs b/src/partials/footer.hbs
index 694938a..00a739f 100644
--- a/src/partials/footer.hbs
+++ b/src/partials/footer.hbs
@@ -24,6 +24,11 @@
target="_blank"
data-track="Footer Terms of Use Link Clicked"
>Terms of use
+ |
+ Do Not Sell My Info
Apache, Apache
From 35bacac5dc2052c0ec4645a99d6de8d8c4bbe621 Mon Sep 17 00:00:00 2001
From: Cole Goldsmith
Date: Thu, 9 Jan 2025 16:37:34 -0600
Subject: [PATCH 02/20] dynamic footer text and consent context added to
segment calls
---
src/js/04-segment-analytics.js | 19 +++++++++++++++++--
src/js/05-feedback-dialog.js | 10 ++++++++++
src/js/07-copy-to-clipboard.js | 10 ++++++++++
src/partials/footer.hbs | 3 ++-
src/partials/head-prelude.hbs | 9 +++++++++
5 files changed, 48 insertions(+), 3 deletions(-)
diff --git a/src/js/04-segment-analytics.js b/src/js/04-segment-analytics.js
index 04791bb..bc088f2 100644
--- a/src/js/04-segment-analytics.js
+++ b/src/js/04-segment-analytics.js
@@ -5,13 +5,28 @@
const trackedLinkElements = document.querySelectorAll('a[data-track]')
const trackedElements = document.querySelectorAll('[data-track]:not(a)')
+ const context = {
+ context: {
+ consent: {
+ categoryPreferences: {
+ advertising: 'behavioral_advertising',
+ ketch_purpose_code: 'ketch_purpose_code',
+ analytics: 'analytics',
+ data_broking: 'data_broking',
+ personalization: 'personalization',
+ essential_services: 'essential_services',
+ },
+ },
+ },
+ }
+
trackedLinkElements.forEach((element) => {
- window.analytics.trackLink(element, element.dataset.track)
+ window.analytics.trackLink(element, element.dataset.track, context)
})
trackedElements.forEach((element) => {
element.addEventListener('click', (e) => {
- window.analytics.track(element.dataset.track)
+ window.analytics.track(element.dataset.track, context)
})
})
}
diff --git a/src/js/05-feedback-dialog.js b/src/js/05-feedback-dialog.js
index d5a4000..acfa28a 100644
--- a/src/js/05-feedback-dialog.js
+++ b/src/js/05-feedback-dialog.js
@@ -43,6 +43,16 @@
if (message && window.analytics) {
window.analytics.track('Feedback Form', {
message,
+ consent: {
+ categoryPreferences: {
+ advertising: 'behavioral_advertising',
+ ketch_purpose_code: 'ketch_purpose_code',
+ analytics: 'analytics',
+ data_broking: 'data_broking',
+ personalization: 'personalization',
+ essential_services: 'essential_services',
+ },
+ },
})
}
form.elements.message.value = ''
diff --git a/src/js/07-copy-to-clipboard.js b/src/js/07-copy-to-clipboard.js
index 559e9d2..d8719ca 100644
--- a/src/js/07-copy-to-clipboard.js
+++ b/src/js/07-copy-to-clipboard.js
@@ -98,6 +98,16 @@
snippetLanguage: language,
snippetTitle: title,
snippetSample: sample,
+ consent: {
+ categoryPreferences: {
+ advertising: 'behavioral_advertising',
+ ketch_purpose_code: 'ketch_purpose_code',
+ analytics: 'analytics',
+ data_broking: 'data_broking',
+ personalization: 'personalization',
+ essential_services: 'essential_services',
+ },
+ },
})
}
}
diff --git a/src/partials/footer.hbs b/src/partials/footer.hbs
index 00a739f..ca33cc6 100644
--- a/src/partials/footer.hbs
+++ b/src/partials/footer.hbs
@@ -26,9 +26,10 @@
>Terms of use
|
Do Not Sell My Info
+ >Manage Privacy Choices
Apache, Apache
diff --git a/src/partials/head-prelude.hbs b/src/partials/head-prelude.hbs
index 897dc0b..e5c93ea 100644
--- a/src/partials/head-prelude.hbs
+++ b/src/partials/head-prelude.hbs
@@ -11,4 +11,13 @@
{{/with}}
{{#with site.keys.ketchSmartTagUrl}}
+
{{/with}}
From c0dd2bcb8706fe60c5a9bd9cf0d9a518beda47b7 Mon Sep 17 00:00:00 2001
From: Cole Goldsmith
Date: Thu, 9 Jan 2025 16:39:40 -0600
Subject: [PATCH 03/20] fix consent object
---
src/js/04-segment-analytics.js | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/js/04-segment-analytics.js b/src/js/04-segment-analytics.js
index bc088f2..397defe 100644
--- a/src/js/04-segment-analytics.js
+++ b/src/js/04-segment-analytics.js
@@ -6,16 +6,14 @@
const trackedElements = document.querySelectorAll('[data-track]:not(a)')
const context = {
- context: {
- consent: {
- categoryPreferences: {
- advertising: 'behavioral_advertising',
- ketch_purpose_code: 'ketch_purpose_code',
- analytics: 'analytics',
- data_broking: 'data_broking',
- personalization: 'personalization',
- essential_services: 'essential_services',
- },
+ consent: {
+ categoryPreferences: {
+ advertising: 'behavioral_advertising',
+ ketch_purpose_code: 'ketch_purpose_code',
+ analytics: 'analytics',
+ data_broking: 'data_broking',
+ personalization: 'personalization',
+ essential_services: 'essential_services',
},
},
}
From e00c57de722e334d7c71ecf775cb77a996ea5c91 Mon Sep 17 00:00:00 2001
From: Eric Schneider <37347760+eric-schneider@users.noreply.github.com>
Date: Thu, 9 Jan 2025 15:22:30 -0800
Subject: [PATCH 04/20] Make footer link conditional
---
src/partials/footer.hbs | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/partials/footer.hbs b/src/partials/footer.hbs
index ca33cc6..52c37a0 100644
--- a/src/partials/footer.hbs
+++ b/src/partials/footer.hbs
@@ -24,12 +24,14 @@
target="_blank"
data-track="Footer Terms of Use Link Clicked"
>Terms of use
+ {{#with site.keys.ketchSmartTagUrl}}
|
Manage Privacy Choices
+ {{/with}}
Apache, Apache
From bbca953f39fc0d9a1d592540bc3b147ff947d795 Mon Sep 17 00:00:00 2001
From: Eric Schneider <37347760+eric-schneider@users.noreply.github.com>
Date: Thu, 9 Jan 2025 15:25:43 -0800
Subject: [PATCH 05/20] Shorten data-track attribute
---
src/partials/footer.hbs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/partials/footer.hbs b/src/partials/footer.hbs
index 52c37a0..28f7a35 100644
--- a/src/partials/footer.hbs
+++ b/src/partials/footer.hbs
@@ -29,7 +29,7 @@
Manage Privacy Choices
{{/with}}
From 55e9c9f9bf6ca92697c2a171c486cc65ed34ca65 Mon Sep 17 00:00:00 2001
From: Cole Goldsmith
Date: Wed, 15 Jan 2025 14:59:08 -0600
Subject: [PATCH 06/20] Squash merge remove-gtm-scripts into DOC-4329-footer
---
src/partials/body-start-scripts.hbs | 8 +-------
src/partials/head-prelude.hbs | 9 ---------
src/partials/head-scripts.hbs | 6 ------
3 files changed, 1 insertion(+), 22 deletions(-)
diff --git a/src/partials/body-start-scripts.hbs b/src/partials/body-start-scripts.hbs
index adc8a48..109da3e 100644
--- a/src/partials/body-start-scripts.hbs
+++ b/src/partials/body-start-scripts.hbs
@@ -1,7 +1 @@
-{{!-- Add header scripts here --}}
-{{#with site.keys.googleAnalytics}}
-
-
-
-{{/with}}
+{{!-- Add body start scripts here --}}
diff --git a/src/partials/head-prelude.hbs b/src/partials/head-prelude.hbs
index e5c93ea..3aaffa9 100644
--- a/src/partials/head-prelude.hbs
+++ b/src/partials/head-prelude.hbs
@@ -1,14 +1,5 @@
- {{#with site.keys.googleAnalytics}}
-
-
-
- {{/with}}
{{#with site.keys.ketchSmartTagUrl}}
-
-{{/with}}
-
{{#with site.keys.segment}}
-
- {{/with}}
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index 7bea401..dcf16e6 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -1,10 +1,35 @@
{{#with site.keys.segment}}
-
+
+{{/with}}
+
+{{#with site.keys.ketchSmartTagUrl}}
+
+
{{/with}}
From 0cf2a0f165f36aaca4f66e93f7a7ffe8e7b1597e Mon Sep 17 00:00:00 2001
From: Cole Goldsmith
Date: Thu, 16 Jan 2025 11:19:58 -0600
Subject: [PATCH 08/20] manual ketch url for testing purposes, revert this soon
---
src/partials/head-scripts.hbs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index dcf16e6..0b1e38c 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -6,8 +6,8 @@ analytics.page();
{{/with}}
-{{#with site.keys.ketchSmartTagUrl}}
-
+{{!-- {{#with site.keys.ketchSmartTagUrl}} --}}
+
-{{/with}}
+{{!-- {{/with}} --}}
From 6a7cfafc08db9b92e0757c0c19ca6abe065465fa Mon Sep 17 00:00:00 2001
From: Cole Goldsmith
Date: Thu, 16 Jan 2025 11:38:07 -0600
Subject: [PATCH 09/20] test showing ketch preferences on load
---
src/partials/head-scripts.hbs | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index 0b1e38c..1ef7f1e 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -9,19 +9,21 @@ analytics.page();
{{!-- {{#with site.keys.ketchSmartTagUrl}} --}}
{{/with}}
-{{!-- {{#with site.keys.ketchSmartTagUrl}} --}}
-
+{{#with site.keys.ketchSmartTagUrl}}
+
+
-{{!-- {{/with}} --}}
+{{/with}}
From 9213d6a99eea7f239cfaac9f9b93619157248620 Mon Sep 17 00:00:00 2001
From: Cole Goldsmith
Date: Thu, 16 Jan 2025 16:05:26 -0600
Subject: [PATCH 12/20] hard code keys
---
src/partials/head-scripts.hbs | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index 917bdd3..191f7ce 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -1,14 +1,14 @@
-{{#with site.keys.segment}}
+{{!-- {{#with site.keys.segment}} --}}
-{{/with}}
+{{!-- {{/with}} --}}
-{{#with site.keys.ketchSmartTagUrl}}
-
+{{!-- {{#with site.keys.ketchSmartTagUrl}} --}}
+
@@ -38,7 +38,7 @@ ketch("on", "regionInfo", regionInfo => {
}
})
-{{/with}}
+{{!-- {{/with}} --}}
From a363a1c1e2a836b32923446501bc1d4a47d77002 Mon Sep 17 00:00:00 2001
From: Cole Goldsmith
Date: Fri, 17 Jan 2025 14:58:48 -0600
Subject: [PATCH 13/20] undo hard coded site keys
---
src/partials/head-scripts.hbs | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index 191f7ce..98f1506 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -1,14 +1,14 @@
-{{!-- {{#with site.keys.segment}} --}}
+{{#with site.keys.segment}}
-{{!-- {{/with}} --}}
+{{/with}}
-{{!-- {{#with site.keys.ketchSmartTagUrl}} --}}
-
+{{#with site.keys.ketchSma rtTagUrl}}
+
@@ -38,7 +38,7 @@ ketch("on", "regionInfo", regionInfo => {
}
})
-{{!-- {{/with}} --}}
+{{/with}}
From 3c2eea0e944082ab2deb8f42d4ef7c7618d9722e Mon Sep 17 00:00:00 2001
From: Cole Goldsmith
Date: Tue, 21 Jan 2025 11:37:11 -0600
Subject: [PATCH 14/20] add ketch logic to js file and let middleware handle
context
---
src/js/04-segment-analytics.js | 65 +++++++++++++++++++++++++---------
src/partials/head-scripts.hbs | 31 +---------------
2 files changed, 49 insertions(+), 47 deletions(-)
diff --git a/src/js/04-segment-analytics.js b/src/js/04-segment-analytics.js
index 5fce475..26b4c38 100644
--- a/src/js/04-segment-analytics.js
+++ b/src/js/04-segment-analytics.js
@@ -1,32 +1,19 @@
;(function () {
'use strict'
- const ketchConsentContext = {
- context: {
- consent: {
- categoryPreferences: {
- ...(window.ketchConsent?.purposes || {
- analytics: false,
- essential_services: false,
- targeted_advertising: false,
- }),
- },
- },
- },
- }
-
const trackEvent = (name, payload) => {
if (window.analytics) {
- window.analytics.track(name, payload || {}, ketchConsentContext)
+ window.analytics.track(name, payload || {})
}
}
const trackLinkEvent = (element, name, payload) => {
if (window.analytics) {
- window.analytics.trackLink(element, name, payload || {}, ketchConsentContext)
+ window.analytics.trackLink(element, name, payload || {})
}
}
+ // Add click event listeners to all elements with a data-track attribute.
if (window.analytics) {
const trackedLinkElements = document.querySelectorAll('a[data-track]')
const trackedElements = document.querySelectorAll('[data-track]:not(a)')
@@ -43,7 +30,51 @@
}
// Expose trackEvent and trackLinkEvent to the global scope.
- // All tracking events should be done through these functions because they handle the Ketch consent context.
window.trackEvent = trackEvent
window.trackLinkEvent = trackLinkEvent
+
+ // Save the Ketch consent state to the global scope and add consent middleware to analytics calls.
+ if (window && window.ketch && window.analytics) {
+ const saveConsent = (consent) => {
+ window.ketchConsent = consent
+ }
+ window.ketch('on', 'consent', saveConsent)
+ window.ketch('on', 'userConsentUpdated', saveConsent)
+ window.ketch('on', 'regionInfo', (regionInfo) => {
+ const customTextRegions = ['US-CA']
+ if (customTextRegions.includes(regionInfo)) {
+ const preferenceCenterLinkElement = document.getElementById('preferenceCenterLink')
+ preferenceCenterLinkElement.textContent = 'Do Not Sell My Personal Information'
+ }
+ })
+ window.analytics.addSourceMiddleware(({ payload, next }) => {
+ if (window.ketchConsent) {
+ payload.obj.properties = {
+ ...(payload.obj.properties || {}),
+ 'Analytics Storage Consent State':
+ (window.ketchConsent?.purposes || {})?.analytics === true
+ ? 'granted'
+ : 'denied',
+ 'Ads Storage Consent State':
+ (window.ketchConsent?.purposes || {})?.targeted_advertising === true
+ ? 'granted'
+ : 'denied',
+ 'Ad User Data Consent State':
+ (window.ketchConsent?.purposes || {})?.targeted_advertising === true
+ ? 'granted'
+ : 'denied',
+ context: {
+ consent: {
+ categoryPreferences: window.ketchConsent?.purposes || {},
+ },
+ },
+ traits: window.ketchConsent?.purposes || {},
+ }
+ payload.obj.context.consent = {
+ categoryPreferences: window.ketchConsent?.purposes,
+ }
+ }
+ next(payload)
+ })
+ }
})()
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index 98f1506..5c6ed29 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -7,37 +7,8 @@ analytics.page();
{{/with}}
-{{#with site.keys.ketchSma rtTagUrl}}
+{{#with site.keys.ketchSmartTagUrl}}
-
-
{{/with}}
From ec609506c296ec09aefefb932cb07eadc53630c2 Mon Sep 17 00:00:00 2001
From: Cole Goldsmith
Date: Fri, 24 Jan 2025 13:49:17 -0600
Subject: [PATCH 15/20] update to latest changes from marketing without gtag
scripts
---
src/js/04-segment-analytics.js | 45 ------------------------
src/js/10-ketch-consent.js | 64 ++++++++++++++++++++++++++++++++++
src/partials/footer.hbs | 14 ++++----
src/partials/head-scripts.hbs | 1 -
4 files changed, 72 insertions(+), 52 deletions(-)
create mode 100644 src/js/10-ketch-consent.js
diff --git a/src/js/04-segment-analytics.js b/src/js/04-segment-analytics.js
index 26b4c38..fffa0e3 100644
--- a/src/js/04-segment-analytics.js
+++ b/src/js/04-segment-analytics.js
@@ -32,49 +32,4 @@
// Expose trackEvent and trackLinkEvent to the global scope.
window.trackEvent = trackEvent
window.trackLinkEvent = trackLinkEvent
-
- // Save the Ketch consent state to the global scope and add consent middleware to analytics calls.
- if (window && window.ketch && window.analytics) {
- const saveConsent = (consent) => {
- window.ketchConsent = consent
- }
- window.ketch('on', 'consent', saveConsent)
- window.ketch('on', 'userConsentUpdated', saveConsent)
- window.ketch('on', 'regionInfo', (regionInfo) => {
- const customTextRegions = ['US-CA']
- if (customTextRegions.includes(regionInfo)) {
- const preferenceCenterLinkElement = document.getElementById('preferenceCenterLink')
- preferenceCenterLinkElement.textContent = 'Do Not Sell My Personal Information'
- }
- })
- window.analytics.addSourceMiddleware(({ payload, next }) => {
- if (window.ketchConsent) {
- payload.obj.properties = {
- ...(payload.obj.properties || {}),
- 'Analytics Storage Consent State':
- (window.ketchConsent?.purposes || {})?.analytics === true
- ? 'granted'
- : 'denied',
- 'Ads Storage Consent State':
- (window.ketchConsent?.purposes || {})?.targeted_advertising === true
- ? 'granted'
- : 'denied',
- 'Ad User Data Consent State':
- (window.ketchConsent?.purposes || {})?.targeted_advertising === true
- ? 'granted'
- : 'denied',
- context: {
- consent: {
- categoryPreferences: window.ketchConsent?.purposes || {},
- },
- },
- traits: window.ketchConsent?.purposes || {},
- }
- payload.obj.context.consent = {
- categoryPreferences: window.ketchConsent?.purposes,
- }
- }
- next(payload)
- })
- }
})()
diff --git a/src/js/10-ketch-consent.js b/src/js/10-ketch-consent.js
new file mode 100644
index 0000000..2ad3a4f
--- /dev/null
+++ b/src/js/10-ketch-consent.js
@@ -0,0 +1,64 @@
+;(function () {
+ 'use strict'
+
+ window.analytics.ready(() => {
+ window.ketch('once', 'consent', onKetchConsent)
+ window.ketch('on', 'userConsentUpdated', onKetchConsentUpdated)
+ })
+
+ // If the user is in the US-CA region, change the text of the preference center link
+ window.ketch('on', 'regionInfo', (regionInfo) => {
+ const customTextRegions = ['US-CA']
+ if (customTextRegions.includes(regionInfo)) {
+ const preferenceCenterLinkElement = document.getElementById('preferenceCenterLink')
+ if (preferenceCenterLinkElement) {
+ preferenceCenterLinkElement.textContent = 'Do Not Sell My Personal Information'
+ }
+ }
+ })
+
+ // If the user is in the default jurisdiction, remove the preference center link
+ window.ketch('on', 'jurisdiction', (jurisdiction) => {
+ if (jurisdiction.includes('default')) {
+ const preferenceCenterContainerElement = document.getElementById('preferenceCenterContainer')
+ if (preferenceCenterContainerElement) {
+ preferenceCenterContainerElement.remove()
+ }
+ }
+ })
+
+ // Once - This will be fired only one time, will initialize all the main features.
+ const onKetchConsent = (consent) => {
+ window.ketchConsent = consent
+ addKetchConsentToContextMiddleware()
+ window.analytics.page('Consent Update')
+ // loadScripts(); // Load any script if we have scripts to fire after ketch consent is fired.
+ }
+
+ // on - Each time the user changes the preferences, save them to the global variable
+ const onKetchConsentUpdated = (consent) => {
+ window.ketchConsent = consent
+ }
+
+ // Use the analytics.addSourceMiddleware function to include the consent on all the events
+ const addKetchConsentToContextMiddleware = () => {
+ window.analytics.addSourceMiddleware(({ payload, next }) => {
+ if (window.ketchConsent) {
+ const analyticsString = window.ketchConsent.purposes.analytics === true ? 'granted' : 'denied'
+ const targetedAdsString = window.ketchConsent.purposes.targeted_advertising === true ? 'granted' : 'denied'
+
+ payload.obj.properties = {
+ ...(payload.obj.properties || {}),
+ analyticsStorageConsentState: analyticsString,
+ adsStorageConsentState: targetedAdsString,
+ adUserDataConsentState: targetedAdsString,
+ adPersonalizationConsentState: targetedAdsString,
+ }
+ payload.obj.context.consent = {
+ categoryPreferences: window.ketchConsent?.purposes,
+ }
+ }
+ next(payload)
+ })
+ }
+})()
diff --git a/src/partials/footer.hbs b/src/partials/footer.hbs
index 28f7a35..2771825 100644
--- a/src/partials/footer.hbs
+++ b/src/partials/footer.hbs
@@ -25,12 +25,14 @@
data-track="Footer Terms of Use Link Clicked"
>Terms of use
{{#with site.keys.ketchSmartTagUrl}}
- |
- Manage Privacy Choices
+
+ |
+ Manage Privacy Choices
+
{{/with}}
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index 5c6ed29..9e543dd 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -2,7 +2,6 @@
{{/with}}
From 89d00a4926e212a7f402846b1660cb43ab485d74 Mon Sep 17 00:00:00 2001
From: Cole Goldsmith
Date: Fri, 24 Jan 2025 14:00:54 -0600
Subject: [PATCH 16/20] UNDO THIS - hard coding segment and ketch site keys
---
src/partials/footer.hbs | 4 ++--
src/partials/head-scripts.hbs | 14 +++++++-------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/partials/footer.hbs b/src/partials/footer.hbs
index 2771825..6bff0c0 100644
--- a/src/partials/footer.hbs
+++ b/src/partials/footer.hbs
@@ -24,7 +24,7 @@
target="_blank"
data-track="Footer Terms of Use Link Clicked"
>Terms of use
- {{#with site.keys.ketchSmartTagUrl}}
+ {{!-- {{#with site.keys.ketchSmartTagUrl}} --}}
|
Manage Privacy Choices
- {{/with}}
+ {{!-- {{/with}} --}}
Apache, Apache
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index 9e543dd..988b684 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -1,14 +1,14 @@
-{{#with site.keys.segment}}
+{{!-- {{#with site.keys.segment}} --}}
-{{/with}}
+{{!-- {{/with}} --}}
-{{#with site.keys.ketchSmartTagUrl}}
-
-{{/with}}
+{{!-- {{#with site.keys.ketchSmartTagUrl}} --}}
+
+{{!-- {{/with}} --}}
From 0350d7854582a1e65f88623d665ed67bc168df4a Mon Sep 17 00:00:00 2001
From: Cole Goldsmith
Date: Fri, 24 Jan 2025 15:34:58 -0600
Subject: [PATCH 17/20] use segment prod source
---
src/partials/head-scripts.hbs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index 988b684..d4589a8 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -1,7 +1,7 @@
{{!-- {{#with site.keys.segment}} --}}
{{!-- {{/with}} --}}
From 459745dd51a573de0d65616f1511706ab8c9fd64 Mon Sep 17 00:00:00 2001
From: Cole Goldsmith
Date: Fri, 24 Jan 2025 15:58:16 -0600
Subject: [PATCH 18/20] force a rebuild
---
src/partials/head-scripts.hbs | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/partials/head-scripts.hbs b/src/partials/head-scripts.hbs
index d4589a8..07d6f21 100644
--- a/src/partials/head-scripts.hbs
+++ b/src/partials/head-scripts.hbs
@@ -10,6 +10,11 @@ analytics.load("Fgm2yUw4EtLXKY4x851TJrYyTkFsObBq");
{{!-- {{/with}} --}}
+{{!-- Delete this script --}}
+
+
{{!-- {{/with}} --}}
@@ -10,11 +10,6 @@ analytics.load("Fgm2yUw4EtLXKY4x851TJrYyTkFsObBq");
{{!-- {{/with}} --}}
-{{!-- Delete this script --}}
-
-