File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 1+ import Script from 'next/script' ;
2+
3+ const AdobeAnalyticsScript = ( ) => {
4+ const source = process . env . NEXT_PUBLIC_ADOBE_ANALYTICS_URL ;
5+ return source ? (
6+ < Script type = "text/javascript" src = { source } charSet = "UTF-8" async > </ Script >
7+ ) : null ;
8+ } ;
9+
10+ export default AdobeAnalyticsScript ;
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import {
2626import { ThemeDetectorComponent } from "@/features/common/components/theme-detector/theme-detector.component" ;
2727import { ThemeCookieValues } from "@/features/common/values/theme.values" ;
2828import { AbTestingScriptComponent } from "@/features/analytics/components/ab-testing-script/ab-testing-script.component" ;
29+ import AdobeAnalyticsScript from "@/features/analytics/components/adobe-analytics-script.component" ;
2930
3031const GTM_ID = process . env . NEXT_PUBLIC_GTM_ID ;
3132
@@ -105,6 +106,7 @@ export const ShellComponent: React.FC<ShellComponentProps> = ({
105106 < OnetrustScriptComponent
106107 id = { CLIENT_CONFIG . DEVELOPERS_DATA_DOMAIN_ID_ONETRUST }
107108 />
109+ < AdobeAnalyticsScript />
108110 { children }
109111 { consentLevel &&
110112 consentLevel . includes ( COOKIE_LEVELS . NECESSARY . toString ( ) ) &&
You can’t perform that action at this time.
0 commit comments