Govspeak content example
With youtube analytics
How it looks (preview)
This content has a YouTube link with analytics, converted to an accessible embedded player by component JavaScript.
How to call this example
<%= render "govuk_publishing_components/components/govspeak", {
} do %>
<p>This content has a YouTube link with analytics, converted to an accessible embedded player by component JavaScript.</p>
<p>
<a href="https://www.youtube.com/watch?v=ucjmWjJ25Ho"
data-youtube-player-analytics="true"
data-youtube-player-analytics-category="demo-for-components">
Youtube video with tracking
</a>
</p>
<% end %>