Widget
Set up widget analytics
3min
ThroughLine analytics is only supported for direct requests to your custom subdomain (companyname.findahelpline.com), using Google Tag Manager (GTM). If no analytics are required, simply embed the widget.
To enable analytics, you will need to work with your development team to ensure that events being generated by the widget can be consumed by the containing page and sent to your measurement solution.
ThroughLine utilizes the Windows:postMessage method to share event data with the parent page. Below is an example of the event:
ο»Ώ
The following event types are available:
ο»Ώ
Add this JavaScript snippet to capture analytics events and push them to your measure solution.
ο»Ώ
ο»Ώ