Liveblog Teaser Tag Events
The embed fires custom DOM events.
Example:
<script async src="https://cdn.tickaroo.com/webng/embedjs/tik4.js"></script>
<tickaroo-liveblog-teaser id="my-liveblog-teaser" liveblogId="LIVEBLOG_ID" clientId="CLIENT_ID"></tickaroo-liveblog-teaser>
<script>
document.findElementById('my-liveblog-teaser').addEventListener('tickarooLiveblogTeaserTracking', function(event) {
console.log("Tracking Event " + event.detail.t);
})
</script>
Events are:
tickarooLiveblogTeaserInit
is fired when a liveblog teaser component has been initialized
tickarooLiveblogTeaserTracking
is fired for various actions that can be used for analytics and tracking purposes
The event details will contain the type of event accessible via event.detail.t
. Currently the following types are supported:
The following events give information about countable page views
t_ini
Liveblog has been initialized
The following events give information about clicks
a_tla
User clicked on the show all linka_tli
User clicked on an entry
More events might be added in the future. Implementers should ignore unknown event types.