@@ -68,7 +68,7 @@ import {
6868import {
6969 configure as configureAnalytics , SegmentAnalyticsService , identifyAnonymousUser , identifyAuthenticatedUser ,
7070} from './analytics' ;
71- import { GoogleAnalyticsLoader } from './scripts' ;
71+ import { GoogleAnalyticsLoader , GoogleTagManagerLoader } from './scripts' ;
7272import {
7373 getAuthenticatedHttpClient ,
7474 configure as configureAuth ,
@@ -269,8 +269,8 @@ function applyOverrideHandlers(overrides) {
269269 * @param {* } [options.analyticsService=SegmentAnalyticsService] The `AnalyticsService`
270270 * implementation to use.
271271 * @param {* } [options.authMiddleware=[]] An array of middleware to apply to http clients in the auth service.
272- * @param {* } [options.externalScripts=[GoogleAnalyticsLoader]] An array of externalScripts.
273- * By default added GoogleAnalyticsLoader.
272+ * @param {* } [options.externalScripts=[GoogleAnalyticsLoader, GoogleTagManagerLoader ]] An array of externalScripts.
273+ * By default adds GoogleAnalyticsLoader and GoogleTagManagerLoader .
274274 * @param {* } [options.requireAuthenticatedUser=false] If true, turns on automatic login
275275 * redirection for unauthenticated users. Defaults to false, meaning that by default the
276276 * application will allow anonymous/unauthenticated sessions.
@@ -290,7 +290,7 @@ export async function initialize({
290290 analyticsService = SegmentAnalyticsService ,
291291 authService = AxiosJwtAuthService ,
292292 authMiddleware = [ ] ,
293- externalScripts = [ GoogleAnalyticsLoader ] ,
293+ externalScripts = [ GoogleAnalyticsLoader , GoogleTagManagerLoader ] ,
294294 requireAuthenticatedUser : requireUser = false ,
295295 hydrateAuthenticatedUser : hydrateUser = false ,
296296 messages,
0 commit comments