ویژگی User-ID به شما امکان می دهد شناسه های خود را با کاربران فردی مرتبط کنید تا بتوانید رفتار آنها را در جلسات مختلف و در دستگاه ها و پلتفرم های مختلف مرتبط کنید.
این سند نحوه ارسال شناسه های کاربری را از وب سایت خود پس از ایجاد شناسه های کاربری توضیح می دهد. برای اطلاعات بیشتر درباره ویژگی User-ID، به اندازهگیری فعالیت در پلتفرمها مراجعه کنید. برای آشنایی با نحوه تنظیم شناسه کاربری برای یک برنامه، به جای آن به تنظیم شناسه کاربری مراجعه کنید.
قبل از شروع
این راهنما فرض می کند که شما کارهای زیر را انجام داده اید:
برای ارسال شناسه کاربری به Analytics، پارامتر user_id را به دستور config در کد اندازه گیری در هر صفحه وب سایت خود اضافه کنید. با استفاده از قطعه زیر، G-XXXXXXXX با شناسه برچسب خود و USER_ID با شناسه کاربری ایجاد شده جایگزین کنید.
تاریخ آخرین بهروزرسانی 2025-01-08 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-08 بهوقت ساعت هماهنگ جهانی."],[[["User IDs, assigned by you, enable tracking user behavior across sessions, devices, and platforms in Google Analytics."],["To send user IDs to Google Analytics, ensure you have a Google Analytics account, a web data stream, and the Editor role or higher."],["Avoid setting custom dimensions based on user IDs and sending user IDs when a user isn't signed in to maintain data accuracy."],["Before implementing user IDs, review the best practices and guides linked in the document to avoid potential issues."]]],["User IDs are unique identifiers assigned to users to track their behavior across sessions, devices, and platforms within Google Analytics. To ensure data accuracy, avoid using user IDs for custom dimensions and only send them when users are signed in; do not set placeholder values. Before sending user IDs, establish a Google Analytics account and web data stream, and ensure the Editor role is assigned.\n"]]