diff --git a/src/pages/apprentissage-entreprises/index.page.tsx b/src/pages/apprentissage-entreprises/index.page.tsx
index 8e40320335..6330b22c7a 100644
--- a/src/pages/apprentissage-entreprises/index.page.tsx
+++ b/src/pages/apprentissage-entreprises/index.page.tsx
@@ -28,10 +28,8 @@ export default function ApprentissageEntreprises ({ videos }: ApprentissageEntre
// eslint-disable-next-line
}, []);
const seedtagService: MarketingService = useDependency('seedtagService');
- const floodlightService: MarketingService = useDependency('floodlightService');
useEffect(() => {
seedtagService.trackPage('');
- floodlightService.trackPage('');
// eslint-disable-next-line
}, []);
diff --git a/src/pages/formations/apprentissage/index.page.test.tsx b/src/pages/formations/apprentissage/index.page.test.tsx
index a7912e33e0..e189a06113 100644
--- a/src/pages/formations/apprentissage/index.page.test.tsx
+++ b/src/pages/formations/apprentissage/index.page.test.tsx
@@ -12,6 +12,7 @@ import { DependenciesProvider } from '~/client/context/dependenciesContainer.con
import { aCommuneQuery } from '~/client/hooks/useCommuneQuery';
import { aManualAnalyticsService } from '~/client/services/analytics/analytics.service.fixture';
import { aLocalisationService } from '~/client/services/localisation/localisation.service.fixture';
+import { aMarketingService } from '~/client/services/marketing/marketing.service.fixture';
import { aMetierService } from '~/client/services/metiers/metier.fixture';
import FormationAlternancePage, { getServerSideProps } from '~/pages/formations/apprentissage/index.page';
import { aGetServerSidePropsContext } from '~/server/aGetServerSidePropsContext.fixture';
@@ -81,6 +82,7 @@ describe('Page Formations en Apprentissage', () => {
,
@@ -106,6 +108,7 @@ describe('Page Formations en Apprentissage', () => {
,
diff --git a/src/pages/formations/apprentissage/index.page.tsx b/src/pages/formations/apprentissage/index.page.tsx
index 63e918fe99..c41586c04b 100644
--- a/src/pages/formations/apprentissage/index.page.tsx
+++ b/src/pages/formations/apprentissage/index.page.tsx
@@ -1,11 +1,13 @@
import Joi from 'joi';
import { GetServerSidePropsContext, GetServerSidePropsResult } from 'next';
import { ParsedUrlQuery } from 'querystring';
-import React from 'react';
+import React, { useEffect } from 'react';
import RechercherFormationAlternance
from '~/client/components/features/FormationAlternance/Rechercher/RechercherFormationAlternance';
+import { useDependency } from '~/client/context/dependenciesContainer.context';
import useAnalytics from '~/client/hooks/useAnalytics';
+import { MarketingService } from '~/client/services/marketing/marketing.service';
import empty from '~/client/utils/empty';
import { transformQueryToArray } from '~/pages/api/utils/joi/joi.util';
import { queryToArray } from '~/pages/api/utils/queryToArray.util';
@@ -36,6 +38,11 @@ type RechercherFormationApprentissagePageProps = {
export default function FormationAlternancePage(props: RechercherFormationApprentissagePageProps) {
useAnalytics(analytics);
+ const floodlightService: MarketingService = useDependency('floodlightService');
+ useEffect(() => {
+ floodlightService.trackPage('');
+ // eslint-disable-next-line
+ }, []);
return (