Tracking: YouTube Video in Modal
Goal
Track YouTube videos in a modal pop-up.
- Example page with YouTube video in a modal: about.gitlab.com/solutions/dev-sec-ops/
- YouTube API document: https://developers.google.com/youtube/iframe_api_reference
- Google Tag Manager YouTube document: https://support.google.com/tagmanager/answer/7679325?hl=en
I have normal embedded YouTube videos tracked into Google Analytics via Google Tag Manager, following the directions here. This method does not work with YouTube videos that's nested inside a modal popup. Please see the DevSecOps page towards the bottom as an example.
I believe it's due to the YouTube iframe URL missing ?enablejsapi=1
parameter. Could an engineer help troubleshoot?
Please provide more information related to this request
Make sure the information you provide is relevant for your request. If unsure, please provide all the fields. Add/remove rows as needed.
If this is urgent, what is the business need for the urgency?
-
Yes: what is the business need for the urgency
-
No
If the requestor is not the DRI, find out if the DRI is aware of the request / wants to change things.
Does anyone in leadership have eyes on this project?
-
Yes @personshandle
-
No
Compliance / legal / accessibility regulations to be aware of?
-
Yes: Please describe why
-
No: Please describe why
What analytics / data will we need to set-up?
-
Yes: Please describe what analytics will need to be set up
-
No
Page(s)
Which page(s) are involved in this request?
- about.gitlab.com/solutions/dev-sec-ops/
DCI
-
DRI: GitLab Handle
-
Consulted: @dennischarukulvanich -
Informed: Everyone
Requirements
What are the requirements for this request? Checklist below is an example of common requirements, please check all that apply and adjust as necessary:
-
Copy writing -
Illustration -
Custom Graphics -
Research -
Data / Analytics -
UX Design -
Engineering