MCPcopy Create free account
hub / github.com/dailydotdev/apps / QuoraTracking

Function QuoraTracking

packages/webapp/components/Pixels.tsx:364–411  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

362};
363
364const QuoraTracking = (): ReactElement => {
365 return (
366 <>
367 <Script
368 id="quora-pixel"
369 strategy="afterInteractive"
370 data-quora-id={QUORA_TRACKING_ID}
371 >
372 {`(function() {
373 const QUORA_PIXEL_ID = document.currentScript.getAttribute('data-quora-id');
374
375 function initializeQuoraPixel(q, e, v, n, t, s) {
376 if (q.qp) return;
377 n = q.qp = function() {
378 n.qp ? n.qp.apply(n, arguments) : n.queue.push(arguments);
379 };
380 n.queue = [];
381 t = document.createElement(e);
382 t.async = !0;
383 t.src = v;
384 s = document.getElementsByTagName(e)[0];
385 s.parentNode.insertBefore(t, s);
386 }
387
388 initializeQuoraPixel(
389 window,
390 'script',
391 'https://a.quora.com/qevents.js',
392 );
393
394 window.qp('init', QUORA_PIXEL_ID);
395
396 window.qp('track', 'ViewContent');
397})();
398 `}
399 </Script>
400 <noscript>
401 <img
402 alt="Quora Pixel"
403 height="1"
404 width="1"
405 style={{ display: 'none' }}
406 src={`https://q.quora.com/_/ad/${QUORA_TRACKING_ID}/pixel?tag=ViewContent&noscript=1`}
407 />
408 </noscript>
409 </>
410 );
411};
412
413export const EXPERIENCE_TO_SENIORITY: Record<
414 keyof typeof UserExperienceLevel,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected