Skip to content

Commit

Permalink
Update packages/analytics-js-integrations/src/integrations/GoogleTagM…
Browse files Browse the repository at this point in the history
…anager/nativeSdkLoader.js

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
tmchow and coderabbitai[bot] authored Feb 6, 2025
1 parent f611aa3 commit da51dc7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function loadNativeSdk(containerID, serverUrl, environmentID, authorizationToken
const f = d.getElementsByTagName(s)[0];
const j = d.createElement(s);
const dl = l !== 'dataLayer' ? `&l=${l}` : '';
const gtmEnv = environmentID ? `&gtm_preview=env-${environmentID}` : '';
const gtmAuth = authorizationToken ? `&gtm_auth=${authorizationToken}` : '';
const gtmEnv = environmentID ? `&gtm_preview=env-${encodeURIComponent(environmentID)}` : '';
const gtmAuth = authorizationToken ? `&gtm_auth=${encodeURIComponent(authorizationToken)}` : '';
const gtmCookies = '&gtm_cookies_win=x';
j.setAttribute('data-loader', LOAD_ORIGIN);
j.async = true;
Expand Down

0 comments on commit da51dc7

Please sign in to comment.