From 46ca8778b9a02d70cce6da1d12d01cb241ce693a Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 28 Nov 2024 21:27:30 +0000 Subject: [PATCH] Switched tinybird tracker to use localstorage (#21761) closes https://linear.app/ghost/issue/ANAL-88/go-cookie-less - This is still an experimental feature - Using localstorage removes the need for a session cookie - This in turn removes the need to have a cookie banner --- ghost/core/core/frontend/helpers/ghost_head.js | 2 +- .../helpers/__snapshots__/ghost_head.test.js.snap | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ghost/core/core/frontend/helpers/ghost_head.js b/ghost/core/core/frontend/helpers/ghost_head.js index 3d2a004c5a..af9112f2b2 100644 --- a/ghost/core/core/frontend/helpers/ghost_head.js +++ b/ghost/core/core/frontend/helpers/ghost_head.js @@ -162,7 +162,7 @@ function getTinybirdTrackerScript(dataRoot) { member_status: dataRoot.member?.status }, (value, key) => `tb_${key}="${value}"`).join(' '); - return ``; + return ``; } /** diff --git a/ghost/core/test/unit/frontend/helpers/__snapshots__/ghost_head.test.js.snap b/ghost/core/test/unit/frontend/helpers/__snapshots__/ghost_head.test.js.snap index f686b3fa2f..f64ebf4f3b 100644 --- a/ghost/core/test/unit/frontend/helpers/__snapshots__/ghost_head.test.js.snap +++ b/ghost/core/test/unit/frontend/helpers/__snapshots__/ghost_head.test.js.snap @@ -1626,7 +1626,7 @@ Object { - ", + ", } `; @@ -1696,7 +1696,7 @@ Object { - ", + ", } `; @@ -1748,7 +1748,7 @@ Object { - ", + ", } `; @@ -1800,7 +1800,7 @@ Object { - ", + ", } `;