diff --git a/.env.local.example b/.env.local.example index 0592f3b4a..99fe71286 100644 --- a/.env.local.example +++ b/.env.local.example @@ -3,4 +3,5 @@ CMS_API_KEY="" CMS_ENVIRONMENT="development" CMS_URL="https://eu-graphql.contentstack.com/stacks/${CMS_API_KEY}?environment=${CMS_ENVIRONMENT}" CMS_PREVIEW_URL="https://graphql-preview.contentstack.com/stacks/${CMS_API_KEY}?environment=${CMS_ENVIRONMENT}"; -CMS_PREVIEW_TOKEN="" \ No newline at end of file +CMS_PREVIEW_TOKEN="" +ADOBE_SCRIPT_SRC="https://mocked-url.se/tracking-script.js" \ No newline at end of file diff --git a/app/[lang]/(live-current)/current-content-page/page.tsx b/app/[lang]/(live-current)/current-content-page/page.tsx index f94f93c7e..e014119e5 100644 --- a/app/[lang]/(live-current)/current-content-page/page.tsx +++ b/app/[lang]/(live-current)/current-content-page/page.tsx @@ -38,8 +38,6 @@ export default async function CurrentContentPage({ } const pageData = response.data.all_current_blocks_page.items[0] const trackingData = { - pageName: pageData.title, - pageType: pageData.__typename, publishedDate: pageData.system.updated_at, createdDate: pageData.system.created_at, pageId: pageData.system.uid, diff --git a/app/[lang]/(live-current)/layout.tsx b/app/[lang]/(live-current)/layout.tsx index 2f601ff6c..cb435ed90 100644 --- a/app/[lang]/(live-current)/layout.tsx +++ b/app/[lang]/(live-current)/layout.tsx @@ -63,6 +63,10 @@ export default function RootLayout({ src="/Static/dist/js/main-ng.js?336b801d6b38eff10884" strategy="lazyOnload" /> */} + diff --git a/components/Current/AdobeScript.tsx b/components/Current/AdobeScript.tsx index b52508b2d..949cdb567 100644 --- a/components/Current/AdobeScript.tsx +++ b/components/Current/AdobeScript.tsx @@ -2,22 +2,6 @@ import { env } from "@/env/server" import Script from "next/script" -const scriptScrs = { - // TODO: decide on naming and environments (development vs. test vs. staging etc) - development: "", - test: "https://assets.adobedtm.com/c1bd08b1e4e7/d64a7c1f5f17/launch-84c70d82a50c-staging.min.js", - production: - "https://assets.adobedtm.com/c1bd08b1e4e7/d64a7c1f5f17/launch-e56085bbe998.min.js", -} - export default function AdobeScript() { - return ( - <> - -