مرجع مَعلمة علامة Google (gtag.js)
يوضّح الجدول التالي المَعلمات التي يمكنك ضبطها باستخدام الأمر config
، أو ضبطها باستخدام الأمر set
، أو ضبط البيانات باستخدام الأمر event
.
لمزيد من المعلومات عن المعلَمات الخاصة بالمنتج، يمكنك مراجعة المستندات ذات الصلة:
مَعلمات التحكّم
المَعلمة |
نوع القيمة |
مثال على القيمة |
الوصف |
groups |
سلسلة أو صفيفة من السلاسل |
"default,vendors" (التلقائية، المورّدون) |
يستخدم الأمر config لتعيين هدف إلى مجموعة واحدة أو أكثر. |
send_to |
سلسلة أو صفيفة من السلاسل |
"G-XXXXXX" |
تُحدِّد الحساب/الموقع المستهدَف الذي ستتلقّى بيانات الأحداث. |
event_callback |
الوظيفة |
function() { form.submit(); } |
تم استدعاء وظيفة معاودة الاتصال في JavaScript عند اكتمال معالجة أمر event . |
event_timeout |
عدد صحيح |
2000 |
المهلة المستخدمة لمدة event_callback بالمللي ثانية. |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-02-06 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-02-06 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `config`, `set`, and `event` commands allow you to configure parameters for controlling data collection and processing."],["Parameters include specifying target groups (`groups`), destination for event data (`send_to`), callback functions (`event_callback`), and timeout for callbacks (`event_timeout`)."],["Detailed information on product-specific parameters can be found in the linked documentation for Google Ads, Campaign Manager, Search Ads 360, and Google Analytics."]]],["The `config`, `set`, and `event` commands use configurable parameters. `groups` assigns a target to one or more groups. `send_to` specifies the target account or property. `event_callback` triggers a JavaScript function upon completion of an `event` command. `event_timeout` sets the timeout for the `event_callback` in milliseconds. Product-specific parameters can be found in the documentation for Google Ads conversions, Google Ads remarketing, Campaign Manager and Search Ads 360, and Google Analytics.\n"]]