Skillpedia
التحليل وجداول البيانات75k · #2778

consent-mode

ما الذي تفعله

تتحقق هذه المهارة من أن وسوم Google ترسل إشارات الموافقة الصحيحة بحسب ما وافق عليه كل زائر. وهي موجهة إلى أصحاب المواقع الذين يستخدمون تحليلات Google أو إعلاناتها، ويلتزمون بقواعد الخصوصية مثل GDPR.

متى تستخدمها

  • ✓عندما يستخدم موقعك تحليلات Google أو وسوم إعلانات في مناطق تطبّق قوانين الخصوصية.
  • ✓عندما تحتاج إلى تحديث وسومك إلى إعدادات Consent Mode v2.
  • ✓عندما تريد التأكد من أن حالات الموافقة تُرسل بشكل صحيح.

رابط المهارة

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/consent-mode/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/consent-mode/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“اضبط Google Consent Mode v2 في موقعي، بحيث تتبع وسوم الإعلانات والتحليلات اختيارات ملفات تعريف الارتباط التي يقوم بها الزوار.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يحدّث الوكيل إعداد الوسوم ليرسل حالات الموافقة على بيانات المستخدم للإعلانات والتخصيص الإعلاني، ويتحقق من ظهور معامل الموافقة في الطلبات الموجهة إلى خدمات Google.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Implement Google Consent Mode v2

Consent Mode v2 is essential for adhering to privacy regulations (like GDPR) while maintaining the ability to measure conversion and analytics data in a privacy-safe way.

Quick Reference

  • Adjust tag behavior based on user consent for privacy compliance
  • Maintain data insights through modeling for non-consenting users
  • Ensure the gcd parameter is present in pings to Google services

Check

Verify that Google Consent Mode v2 is correctly implemented and sending the appropriate consent states.

Fix

Update your GTM or gtag.js implementation to support the new ad_user_data and ad_personalization consent types.

Explain

Explain the transition to Consent Mode v2 and why it's required for digital advertising in certain regions.

Code Review

Review the routes, assets, and loading behavior that affect Implement Google Consent Mode v2. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/performance/consent-mode

الأسئلة الشائعة

لماذا يهم Consent Mode؟

تقول المهارة إنه يساعد على الالتزام بقواعد الخصوصية مثل GDPR، مع السماح بقياس يحترم الخصوصية.

ما أنواع الموافقة الجديدة؟

تذكر المهارة بيانات المستخدم للإعلانات والتخصيص الإعلاني.

كيف أتحقق من أنه يعمل؟

تقول المهارة إن معامل gcd يجب أن يظهر في الطلبات المرسلة إلى خدمات Google.

التفاصيل

الوصف الأصلي من المؤلف

Use when auditing slow page loads, heavy assets, or rendering delays related to Implement Google Consent Mode v2. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

الشعبية

نجوم GitHub
75k
الترتيب
#2778
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة