Skip to content

Commit

Permalink
Update Tracking.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
bgalek authored Feb 23, 2024
1 parent 65ab863 commit b049e5d
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions components/Tracking.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
import React, { useEffect, useState } from "react";
import React from "react";

const Tracking: React.FunctionComponent = () => {
const [randomNumber, setRandomNumber] = useState(undefined);

useEffect(() => {
setRandomNumber(Math.floor(Math.random() * 100));
}, []);

if (!randomNumber) return null;

return (
<div style={{ visibility: 'hidden', height: 0, overflow: 'hidden', position: 'relative'}}>
<img alt="doubleclick" width="1" height="1" style={{ position: 'absolute'}}
src={`https://pubads.g.doubleclick.net/activity;dc_iu=/21612525419/DFPAudiencePixel;ord=${randomNumber};dc_seg=507368552?`}
/>
<img alt="fb" height="1" width="1" style={{ position: 'absolute'}}
src="https://www.facebook.com/tr?id=1650870088530325&ev=PageView&noscript=1"/>
</div>
<div style={{ visibility: 'hidden', height: 0, overflow: 'hidden', position: 'relative'}}></div>
)
};

Expand Down

0 comments on commit b049e5d

Please sign in to comment.