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.

What events are available?

ThroughLine utilizes the Windows:postMessage method to share event data with the parent page. Below is an example of the event:

JS
ο»Ώ

The following event types are available:

Text
ο»Ώ

How do we capture the analytics events?

Add this JavaScript snippet to capture analytics events and push them to your measure solution.

JS
ο»Ώ

ο»Ώ