Add Data from Forms on Your Website
If you want to add to Audience Manager data from forms on your website like name, surname, email address, and more, you need to set up a custom tag. When a visitor fills out the form, the tag will capture these pieces of information and send it to Audience Manager.
Before you start
Here are some things to know before you begin the process:
- Data are saved after a visitor submits the form.
- Passwords and credit card data are not saved. But if you use a custom-made form, make sure that sensitive data are not collected.
- Data are saved as attributes. The form label is used as an attribute name, for example, the input field
nameis saved as
- If there is an attribute with the same name as the form field, it’ll be replaced with the new attribute.
- When collecting the email address, Audience Manager uses it as a profile ID and saves as an
Find the form ID
Before you set up the custom tag, you need to find the
form ID for the forms that you’ll want to track.
form ID is the CSS attributes of the form and you can find it using an inspector in your website browser or a debug mode (Event log > Variables). For example, a code with this element could look like this:
<form class="et_pb_contact_form clearfix" method="post" action="https://clearbank/contact/" name="contact form" id="CF-123">.
Set up form tracking
Once you have the form ID ready, you can move on to creating the tag with the trigger.
To set up a tag for tracking data from forms, follow these steps:
- Go to Menu > Tag Manager.
- Navigate to Tags.
- Click Create new tag.
- Name the tag.
Audience Manager Form Trackertag type, and click Save.
- Click + Add form ID to include, and type the form ID.
- Optionally, click Include only specific fields and define the fields that you want to track. By default, the tag tracks all fields.
- Optionally, toggle Use form labels as attribute names.
- In Tag triggers, click + Existing trigger.
- Select the
All page viewstrigger, and click OK.
- Click Save for the tag and then click Publish.
Tip: If several forms on your website have the same label, the tag will collect data from all those forms and store it as one attribute. But if your website runs in many languages and labels are different in each language, the data won’t be merged into one attribute.
Once the tag is published, the tag will start collecting data from forms and send it to Audience Manager.