Events
Content & Engagement
Events for content interaction, primarily forwarded to GA4.
Events for content interaction. These are primarily forwarded to GA4 (which supports full native engagement tracking). Meta/TikTok mostly ignore them.
video_play / video_complete
tugus.track('video_play', {
video_title: 'Product Tour 2024',
video_duration: 120, // total length in seconds
video_percent: 0, // current progress
video_provider: 'youtube',
})
tugus.track('video_complete', {
video_title: 'Product Tour 2024',
video_duration: 120,
video_percent: 100,
})file_download
tugus.track('file_download', {
file_name: 'Whitepaper-2024.pdf',
file_extension: 'pdf',
link_url: 'https://shop.de/dl/whitepaper.pdf',
})scroll_depth / button_click / outbound_click
tugus.track('scroll_depth', { percent_scrolled: 75 })
tugus.track('button_click', {
button_text: 'Buy now',
button_id: 'cta-pdp-buy',
})
tugus.track('outbound_click', {
link_url: 'https://partner.de/page',
// link_domain is derived automatically from link_url
})share / rate
tugus.track('share', {
method: 'twitter', // 'twitter' | 'facebook' | 'email' | ...
content_type: 'product',
content_id: 'SKU-12345',
})
tugus.track('rate', {
content_id: 'SKU-12345',
rating: 4.5, // 1-5 stars
})