()
| 277 | }; |
| 278 | |
| 279 | const RedditTracking = (): ReactElement => { |
| 280 | return ( |
| 281 | <Script |
| 282 | id="reddit-pixel" |
| 283 | strategy="afterInteractive" |
| 284 | data-reddit-id={REDDIT_TRACKING_ID} |
| 285 | > |
| 286 | {`(function() { |
| 287 | const REDDIT_PIXEL_ID = document.currentScript.getAttribute('data-reddit-id'); |
| 288 | |
| 289 | function initializeRedditPixel(w, d) { |
| 290 | if (!w.rdt) { |
| 291 | var p = w.rdt = function() { |
| 292 | p.sendEvent ? p.sendEvent.apply(p, arguments) : p.callQueue.push(arguments); |
| 293 | }; |
| 294 | |
| 295 | p.callQueue = []; |
| 296 | var t = d.createElement('script'); |
| 297 | t.src = 'https://www.redditstatic.com/ads/pixel.js', |
| 298 | t.async = !0; |
| 299 | var s = d.getElementsByTagName('script')[0]; |
| 300 | s.parentNode.insertBefore(t, s); |
| 301 | } |
| 302 | } |
| 303 | |
| 304 | initializeRedditPixel( |
| 305 | window, |
| 306 | document, |
| 307 | ); |
| 308 | |
| 309 | window.rdt('init', REDDIT_PIXEL_ID); |
| 310 | |
| 311 | window.rdt('track', 'PageVisit'); |
| 312 | })(); |
| 313 | `} |
| 314 | </Script> |
| 315 | ); |
| 316 | }; |
| 317 | |
| 318 | const TiktokTracking = (): ReactElement => { |
| 319 | return ( |
nothing calls this directly
no outgoing calls
no test coverage detected