diff --git a/src/components/partials/CV/CVCallToActions/CVShareButtons/CVShareButtons.tsx b/src/components/partials/CV/CVCallToActions/CVShareButtons/CVShareButtons.tsx index d2a43df6a..69a867241 100644 --- a/src/components/partials/CV/CVCallToActions/CVShareButtons/CVShareButtons.tsx +++ b/src/components/partials/CV/CVCallToActions/CVShareButtons/CVShareButtons.tsx @@ -56,9 +56,12 @@ export const CVShareButtons = ({ { + fbEvent(FB_TAGS.SHARE_CV_OPEN); + }} onShareWindowClose={() => { gaEvent(GA_TAGS.PAGE_CV_PARTAGE_CV_LINKEDIN_CLIC); - fbEvent(FB_TAGS.SHARE_CV); + fbEvent(FB_TAGS.SHARE_CV_SEND); updateSharesCount(cv.UserId, 'linkedin'); openNewsletterModal(); }} @@ -72,9 +75,12 @@ export const CVShareButtons = ({ { + fbEvent(FB_TAGS.SHARE_CV_OPEN); + }} onShareWindowClose={() => { gaEvent(GA_TAGS.PAGE_CV_PARTAGE_CV_FACEBOOK_CLIC); - fbEvent(FB_TAGS.SHARE_CV); + fbEvent(FB_TAGS.SHARE_CV_SEND); updateSharesCount(cv.UserId, 'facebook'); openNewsletterModal(); }} @@ -88,9 +94,12 @@ export const CVShareButtons = ({ { + fbEvent(FB_TAGS.SHARE_CV_OPEN); + }} onShareWindowClose={() => { gaEvent(GA_TAGS.PAGE_CV_PARTAGE_CV_TWITTER_CLIC); - fbEvent(FB_TAGS.SHARE_CV); + fbEvent(FB_TAGS.SHARE_CV_SEND); updateSharesCount(cv.UserId, 'twitter'); openNewsletterModal(); }} @@ -105,9 +114,12 @@ export const CVShareButtons = ({ { + fbEvent(FB_TAGS.SHARE_CV_OPEN); + }} onShareWindowClose={() => { gaEvent(GA_TAGS.PAGE_CV_PARTAGE_CV_WHATSAPP_CLIC); - fbEvent(FB_TAGS.SHARE_CV); + fbEvent(FB_TAGS.SHARE_CV_SEND); updateSharesCount(cv.UserId, 'whatsapp'); openNewsletterModal(); }} diff --git a/src/constants/tags.js b/src/constants/tags.ts similarity index 99% rename from src/constants/tags.js rename to src/constants/tags.ts index 3b562b24a..7ad68879c 100644 --- a/src/constants/tags.js +++ b/src/constants/tags.ts @@ -377,7 +377,7 @@ export const GA_TAGS = { BACKOFFICE_CANDIDAT_HEADER_BAO_CLIC: { action: 'Backoffice_Candidat_Header_BAO_Clic', }, -}; +} as const; export const FB_TAGS = { CANDIDATE_REGISTRATION_OPEN: { @@ -448,7 +448,7 @@ export const FB_TAGS = { type: 'track', action: 'Donate', }, -}; +} as const; export const LINK_TAGS = { COMPANY_CONTACT_OPEN: { @@ -457,4 +457,4 @@ export const LINK_TAGS = { COMPANY_CONTACT_SEND: { conversionId: 11224580, }, -}; +} as const;