সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
গুগল অ্যানালিটিক্স মেজারমেন্ট প্রোটোকল আপনাকে আপনার ওয়েব বা অ্যাপ স্ট্রীমে অফলাইন ডেটা পাঠাতে দেয়, আপনি ইতিমধ্যে ট্যাগিং বা Firebase SDK-এর মাধ্যমে সংগ্রহ করছেন এমন ডেটা ছাড়াও।
এই নির্দেশিকাটি সাধারণ Google Analytics পরিমাপ প্রোটোকল ব্যবহারের ক্ষেত্রে এবং তাদের প্রয়োজনীয়তা বর্ণনা করে।
প্রয়োজনীয়তার সারসংক্ষেপ
এই টেবিলটি প্রতিটি ব্যবহারের ক্ষেত্রে প্রয়োজনীয়তার একটি দ্রুত রেফারেন্স প্রদান করে। নিম্নলিখিত সেরা অনুশীলনগুলি মনে রাখুন:
ইভেন্টের timestamp_micros এবং ব্যবহারকারীর বৈশিষ্ট্য অনুরোধের সময় ডিফল্ট। অতীতে ঘটে যাওয়া কোনো ইভেন্ট বা ব্যবহারকারীর সম্পত্তির পরিবর্তন পাঠানোর সময়, পাঠানোর ইভেন্ট নির্দেশিকা এবং ব্যবহারকারীর বৈশিষ্ট্য নির্দেশিকায় বর্ণিত টাইমস্ট্যাম্পটিকে ওভাররাইড করুন।
সঠিক রিয়েলটাইম রিপোর্ট এবং এনগেজমেন্ট মেট্রিক্সের জন্য, পূর্ববর্তী ইভেন্ট থেকে অতিবাহিত মিলিসেকেন্ডে সেট করা engagement_time_msec ইভেন্ট প্যারামিটার অন্তর্ভুক্ত করুন।
কেস ব্যবহার করুন
সেশন আইডি
সময় প্রয়োজন অনুরোধ
timestamp_micros প্রয়োজনীয়তা
ইভেন্টে User-ID বরাদ্দ করুন
প্রয়োজন
<= সেশন শুরুর ব্যবসায়িক দিন শেষ
>= অধিবেশন শুরু এবং <= অধিবেশন শেষ
সেশন অ্যাট্রিবিউশন
প্রয়োজন
<= সেশন শুরু + 24 ঘন্টা
>= অধিবেশন শুরু এবং <= অধিবেশন শেষ
বিজ্ঞাপন প্ল্যাটফর্মে ইভেন্ট রপ্তানি
প্রয়োজন নেই
<= শেষ সেশনের ব্যবসায়িক দিন + 63 দিন
>= অনুরোধের সময় বিয়োগ করে দুই কার্যদিবস এবং <= অনুরোধের সময়
দর্শক তৈরির জন্য ইভেন্ট বা ব্যবহারকারীর বৈশিষ্ট্য পাঠান
প্রয়োজন নেই
ওয়েব: <= সর্বশেষ অনলাইন ইভেন্ট সময় + 30 দিন অ্যাপ: <= সর্বশেষ অনলাইন ইভেন্টের সময় + 42 দিন
>= অনুরোধের সময় বিয়োগ করে দুই কার্যদিবস এবং <= অনুরোধের সময়
ইভেন্টে User-ID বরাদ্দ করুন
একটি User-ID দিয়ে অনলাইন বা অফলাইন ইভেন্ট প্রদান করতে পরিমাপ প্রোটোকল ব্যবহার করুন।
একটি ইভেন্টে একটি User-ID যোগ করার জন্য এখানে কিছু উদাহরণ ব্যবহার করা হল:
আপনার অনলাইন পরিমাপে অনলাইন ইভেন্টগুলির জন্য ব্যবহারকারী-আইডি সন্ধান করার জন্য প্রয়োজনীয় তথ্যের অভাব রয়েছে, তবে আপনার কাছে একটি ইভেন্ট-প্রসেসিং পাইপলাইন রয়েছে যা একটি অনলাইন সেশন এবং একটি ব্যবহারকারী-আইডির মধ্যে সম্পর্ক তৈরি করতে সক্ষম৷
এই পরিস্থিতিতে, আপনি একটি User-ID দিয়ে অনলাইন ইভেন্ট প্রদান করতে পরিমাপ প্রোটোকল ব্যবহার করছেন।
আপনি পরিমাপ প্রোটোকলের সাথে যে ইভেন্টগুলি পাঠাচ্ছেন তার জন্য আপনার কাছে ব্যবহারকারী-আইডি নেই, তবে আপনি সেশন চলাকালীন ব্যবহারকারী অনলাইনে লগ ইন করলে সেই ইভেন্টগুলিকে একটি ব্যবহারকারী-আইডির সাথে যুক্ত করতে চান৷
এই পরিস্থিতিতে, আপনি একটি ব্যবহারকারী-আইডি সহ পরিমাপ প্রোটোকল ইভেন্টগুলি প্রদান করতে অনলাইন ইভেন্টগুলি ব্যবহার করছেন৷
এখানে একটি ইভেন্টে একটি User-ID যোগ করার প্রয়োজনীয়তা রয়েছে:
ইভেন্টের প্যারামিটার তালিকায় session_id অন্তর্ভুক্ত করুন।
অনলাইন সেশনের মতো একই ব্যবসায়িক দিনে পরিমাপ প্রোটোকল ইভেন্টগুলি পাঠান।
আপনি যদি timestamp_micros ওভাররাইড করেন, তাহলে এটি অনলাইন সেশনের শুরু এবং শেষ সময়ের মধ্যে একটি টাইমস্ট্যাম্পে সেট করুন।
যদি আপনার লক্ষ্য হয় অনলাইন ইভেন্টের জন্য User-ID প্রদান করা, তাহলে অনুরোধে user_id সেট করুন।
যদি আপনার লক্ষ্য হয় প্রতিটি পরিমাপ প্রোটোকল ইভেন্টের সংশ্লিষ্ট অনলাইন সেশন থেকে ব্যবহারকারী-আইডি থাকা, তাহলে আপনাকে user_id সেট করতে হবে না।
সেশন অ্যাট্রিবিউশন
পরিমাপ প্রোটোকল ইভেন্টগুলি যেগুলি নির্দিষ্ট প্রয়োজনীয়তাগুলি পূরণ করে সেগুলি একই সেশনের বৈশিষ্ট্যগুলি (যেমন ভৌগলিক তথ্য, উত্স, মাধ্যম এবং প্রচারাভিযান) সহ একই সেশনের অনলাইন ইভেন্টগুলির মতো রিপোর্টে উপস্থিত হয়৷
সেশন অ্যাট্রিবিউশনের জন্য এখানে প্রয়োজনীয়তা রয়েছে:
ইভেন্টের প্যারামিটার তালিকায় session_id অন্তর্ভুক্ত করুন।
অনলাইন সেশন শুরু হওয়ার 24 ঘন্টা পরে অনুরোধটি পাঠান।
উদাহরণস্বরূপ, আপনার সম্পত্তির সময় অঞ্চলে সোমবার সকাল 11:15 AM এ সেশন শুরু হলে, মঙ্গলবার সকাল 11:15 AM এর আগে অনুরোধটি পাঠান।
আপনি যদি timestamp_micros ওভাররাইড করেন, তাহলে এটি অনলাইন সেশনের শুরু এবং শেষ সময়ের মধ্যে একটি টাইমস্ট্যাম্পে সেট করুন।
বিজ্ঞাপন প্ল্যাটফর্মে ইভেন্ট রপ্তানি
Google অ্যানালিটিক্সে আপনি যে ইভেন্টগুলিকে মেজারমেন্ট প্রোটোকল ব্যবহার করে পাঠান সেগুলিকে Google Ads বা Campaign Manager 360-এর মতো লিঙ্কযুক্ত বিজ্ঞাপন পণ্যগুলিতে রপ্তানি করে।
কয়েকটি সাধারণ পরিস্থিতিতে যেখানে এটি দরকারী তা অন্তর্ভুক্ত:
আপনার ব্যবসার অফলাইন ইভেন্ট রয়েছে যা আপনি বিজ্ঞাপনের বৈশিষ্ট্য এবং প্রতিবেদনে অন্তর্ভুক্ত করতে চান৷
আপনার এমন একটি সিস্টেমে অতিরিক্ত ইভেন্ট রয়েছে যা ট্যাগিং বা Firebase SDK-এর জন্য উপলব্ধ নয়, কিন্তু আপনি এখনও লিঙ্কযুক্ত পণ্যগুলিতে সেই ইভেন্টগুলি অন্তর্ভুক্ত করতে চান।
বিজ্ঞাপন প্ল্যাটফর্মগুলিতে ইভেন্টগুলি রপ্তানি করার প্রয়োজনীয়তাগুলি এখানে রয়েছে:
সর্বশেষ অনলাইন ইভেন্টের 63 দিন পরে ব্যবসায়িক দিন শেষ হওয়ার পরে অনুরোধটি পাঠাবেন না, এমনকি মূল ইভেন্টের অ্যাট্রিবিউশন উইন্ডোটি 63 দিনের বেশি হলেও।
উদাহরণস্বরূপ, client_id বা app_instance_id জন্য সর্বশেষ অনলাইন ইভেন্টটি 1 মার্চ হলে, মেজারমেন্ট প্রোটোকল ইভেন্টটি 3 মে ব্যবসায়িক দিন শেষ হওয়ার পরে পাঠান।
আপনি যদি timestamp_micros ওভাররাইড করেন, শেষ তিন কার্যদিবসের মধ্যে এটি একটি টাইমস্ট্যাম্পে সেট করুন৷
দর্শক তৈরির জন্য ইভেন্ট বা ব্যবহারকারীর বৈশিষ্ট্য পাঠান
পরিমাপ প্রোটোকল ব্যবহার করে প্রেরিত ইভেন্ট এবং ব্যবহারকারীর বৈশিষ্ট্যগুলি দর্শকের অবস্থার মূল্যায়নে অন্তর্ভুক্ত করা হয় যদি আপনি কয়েকটি প্রয়োজনীয়তা মেনে চলেন।
দর্শক তৈরির জন্য ইভেন্ট বা ব্যবহারকারীর বৈশিষ্ট্যগুলি পাঠানোর প্রয়োজনীয়তাগুলি এখানে রয়েছে:
একই client_id জন্য সর্বশেষ অনলাইন ইভেন্টের 30 দিন পরে ব্যবসায়িক দিন শেষ হওয়ার পরে কোনও ওয়েব স্ট্রিমে অনুরোধটি পাঠান।
উদাহরণস্বরূপ, যদি client_id জন্য সর্বশেষ অনলাইন ইভেন্টটি 1 মার্চ ঘটে থাকে, তাহলে 31 মার্চ ব্যবসায়িক দিন শেষ হওয়ার পরে পরিমাপ প্রোটোকল ইভেন্টটি পাঠান।
একই app_instance_id জন্য সর্বশেষ অনলাইন ইভেন্টের 42 দিন পরে ব্যবসায়িক দিন শেষ হওয়ার পরে কোনও অ্যাপ স্ট্রিমে অনুরোধটি পাঠান।
উদাহরণস্বরূপ, যদি app_instance_id এর সর্বশেষ অনলাইন ইভেন্টটি 1 মার্চ ঘটে থাকে, তাহলে 12 এপ্রিল ব্যবসায়িক দিন শেষ হওয়ার পরে পরিমাপ প্রোটোকল ইভেন্টটি পাঠান।
আপনি যদি timestamp_micros ওভাররাইড করেন, শেষ 3 ব্যবসায়িক দিনের মধ্যে এটি একটি টাইমস্ট্যাম্পে সেট করুন।
[null,null,["2025-07-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe Google Analytics Measurement Protocol allows you to send offline data, supplementing your existing online data collection.\u003c/p\u003e\n"],["\u003cp\u003eThis protocol enables you to assign User IDs to events, attribute sessions, export events for advertising, and leverage data for audience creation within Google Analytics.\u003c/p\u003e\n"],["\u003cp\u003eSpecific requirements, including session IDs and timestamps, must be met for each use case to ensure data accuracy and integration with online data.\u003c/p\u003e\n"],["\u003cp\u003eRefer to the provided tables and guidelines for detailed requirements and best practices for each use case, such as session attribution and audience creation.\u003c/p\u003e\n"],["\u003cp\u003eAdhering to these guidelines ensures accurate reporting, attribution, and audience creation based on both online and offline data within your Google Analytics property.\u003c/p\u003e\n"]]],["The Google Analytics Measurement Protocol allows sending offline data to web or app streams. Key actions include: assigning User-IDs to events (requiring a `session_id`, same-day processing, and specific `timestamp_micros`), attributing sessions (requiring `session_id` and submission within 24 hours of session start), exporting events to advertising platforms (no `session_id` required, must be sent within 63 days of the last online event), and using data for audience creation (no `session_id`, web data must be sent within 30 days and app data within 42 days of the last event).\n"],null,["# Measurement protocol use cases\n\nThe Google Analytics Measurement Protocol lets you send offline data to your Web or App stream, in\naddition to the data you're already collecting with tagging or the Firebase SDK.\n\nThis guide describes common Google Analytics Measurement Protocol use cases and their requirements.\n| **Key Term:** In this guide, \"business day\" is the business day of an event or session in the [time zone of your property](//support.google.com/adsense/answer/9830725).\n\nSummary of requirements\n-----------------------\n\nThis table provides a quick reference of the requirements for each use\ncase. Keep the following best practices in mind:\n\n1. The `timestamp_micros` of events and user properties defaults to the request\n time. When sending an event or user property change that occurred in the\n past, override the timestamp as described in the [sending events](/analytics/devguides/collection/protocol/ga4/sending-events) guide and\n the [user properties](/analytics/devguides/collection/protocol/ga4/user-properties) guide.\n\n2. For accurate Realtime reports and engagement metrics, include the\n `engagement_time_msec` event parameter set to the milliseconds elapsed since\n the preceding event.\n\n| Use case | Session ID | Request time requirement | `timestamp_micros` requirement |\n|------------------------------------------------------|--------------|-----------------------------------------------------------------------------------------|---------------------------------------------------------------|\n| Assign User-ID to events | Required | \\\u003c= end of the session start's business day | \\\u003e= session start and \\\u003c= session end |\n| Session attribution | Required | \\\u003c= session start + 24 hours | \\\u003e= session start and \\\u003c= session end |\n| Export events to advertising platforms | Not required | \\\u003c= last session business day + 63 days | \\\u003e= request time minus two business days and \\\u003c= request time |\n| Send events or user properties for audience creation | Not required | Web: \\\u003c= latest online event time + 30 days App: \\\u003c= latest online event time + 42 days | \\\u003e= request time minus two business days and \\\u003c= request time |\n\nAssign User-ID to events\n------------------------\n\nUse the Measurement Protocol to provide online or offline events with a\n[User-ID](//support.google.com/analytics/answer/9213390).\n\nHere are some example use cases for adding a User-ID to an event:\n\n1. Your online measurement lacks the information needed to look up the\n User-ID for online events, but you have an event-processing pipeline that\n is able to make the association between an online session and a User-ID.\n\n In this scenario, you are using the Measurement Protocol to provide\n *online* events with a User-ID.\n2. You don't have the User-ID for events you are sending with the\n Measurement Protocol, but you want those events to be associated with a\n User-ID if the user logged in online over the course of the session.\n\n In this scenario, you are using online events to provide\n *Measurement Protocol* events with a User-ID.\n\nHere are the requirements to add a User-ID to an event:\n\n- Include the `session_id` in the event's parameter list.\n- Send the Measurement Protocol events on the *same business day* as the online session.\n- If you override `timestamp_micros`, set it to a timestamp between the start and end time of the online session.\n- If your goal is to provide User-ID for online events, set the `user_id` in the request.\n- If your goal is for each Measurement Protocol event to have the User-ID from its corresponding online session, you don't need to set `user_id`.\n\nSession attribution\n-------------------\n\nMeasurement Protocol events that meet specific requirements appear in reports\nwith the same session attributes (such as geographic information, source,\nmedium, and campaign) as online events from the same session.\n\nHere are the requirements for session attribution:\n\n- Include the `session_id` in the event's parameter list.\n- Send the request no later than 24 hours after the start of the online\n session.\n\n For example, if the session started at 11:15 AM on Monday in your property's\n time zone, send the request before 11:15 AM on Tuesday.\n- If you override `timestamp_micros`, set it to a timestamp between the\n start and end time of the online session.\n\nExport events to advertising platforms\n--------------------------------------\n\nGoogle Analytics includes the events you send using Measurement Protocol\nin exports to linked advertising products such as Google Ads or Campaign Manager\n360.\n| **Tip:** This use case doesn't require `session_id`.\n\nA few common scenarios where this is useful include:\n\n- Your business has offline events that you want included in advertising attribution and reporting.\n- You have additional events in a system that is not available to tagging or the Firebase SDK, but you still want to include those events in linked products.\n\nHere are the requirements to export events to advertising platforms:\n\n- Send the request no later than the end of the business day 63 days after\n the latest online event, even if the key event's attribution window is more\n than 63 days.\n\n For example, if the latest online event for the `client_id` or\n `app_instance_id` occurred on March 1, send the Measurement Protocol\n event no later than the end of the business day on May 3.\n- If you override `timestamp_micros`, set it to a timestamp within the last\n three business days.\n\nSend events or user properties for audience creation\n----------------------------------------------------\n\nEvents and user properties sent using Measurement Protocol are included in\nthe evaluation of [audience conditions](//support.google.com/analytics/answer/9267572) if you adhere to a few requirements.\n| **Tip:** This use case doesn't require `session_id`.\n\nHere are the requirements to send events or user properties for audience\ncreation:\n\n- Send the request to a Web stream no later than the end of the business day\n 30 days after the latest online event for the same `client_id`.\n\n For example, if the latest online event for the `client_id` occurred on\n March 1, send the Measurement Protocol event no later than the end of the\n business day on March 31.\n- Send the request to an App stream no later than the end of the business day\n 42 days after the latest online event for the same `app_instance_id`.\n\n For example, if the latest online event for the `app_instance_id` occurred\n on March 1, send the Measurement Protocol event no later than the end of\n the business day on April 12.\n- If you override `timestamp_micros`, set it to a timestamp within the last 3\n business days."]]