diff --git a/ui/page/home/view.jsx b/ui/page/home/view.jsx index 78754d67b..bbfd1aad0 100644 --- a/ui/page/home/view.jsx +++ b/ui/page/home/view.jsx @@ -13,6 +13,10 @@ import LbcSymbol from 'component/common/lbc-symbol'; import WaitUntilOnPage from 'component/common/wait-until-on-page'; import useGetLivestreams from 'effects/use-get-livestreams'; +// @if TARGET='web' +import Pixel from 'web/component/pixel'; +// @endif + type Props = { authenticated: boolean, followedTags: Array, @@ -128,13 +132,9 @@ function HomePage(props: Props) { {rowData.map(({ title, route, link, icon, help, options = {} }, index) => { return getRowElements(title, route, link, icon, help, options, index); })} - - {SIMPLE_SITE && ( - - )} + {/* @if TARGET='web' */} + + {/* @endif */} ); } diff --git a/ui/page/signInVerify/view.jsx b/ui/page/signInVerify/view.jsx index acdf97a74..f201ff683 100644 --- a/ui/page/signInVerify/view.jsx +++ b/ui/page/signInVerify/view.jsx @@ -8,6 +8,7 @@ import Button from 'component/button'; import { Lbryio } from 'lbryinc'; import I18nMessage from 'component/i18nMessage'; import Card from 'component/common/card'; +import Pixel from 'web/component/pixel'; type Props = { history: { push: (string) => void, location: { search: string } }, @@ -132,11 +133,9 @@ function SignInVerifyPage(props: Props) { } /> - - + {/* @if TARGET='web' */} + + {/* @endif */} ); } diff --git a/web/component/pixel.jsx b/web/component/pixel.jsx new file mode 100644 index 000000000..697e378d3 --- /dev/null +++ b/web/component/pixel.jsx @@ -0,0 +1,36 @@ +// @flow +import React from 'react'; +import { SIMPLE_SITE } from 'config'; +type Props = { + type: string, +}; + +const Pixel = (props: Props) => { + const { type } = props; + if (!SIMPLE_SITE) { + return null; + } + if (type === 'retargeting') { + return ( + <> + + + ); + } else if (type === 'kill') { + return ( + <> + + + ); + } else { + return null; + } +}; + +export default Pixel;