diff --git a/src/api/resources/Session.ts b/src/api/resources/Session.ts index 77e7af5..fa34043 100644 --- a/src/api/resources/Session.ts +++ b/src/api/resources/Session.ts @@ -160,7 +160,9 @@ export interface ResponseGetLocale { export interface ResponseGetPixels { status: "success" | string, data: { - fb?: string[]; + facebook_pixel?: string[]; + google_analytics?: string[]; + yandex_metrica?: string[]; } } diff --git a/src/init.tsx b/src/init.tsx index 0a970b5..de81375 100755 --- a/src/init.tsx +++ b/src/init.tsx @@ -105,11 +105,11 @@ const init = async () => { locale: getDefaultLocaleByLanguage(language), }); - localStorage.setItem('fb_pixels', JSON.stringify(pixels?.data?.fb || [])); + localStorage.setItem('fb_pixels', JSON.stringify(pixels?.data?.facebook_pixel || [])); return ( - {!!pixels?.data?.fb?.length && } + {!!pixels?.data?.facebook_pixel?.length && }