دليل المستودع: أداة تقدير فقدان القياس بسبب حجب الإعلانات لدى الناشرين الإقليميين
صفحة تعريفية مستقلة بمستودع أداة تقدير فقدان القياس بسبب حجب الإعلانات لدى الناشرين الإقليميين. توضّح ما الذي يحاول حله، ولمن يناسب، وما الملفات التي ستجدها قبل الانتقال إلى المصدر.
المشكلة التي يعالجها
يوضح التوثيق الأصلي نطاق المشكلة بهذا الوصف:
Build an open-source telemetry discrepancy estimator: 1) an optional same-origin pageview beacon that sends only after explicit analytics consent, 2) a Python log analyzer that compares server and client event counts, and 3) guidance for interpreting discrepancies. Differences may result from consent choices, JavaScript failures, sampling, caching, bots, or blockers; the tool cannot identify the cause by itself.لمن صُمم؟
الجمهور المحدد في README: PRO operating in high-growth e-commerce, digital publishing, and direct-response marketing across Saudi Arabia, UAE, and Egypt.
محتويات المستودع
الملفات الأساسية التي يسردها قسم بنية المستودع في README:
docs/reverse-proxy-guide.mdexamples/sample_access_logs.txtLICENSEREADME.mdreports/loss_analysis.htmlsrc/audit_loss.pysrc/beacon_test.js (Node tests for consent and same-origin safeguards)src/telemetry_beacon.jssrc/telemetry_loss_estimator.pytests/test_audit.pytests/test_estimator.py
طريقة مراجعته واستخدامه
- ابدأ بقراءة README وتأكد أن المشكلة المذكورة تطابق احتياجك الفعلي.
- افحص الملفات المذكورة أعلاه؛ أسماء الملفات توضح مكان البيانات والأدوات والقوالب والاختبارات.
- اتبع Quick Start الموجود في README، وتحقق من المتطلبات قبل تشغيل أي أمر.
- قارن المخرجات بعينة موثقة، وراجع القيود قبل استخدامها في قرار أو عمل عميل.
أمثلة أوامر البدء من README: python -m unittest discover -s tests · python src/audit_loss.py --help
النطاق والقيود
- Consent-Gated Beacon: Sends a minimal pageview event to a configured same-origin endpoint only when the host page explicitly sets window.__analyticsConsent = true. It does not attempt to evade blockers or identify a person.
- Interpretation: Do not infer regional ad-blocker penetration from the sample logs. Use consented, account-specific measurements and describe the result as a tracking discrepancy unless the cause is independently established.
- Privacy Respect: Script strictly measures aggregated loss metrics without tracking personal identifiers or circumventing client browser privacy settings.
هذه الصفحة تلخص التوثيق المتاح ولا تثبت أداءً أو نتيجة تجارية. تحقق من صلاحية البيانات والمتطلبات قبل الاستخدام.