How to track the activity accross different devices with User-ID parameter?

User-ID helps connect interactions from the same identified user across sessions and devices. In the module, the identifier is the customer ID of someone signed in to their store account. Visitors who are not signed in do not have this customer User-ID.

To connect visits across devices, the customer must sign in to the same account and the ID must be transmitted consistently. Also check that the reporting identity selected in GA4 uses User-ID. This feature does not retrospectively reconstruct data collected before implementation.

Module setting

  1. Open Google Analytics 4 tracking and review Activate the User-ID feature?.
  2. Starting in 2.2.19, User-ID tracking mode offers Standard and Hidden (direct GA4 config). Hidden mode sends the customer ID in the GA4 configuration without adding visible URL parameters.
  3. Save your selected setting. Using a signed-in fictitious customer account, test collection and check that User-ID is actually present. Also check behavior after signing out.

After selecting a mode, check User-ID transmission using the collection test.

Use only an appropriate internal ID: do not send an email address or telephone number as user_id. User-ID is separate from user-provided data collection for enhanced conversions.

Google User-ID documentation; Cross-platform measurement and reporting identity

Other FAQs in this category