To track Dineplan bookings in GA4, add your GTM container ID in Dineplan, then create a custom event trigger and tag in GTM.
First, you need to add your Google Tag Manager (GTM) Container ID to your Dineplan account.
- Log into Dineplan.
- Navigate to "Settings" in the left-hand menu.
- Go to "Booking Calendar Settings" in the right-hand menu.
- Enter your GTM container ID into the "Google Tag Manager Code" field. (You can find your unique container ID by logging into your GTM account.)
- Save your changes.
Google Tag Manager Setup
To track bookings in GA4, you'll need to create a trigger for the custom event (dpWidgetCompleteNew) and a tag that fires this event to GA4.
This ensures bookings via the Dineplan widget appear in your GA4 account under "Events."
Note: Share this setup information with your SEO, Analytics, or Web team.
Create A Tag In GTM
First, you need to crate a tag in your Google Tag Manager account.
- Log into Google Tag Manager.
- Click on "Tags."
- Click "New Tag."
- Choose the tag type "Google Analytics: GA4 Event."
- Enter your Measurement ID from Google Analytics 4 under Admin > Data Streams.
- Enter the "Event Name". (The event name can be anything, for example: "dp_widget_booking".)
- Save your changes.
Set Up A Trigger In GTM
The next step is to create a trigger in Google Tag Manager.
- Click on "Triggers."
- Select "New Trigger."
- Choose the "Custom Event" trigger type.
- Enter the "Event Name" as "dpWidgetCompleteNew" (This must be exact).
- Select "All Custom Events."
- Save your changes.
Test And Publish
- Use the preview mode to test the tag and trigger.
- Ensure everything is working and firing correctly.
- Publish the container once you're satisfied with the setup.
dpWidgetFrame - the event is triggered whenever the frame is loaded (whenever someone loads a page with the booking widget on it)
dpWidgetCompleteNew - the event is triggered when the event is completed, when someone has moved through all the steps of the widget. This is a confirmed booking / conversion.