Skip to content

Commit 44c6617

Browse files
authored
PXP-11139 Fix/ga csp (#1438)
* fix: update csp for ga * update csp
1 parent cda807c commit 44c6617

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ if (DAPTrackingURL) {
2020
}
2121
if (gaTrackingId?.startsWith('UA-') || gaTrackingId?.startsWith('G-')) {
2222
scriptSrcURLs.push(...['https://www.google-analytics.com', 'https://ssl.google-analytics.com', 'https://www.googletagmanager.com']);
23-
connectSrcURLs.push(...['https://www.google-analytics.com', 'https://*.analytics.google.com']);
24-
imgSrcURLs.push('https://www.google-analytics.com');
23+
connectSrcURLs.push(...['https://www.google-analytics.com', 'https://*.analytics.google.com', 'https://analytics.google.com', 'https://*.g.doubleclick.net']);
24+
imgSrcURLs.push('https://www.google-analytics.com', 'https://*.g.doubleclick.net', 'https://*.google.com');
2525
} else {
2626
console.log('Unknown GA tag, skipping GA setup...');
2727
}

0 commit comments

Comments
 (0)