This feature is part of an open beta. Keep in mind that the feature is subject to change.
These instructions are for administrators and editors who want to pass user-provided data from a web page to Google Analytics using Google Tag Manager.
Overview
In Tag Manager, you will update the Google Analytics 4 Event tag for events that collect user-provided data.
Before you begin
These instructions assume that you have the following:
- Access to the Google Tag Manager container for your website
- Activated user-provided data collection and allowed user-provided data capabilities
- Set up a Google Analytics: GA4 Event tag in your Google Tag Manager container
Instructions
- Sign in to Google Tag Manager.
- From the Workspace tab, click Tags on the left.
- Open the Google Analytics: GA4 Event tag where you collect customer data.
- Select Include user-provided data from your website.
- In the User Data drop-down menu, select or create a User-Provided Data variable.
- In the User-Provided Data variable, select Automatic collection.
- Optional: Select Exclude selected elements to exclude certain CSS selectors on your website page from being interpreted as customer data. Learn how to identify CSS selectors.
- Skip the Format Values field to avoid potential setup issues.
- Save the User-Provided Data variable, then save the event tag.
- In the top right, click Submit to publish the changes.
Next steps
Validate that user-provided data collection is set up correctly. Show me how.