()
| 322 | }; |
| 323 | |
| 324 | const RedditTracking = (): ReactElement => { |
| 325 | return ( |
| 326 | <Script |
| 327 | id="reddit-pixel" |
| 328 | strategy="afterInteractive" |
| 329 | data-reddit-id={REDDIT_TRACKING_ID} |
| 330 | > |
| 331 | {`(function() { |
| 332 | const REDDIT_PIXEL_ID = document.currentScript.getAttribute('data-reddit-id'); |
| 333 | |
| 334 | function initializeRedditPixel(w, d) { |
| 335 | if (!w.rdt) { |
| 336 | var p = w.rdt = function() { |
| 337 | p.sendEvent ? p.sendEvent.apply(p, arguments) : p.callQueue.push(arguments); |
| 338 | }; |
| 339 | |
| 340 | p.callQueue = []; |
| 341 | var t = d.createElement('script'); |
| 342 | t.src = 'https://www.redditstatic.com/ads/pixel.js', |
| 343 | t.async = !0; |
| 344 | var s = d.getElementsByTagName('script')[0]; |
| 345 | s.parentNode.insertBefore(t, s); |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | initializeRedditPixel( |
| 350 | window, |
| 351 | document, |
| 352 | ); |
| 353 | |
| 354 | window.rdt('init', REDDIT_PIXEL_ID); |
| 355 | |
| 356 | window.rdt('track', 'PageVisit'); |
| 357 | })(); |
| 358 | `} |
| 359 | </Script> |
| 360 | ); |
| 361 | }; |
| 362 | |
| 363 | const TiktokTracking = (): ReactElement => { |
| 364 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected