Hands-on module
Video & chat
Wire third-party player and messenger APIs into the dataLayer.
Video players and chat widgets ship their own JavaScript APIs rather than dataLayer events. This module wires three of the most common, Vimeo, Wistia and Intercom, into your measurement.
Each exposes a different hook (the Vimeo Player SDK, Wistia's _wq queue, Intercom's lifecycle callbacks), but the pattern holds: bind to the player or widget's events and push named dataLayer events you can trigger on.
What you'll learn
- Bind the Vimeo Player SDK (play, ended) and push dataLayer events
- Use Wistia's _wq queue to attach play / end handlers
- Hook Intercom's onShow / onHide for messenger engagement
- Fire a GA4 Event tag on each captured event
Lessons
- 1→
Vimeo Video
Bind to the Vimeo Player SDK (play, ended) and push dataLayer events.
- 2→
Wistia Video
Use the _wq queue to bind play/end and push to the dataLayer.
- 3→
Intercom Chat
Hook Intercom's onShow / onHide callbacks into the dataLayer.
- 4→
Video & Chat: Recap And Verify
Recap every embed listener, then check your whole container in one pass.