fb update
This commit is contained in:
parent
8e21217f7c
commit
41f622125b
@ -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[];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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 (
|
||||
<React.Fragment>
|
||||
{!!pixels?.data?.fb?.length && <HeadData pixels={pixels.data.fb} />}
|
||||
{!!pixels?.data?.facebook_pixel?.length && <HeadData pixels={pixels.data.facebook_pixel} />}
|
||||
<I18nextProvider i18n={i18nextInstance}>
|
||||
<Provider store={store}>
|
||||
<BrowserRouter>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user