lbry-desktop/web/component/pixel.jsx
2021-07-13 23:40:49 -04:00

37 lines
787 B
JavaScript

// @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 (
<>
<img
src="https://ctrack.trafficjunky.net/ctrack?action=list&type=add&id=0&context=Odysee&cookiename=RetargetingPixel&age=44000&maxcookiecount=10"
alt=""
/>
</>
);
} else if (type === 'kill') {
return (
<>
<img
src="https://ctrack.trafficjunky.net/ctrack?action=list&type=add&id=0&context=Odysee&cookiename=KillPixel&age=0&maxcookiecount=10"
alt=""
/>
</>
);
} else {
return null;
}
};
export default Pixel;