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

Function QuoraTracking

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

Source from the content-addressed store, hash-verified

407};
408
409const QuoraTracking = (): ReactElement => {
410 return (
411 <>
412 <Script
413 id="quora-pixel"
414 strategy="afterInteractive"
415 data-quora-id={QUORA_TRACKING_ID}
416 >
417 {`(function() {
418 const QUORA_PIXEL_ID = document.currentScript.getAttribute('data-quora-id');
419
420 function initializeQuoraPixel(q, e, v, n, t, s) {
421 if (q.qp) return;
422 n = q.qp = function() {
423 n.qp ? n.qp.apply(n, arguments) : n.queue.push(arguments);
424 };
425 n.queue = [];
426 t = document.createElement(e);
427 t.async = !0;
428 t.src = v;
429 s = document.getElementsByTagName(e)[0];
430 s.parentNode.insertBefore(t, s);
431 }
432
433 initializeQuoraPixel(
434 window,
435 'script',
436 'https://a.quora.com/qevents.js',
437 );
438
439 window.qp('init', QUORA_PIXEL_ID);
440
441 window.qp('track', 'ViewContent');
442})();
443 `}
444 </Script>
445 <noscript>
446 <img
447 alt="Quora Pixel"
448 height="1"
449 width="1"
450 style={{ display: 'none' }}
451 src={`https://q.quora.com/_/ad/${QUORA_TRACKING_ID}/pixel?tag=ViewContent&noscript=1`}
452 />
453 </noscript>
454 </>
455 );
456};
457
458export const EXPERIENCE_TO_SENIORITY: Record<
459 keyof typeof UserExperienceLevel,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected