Send Ascora booking form events to Google Analytics, Tag Manager and Meta
Tracking sends an event to Google Analytics, Google Tag Manager or the Meta pixel at five points as the customer moves through the form. You choose the name of each event. An event with no name sends nothing.
Before you start
- Tracking is a Business feature. On the Free plan the page says "Want to track your form?" with "Tracking events are only available to Ascora booking form subscribers.", and every box is disabled.
- The tracking tool has to be loaded on the web page that holds the form. Formpiece does not add it. The page says so under each of the three tools.
Step by step
- Open your form from Forms. On the Settings tab, open Tracking under Form responses.
- Under the tool you use, type a name against each event.
- Click Save. The page confirms with "Tracking settings updated."
Names can be up to 40 characters, and spaces at either end are removed. The empty boxes suggest fp_first_engage, fp_service_selected, fp_date_selected, fp_time_selected and fp_form_submit. They are only suggestions and nothing is sent until you type a name.
When each event is sent
- First Engagement: the first time the customer fills in a field or picks something. A service chosen for them, or fields filled in by an address lookup they have not agreed to, do not count. It is sent once per visit to the form.
- Service selected: when the customer picks a service. A form with no services step never sends it.
- Date selected: when the customer picks a different date.
- Time selected: when the customer picks a different time.
- Form submission: once the booking has been saved in Formpiece.
Google Analytics
Boxes are labelled Custom event name. Formpiece calls gtag('event', name) on the page. The page warns: "These events will not work on Google Analytics loaded via Google Tag Manager!" It is your responsibility to load Google Analytics on the pages that host the form.
Google Tag Manager
Boxes are labelled Custom event trigger name. Formpiece pushes { event : name } to the page's dataLayer. Each name needs a matching trigger in your container:
- In your container, go to Triggers, click New and choose Custom Event.
- Enter the same name you typed here as the Event name.
- Go to Tags, open the tag that should fire, and add the trigger to it.
Some tags need more configuration before a trigger fires them.
Meta pixel
Boxes are labelled Custom event name. Formpiece calls fbq('trackCustom', name, {}), so each one arrives as a custom event. The Meta pixel has to be loaded on the pages that host the form.
When it goes wrong
No events arrive
- The tool is not loaded on the page that holds the form, or it loads after the form does. The form checks for it each time and sends nothing if it is missing.
- Google Analytics is loaded through Google Tag Manager. Use the Tag Manager boxes instead.
- The form was not republished after you saved. Saving publishes the form, so check Embed says the form is published.
- The account is on the Free plan, so the names were never saved.
The Tag Manager trigger doesn't fire
The Event name in the trigger has to match the name here exactly, including case.