Skip to content

Commit

Permalink
fix: Fix appel tracker floodlight sur bonne page
Browse files Browse the repository at this point in the history
  • Loading branch information
Mintoo200 committed Nov 21, 2024
1 parent bf051f0 commit 8ace010
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/pages/apprentissage-entreprises/index.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}, []);

Expand Down
9 changes: 8 additions & 1 deletion src/pages/formations/apprentissage/index.page.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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 (
<RechercherFormationAlternance {...props} />
Expand Down

0 comments on commit 8ace010

Please sign in to comment.