Gamerin macht ihrem Freund auf der gamescom einen Heiratsantrag, bekommt Hilfe von deutschen Twitch-Streamern
Weitere Videos
window.didomiOnReady = window.didomiOnReady || [];
window.didomiOnReady.push( ( Didomi ) => {
( () => {
const consent = {
ga: ( typeof Didomi === ‚object‘
&& ( Didomi.getLegitimateInterestStatusForVendor( ‚google‘ )
|| Didomi.getUserConsentStatusForVendor( ‚google‘ ) ) ),
};
const videoImpressions = {
ga: false,
};
const eventLabel = ‚gamerin-macht-auf-gamescom-heiratsantrag,1028581‘;
const gaData = {
‚dimension10‘: ‚https://mein-mmo.de/video/gamerin-macht-auf-gamescom-heiratsantrag/‘,
‚dimension11‘: ‚Gamerin macht ihrem Freund auf der gamescom einen Heiratsantrag, bekommt Hilfe von deutschen Twitch-Streamern‘,
‚dimension12‘: ‚1028581‘,
‚dimension13‘: ‚gamescom 2023,1018298,game‘,
‚dimension14‘: ‚articledetail-incontent‘,
‚dimension15‘: ‚play‘,
‚metric1‘: ‚0‘,
}
;
const ga4Data = {
‚campaign‘: ‚[not set]‘,
‚content_main_linked_entity‘: ‚gamescom 2023,1018298,game‘,
‚embed_tagging‘: ‚[not_set]‘,
‚position‘: ‚other‘,
‚video_display_hostname‘: ‚https://mein-mmo.de‘,
‚video_display_url‘: ‚https://mein-mmo.de/video/gamerin-macht-auf-gamescom-heiratsantrag/‘,
‚video_duration‘: 40,
‚video_provider‘ : ‚dailymotion‘,
‚video_id‘: ‚1028581‘,
‚video_launch‘: ‚play‘,
‚video_title‘: ‚gamerin macht ihrem freund auf der gamescom einen heiratsantrag, bekommt hilfe von deutschen twitch-streamern‘,
’section_name‘: ‚articledetail-incontent‘,
}
;
const dmConfig = {
player: ‚x91z7′,
params: {
mute: true,
},
referrerPolicy: ’no-referrer-when-downgrade‘,
}
;
const dmVideo = ‚x8njwj2‘;
const videoType = ‚inline‘;
const videoAutoplay = false && ( ( localStorage.getItem( ‚mmoVideo_autoplay‘ ) ?? ‚true‘ ) === ‚true‘
|| parseInt( localStorage.getItem( ‚mmoVideo_ap_utime‘ ) || 0 ) + 1000 * 60 * 60 * 24 * 7 {
document.querySelector( ‚.player-wrapper[data-id=“dmp_2″]‘ ).dataset.loading = 1;
if ( typeof jad === ‚object‘ && ‚public‘ in jad ) {
dmplayerLoad();
[ ‚preroll‘ ].forEach( position => {
jad.public.setTargetingOnPosition( position, {
videop: ‚contentplayer‘,
autoplay: ( videoType === ‚header‘ || videoAutoplay ? ‚yes‘ : ’no‘ ),
} );
} );
jad.cmd.push( () => {
const preroll = ‚preroll/dmp_2‘;
jad.public.getDailymotionAdsParamsForScript( [ preroll ], res => {
dailymotion.getPlayer( ‚dmp_2‘ ).then( player => {
player.setCustomConfig( { customParams: res[preroll] } );
player.loadContent( {
video: dmVideo,
} );
} );
} );
} );
} else {
dmConfig.video = dmVideo;
dmConfig.params.customConfig = { customParams: ‚premium‘ };
dmplayerLoad();
}
};
const dmplayerLoad = () => {
dailymotion
.createPlayer( ‚dmp_2‘, dmConfig )
.then( player => {
dmplayerTracking( player );
} )
.catch( err => {} );
};
const dmplayerTracking = player => {
player.on( dailymotion.events.AD_START, event => {
const playerWrapper = document.querySelector( ‚.player-wrapper[data-id=“dmp_2″]‘ );
playerWrapper.dataset.loading = 0;
playerWrapper.dataset.loaded = 1;
} );
player.on( dailymotion.events.PLAYER_START, event => {
const playerWrapper = document.querySelector( ‚.player-wrapper[data-id=“dmp_2″]‘ );
playerWrapper.dataset.loading = 0;
playerWrapper.dataset.loaded = 1;
// cinema button
// not compatible with the dailymotion player
} );
player.on( dailymotion.events.VIDEO_START, event => {
if ( WordPressPopularPosts && wpp_params ) {
const searchParams = new URLSearchParams( {
_wpnonce: wpp_params.token,
wpp_id: 1028581,
sampling: wpp_params.sampling_active,
sampling_rate: wpp_params.sampling_rate,
} );
WordPressPopularPosts.post(
wpp_params.ajax_url,
searchParams.toString(),
response => {
wpp_params.debug
&& window.console
&& window.console.log
&& window.console.log( JSON.parse( response ) );
}
);
}
} );
player.on( dailymotion.events.VIDEO_PLAY, event => {
dailymotion
.getAllPlayers()
.forEach( player => {
player
.then( player => {
if ( player.getRootNode().id !== event.id ) {
player.pause();
}
} )
.catch( err => {} );
} );
if ( document.hidden ) {
player.pause();
}
} );
player.on( dailymotion.events.VIDEO_END, event => {
document.querySelector( ‚.player-wrapper[data-id=“dmp_2″]‘ ).dataset.completed = 1;
} );
if ( consent.ga ) {
player.on( dailymotion.events.AD_START, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚adBreakStart‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚adBreakStart‘, label: eventLabel, cds: gaData } );
const eventData = {
event: ‚video-player‘,
label: eventLabel,
cds: ga4Data,
video_current_time: parseInt( event.videoTime ),
video_format: event.playerAspectRatio === ’16:9′ ? ‚cinema‘ : ‚portrait‘,
}
if ( event.adPosition === ‚preroll‘ ) {
eventData.action = ‚video_ad_preroll_start‘;
} else if ( event.adPosition === ‚midroll‘ ) {
eventData.action = ‚video_ad_midroll_start‘;
} else if ( event.adPosition === ‚postroll‘ ) {
eventData.action = ‚video_ad_postroll_start‘;
}
window.dataLayer.push( eventData );
eventData.action = ‚video_ad_start‘;
window.dataLayer.push( eventData );
} );
player.on( dailymotion.events.AD_END, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚adComplete‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚adComplete‘, label: eventLabel, cds: gaData } );
const eventData = {
event: ‚video-player‘,
label: eventLabel,
cds: ga4Data,
video_current_time: parseInt( event.videoTime ),
video_format: event.playerAspectRatio === ’16:9′ ? ‚cinema‘ : ‚portrait‘,
}
if ( event.adPosition === ‚preroll‘ ) {
eventData.action = ‚video_ad_preroll_end‘;
} else if ( event.adPosition === ‚midroll‘ ) {
eventData.action = ‚video_ad_midroll_end‘;
} else if ( event.adPosition === ‚postroll‘ ) {
eventData.action = ‚video_ad_postroll_end‘;
}
window.dataLayer.push(eventData);
eventData.action = ‚video_ad_complete‘;
window.dataLayer.push(eventData);
} );
player.on( dailymotion.events.AD_ERROR, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚adError‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚adError‘, label: eventLabel, cds: gaData } );
} );
player.on( dailymotion.events.AD_PLAY, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚adPlay‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚adPlay‘, label: eventLabel, cds: gaData } );
dailymotion
.getAllPlayers()
.forEach( player => {
player
.then( player => {
if ( player._privates.id !== event.id ) {
player.pause();
}
} )
.catch( err => {} );
} );
} );
player.on( dailymotion.events.VIDEO_BUFFERING, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚buffer‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚buffer‘, label: eventLabel, cds: gaData } );
window.dataLayer.push( {
event: ‚video-player‘,
action: ‚video_buffer‘,
label: eventLabel,
cds: ga4Data,
video_current_time: parseInt( event.videoTime ),
video_format: event.playerAspectRatio === ’16:9′ ? ‚cinema‘ : ‚portrait‘,
video_progression: ‚play_‘ + parseInt( event.videoTime / event.videoDuration * 100 ),
} );
} );
player.on( dailymotion.events.VIDEO_END, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚complete‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚complete‘, label: eventLabel, cds: gaData } );
window.dataLayer.push( {
event: ‚video-player‘,
action: ‚video_content_complete‘,
label: eventLabel,
cds: ga4Data,
video_current_time: parseInt( event.videoTime ),
video_format: event.playerAspectRatio === ’16:9′ ? ‚cinema‘ : ‚portrait‘,
video_progression: ‚play_‘ + parseInt( event.videoTime / event.videoDuration * 100 ),
} );
} );
player.on( dailymotion.events.PLAYER_START, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚view‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚view‘, label: eventLabel, cds: gaData } );
window.dataLayer.push( {
event: ‚video-player‘,
action: ‚video_player_starts‘,
label: eventLabel,
cds: ga4Data,
impression_type: ‚player‘,
video_current_time: parseInt( event.videoTime ),
video_format: event.playerAspectRatio === ’16:9′ ? ‚cinema‘ : ‚portrait‘,
video_progression: ‚play_‘ + parseInt( event.videoTime / event.videoDuration * 100 ),
} );
} );
player.on( dailymotion.events.PLAYER_ERROR, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚error‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚error‘, label: eventLabel, cds: gaData } );
window.dataLayer.push( {
event: ‚video-player‘,
action: ‚video_player_crash‘,
label: eventLabel,
cds: ga4Data,
video_current_time: parseInt( event.videoTime ),
video_format: event.playerAspectRatio === ’16:9′ ? ‚cinema‘ : ‚portrait‘,
} );
} );
player.on( dailymotion.events.VIDEO_START, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚AllPlays‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚AllPlays‘, label: eventLabel, cds: gaData } );
if ( videoType === ‚header‘ ) {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚DirectPlays‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚DirectPlays‘, label: eventLabel, cds: gaData } );
} else if ( videoAutoplay ) {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚AutoPlays‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚AutoPlays‘, label: eventLabel, cds: gaData } );
} else {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚ManualPlays‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚ManualPlays‘, label: eventLabel, cds: gaData } );
}
window.dataLayer.push( {
event: ‚video-player‘,
action: ‚video_content_starts‘,
label: eventLabel,
cds: ga4Data,
impression_type: ‚player‘,
video_current_time: parseInt( event.videoTime ),
video_format: event.playerAspectRatio === ’16:9′ ? ‚cinema‘ : ‚portrait‘,
video_progression: ‚play_‘ + parseInt( event.videoTime / event.videoDuration * 100 ),
} );
} );
player.on( dailymotion.events.PLAYER_PRESENTATIONMODECHANGE, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚fullscreen‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚fullscreen‘, label: eventLabel, cds: gaData } );
} );
player.on( dailymotion.events.VIDEO_QUALITYCHANGE, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚levelsChanged‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚levelsChanged‘, label: eventLabel, cds: gaData } );
} );
player.on( dailymotion.events.VIDEO_PLAY, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚play‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚play‘, label: eventLabel, cds: gaData } );
window.dataLayer.push( {
event: ‚video-player‘,
action: ‚video_content_play‘,
label: eventLabel,
cds: ga4Data,
video_current_time: parseInt( event.videoTime ),
video_format: event.playerAspectRatio === ’16:9′ ? ‚cinema‘ : ‚portrait‘,
video_progression: ‚play_‘ + parseInt( event.videoTime / event.videoDuration * 100 ),
} );
} );
player.on( dailymotion.events.VIDEO_PAUSE, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚pause‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚pause‘, label: eventLabel, cds: gaData } );
window.dataLayer.push( {
event: ‚video-player‘,
action: ‚video_pause‘,
label: eventLabel,
cds: ga4Data,
video_current_time: parseInt( event.videoTime ),
video_format: event.playerAspectRatio === ’16:9′ ? ‚cinema‘ : ‚portrait‘,
video_progression: ‚play_‘ + parseInt( event.videoTime / event.videoDuration * 100 ),
} );
} );
player.on( dailymotion.events.VIDEO_SEEKSTART, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ’seek‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ’seek‘, label: eventLabel, cds: gaData } );
} );
player.on( dailymotion.events.VIDEO_SEEKEND, event => {
window.dataLayer.push( {
event: ‚video-player‘,
action: ‚video_seek‘,
label: eventLabel,
cds: ga4Data,
video_current_time: parseInt( event.videoTime ),
video_format: event.playerAspectRatio === ’16:9′ ? ‚cinema‘ : ‚portrait‘,
video_progression: ‚play_‘ + parseInt( event.videoTime / event.videoDuration * 100 ),
} );
} );
player.on( dailymotion.events.PLAYER_VIEWABILITYCHANGE, event => {
if ( event.playerIsViewable && ! videoImpressions.ga ) {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚Impression‘, eventLabel, gaData );
ga( ’send‘, ‚event‘, ‚video-player‘, ‚ImpressionPlayer‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚Impression‘, label: eventLabel, cds: gaData } );
window.dataLayer.push( { event: ‚video-player‘, action: ‚ImpressionPlayer‘, label: eventLabel, cds: gaData } );
window.dataLayer.push( {
event: ‚video-player‘,
action: ‚video_player_impression‘,
label: eventLabel,
cds: ga4Data,
video_current_time: parseInt( event.videoTime ),
video_format: event.playerAspectRatio === ’16:9′ ? ‚cinema‘ : ‚portrait‘,
} );
videoImpressions.ga = true;
}
} );
player.on( dailymotion.events.PLAYER_VOLUMECHANGE, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚volume‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚volume‘, label: eventLabel, cds: gaData } );
} );
player.on( dailymotion.events.PLAYER_HEAVYADSINTERVENTION, event => {
window.dataLayer.push( {
event: ‚video-player‘,
action: ‚video_player_chrome_heavy_ad ‚,
label: eventLabel,
cds: ga4Data,
video_current_time: parseInt( event.videoTime ),
video_format: event.playerAspectRatio === ’16:9‘ ? ‚cinema‘ : ‚portrait‘,
} );
} );
// tracking of related videos
document.querySelectorAll( ‚.player-wrapper .related-wrapper .video‘ ).forEach(video => {
video.addEventListener( ‚click‘, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚related-overlay‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚related-overlay‘, label: eventLabel, cds: gaData } );
} );
} );
document.querySelectorAll( ‚.player-extension.related-wrapper .video‘ ).forEach(video => {
video.addEventListener( ‚click‘, event => {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚related-extension‘, eventLabel, gaData );
window.dataLayer.push( { event: ‚video-player‘, action: ‚related-extension‘, label: eventLabel, cds: gaData } );
} );
} );
// tracking autoplay toggle
document.querySelectorAll( ‚.wp-block-mmo-video input[name=“autoplay“]‘ ).forEach( checkbox => {
checkbox.addEventListener( ‚change‘, event => {
if ( localStorage.getItem( ‚mmoVideo_autoplay‘ ) !== ‚true‘ ) {
window.dataLayer.push( {
event: ‚video-player‘,
action: ‚video_player_autoplay_toggle‘,
label: ‚video-toggle-click‘,
toggle: ‚off‘,
cds: ga4Data,
} );
}
} );
} )
}
};
if ( videoType === ‚header‘ ) {
dmplayerInit();
} else if ( videoAutoplay ) {
new IntersectionObserver(
( entries, observer ) => {
entries
.filter( entry => entry.isIntersecting )
.forEach( entry => {
observer.unobserve( entry.target );
dmplayerInit();
} );
}, {
rootMargin: ‚400px‘,
threshold: 0
}
).observe( document.querySelector( ‚.player-wrapper[data-id=“dmp_2″]‘ ) );
} else {
document.querySelector( ‚.player-wrapper[data-id=“dmp_2″]‘ ).addEventListener( ‚click‘, event => {
dmplayerInit();
if ( consent.ga ) {
ga( ’send‘, ‚event‘, ‚video-player‘, ‚Impression‘, eventLabel, gaData );
ga( ’send‘, ‚event‘, ‚video-player‘, ‚ImpressionPoster‘, eventLabel, gaData );
window.dataLayer.push( {
event: ‚video-player‘,
action: ‚video_player_impression‘,
label: eventLabel,
cds: ga4Data,
impression_type: ‚poster‘,
video_format: event.playerAspectRatio === ’16:9′ ? ‚cinema‘ : ‚portrait‘,
} );
videoImpressions.ga = true;
}
}, { once: true } );
}
} )();
} );