Google Tag Manager (GTM) couldn't track activities within the iframe where the Vetstoria widget is embedded, even with the GTM tracking code installed on their websites.
We’ve improved this by installing GTM directly on the Vetstoria booking tool. Now, key booking information is available in the GTM data layer of the Vetstoria booking tool as a ‘bookingCompleted' event, allowing you to track events happening.
This data can be utilized to reference additional data from the Corporate Reporting API.
booking_api_hash appointment_ids pms_appointment_ids
**Multiple values are captured for the ‘Appointment ID’ and the ‘PIMS appointment ID’ fields if a multi-pet booking is made.
How to enable GTM tracking for a Vet Group.
1. First to reach out to our support team on support@vetstoria.com and request to enable the “Capture Google Tag Manager Container ID” setting.
2. Once this setting is activated, navigate to Clinic > Advanced Settings > Tracking. You can now see a field called ‘Google Tag Manager Container ID’.
3. Enter the ‘Google Tag Manager Container ID’ and click ‘Save Changes’ button.
How does the booking related information are captured on the data layer?
The below screenshot show what it will look like when a booking is confirmed, the above information is visible in the data layer of the Vetstoria booking tool.
This screenshot was captured from the ‘GTM-Tag Assistant’ tool that shows the ‘bookingCompleted’ event details are captured and reflected in the data layer.
If you have any questions or if you need further help, please login to Vetstoria to chat with our team or use the Contact Support form linked at the top of this page.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article