מסמך עזר בנושא פרמטרים של Google Tag (gtag.js)
בטבלה הבאה מפורטים הפרמטרים שאפשר להגדיר באמצעות הפקודה config
, שהוגדרה באמצעות הפקודה set
או העברה באמצעות הפקודה event
.
מידע נוסף על פרמטרים ספציפיים למוצר זמין במסמכי התיעוד המתאימים:
פרמטרים של בקרה
פרמטר |
סוג ערך |
ערך לדוגמה |
תיאור |
groups |
מחרוזת או מערך של מחרוזות |
'ברירת מחדל,ספקים' |
משמש את הפקודה config כדי להקצות יעד לקבוצה אחת או יותר. |
send_to |
מחרוזת או מערך של מחרוזות |
'G-XXXXXX' |
מגדיר את חשבון או נכס היעד שיקבלו את נתוני האירוע. |
event_callback |
פונקציה |
function() { form.submit(); } |
פונקציית קריאה חוזרת של JavaScript שנקראת במהלך העיבוד של פקודת event . |
event_timeout |
מספר שלם |
2,000 |
הזמן הקצוב לתפוגה שהוגדר הוא event_callback באלפיות השנייה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-02-06 (שעון UTC).
[null,null,["עדכון אחרון: 2024-02-06 (שעון UTC)."],[[["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"]]