Post by account_disabled on Feb 19, 2024 22:54:14 GMT -6
Using unique identifiers for your users is the best way to segment and create audiences for remarketing on your website or app. Using user ID will be very useful both in measuring cross-platform activity , especially in connecting with BigQuery and measuring the consent status of your users . In this content, you will learn how to create your users' CRM ID (User ID) and send it to Google Analytics 4 to create offline and online user behavior reports . First of all, you must create a unique user ID for each of your visitors on the client side .
For now, you can also do this directly with Google Tag Greece Phone Number Manager . However, let's detail this situation a little more so that you can understand the logic. There are multiple ways to assign unique user IDs to your users who visit your website. You can do this directly on the backend of your project and by directly associating it with your database, which is the most stable method. Or you can do a basic user ID matching using client-side manipulation and API with modules like Google Tag Manager. Of course, Google Analytics Client IDs , also known as ' _cid ' , can also be used as user IDs, but at some point it will make more sense to merge them with your clients' IDs in the CRM so that you can combine this variable with your own remarketing.
It would be better to keep them separate. Let's give an example, below you can see how user IDs in a website project using MongoDB database are created uniquely. This user ID is also simultaneously sent to the CRM integrated into this website. You can send this user ID as two different variables directly to the dataLayer layer to be used in Google Tag Manager. dataLayer.push({ 'user_id': 'USER_ID', 'crm_id': 'USER_ID' }); However, you may not always have such easy access to your website's database. Let's simply try to assign a unique identification number to visitors in instant sessions via GTM and send it to Google Analytics 4. Creating User ID Open a new custom HTML tag in Google Tag Manager and insert the JavaScript code below.
For now, you can also do this directly with Google Tag Greece Phone Number Manager . However, let's detail this situation a little more so that you can understand the logic. There are multiple ways to assign unique user IDs to your users who visit your website. You can do this directly on the backend of your project and by directly associating it with your database, which is the most stable method. Or you can do a basic user ID matching using client-side manipulation and API with modules like Google Tag Manager. Of course, Google Analytics Client IDs , also known as ' _cid ' , can also be used as user IDs, but at some point it will make more sense to merge them with your clients' IDs in the CRM so that you can combine this variable with your own remarketing.
It would be better to keep them separate. Let's give an example, below you can see how user IDs in a website project using MongoDB database are created uniquely. This user ID is also simultaneously sent to the CRM integrated into this website. You can send this user ID as two different variables directly to the dataLayer layer to be used in Google Tag Manager. dataLayer.push({ 'user_id': 'USER_ID', 'crm_id': 'USER_ID' }); However, you may not always have such easy access to your website's database. Let's simply try to assign a unique identification number to visitors in instant sessions via GTM and send it to Google Analytics 4. Creating User ID Open a new custom HTML tag in Google Tag Manager and insert the JavaScript code below.