// 1057638
(function pomav3095Tracking(){
if (document.readyState === 'loading') {
return window.addEventListener('DOMContentLoaded', pomav3095Tracking)
}
// TRACKING NEURO TEASER:
$('.teaser-neuro').on('mouseup', '.switcher-option label', function (){
var label = $(this).closest('.teaser').find('.headline .h4').text();
tefDataLayer.push(
{
event: "eventGeneric",
eCat: 'Teaser-Laufzeit-Switcher',
eAct: 'Click',
eLab: label
}
);
});
$('.teaser-neuro .links .btn').on('click', function (){
var product = $(this).closest('.teaser').find('.headline .h4').text().replace(/\n/g, ' ');
var term = $(this).closest('.teaser').find('.switcher-option input[type="radio"][checked="true"] + label .option-text').text();
var runtime = $('.nav-tab.active a span').text().replace(/\n/g, ' ');
var highlight = $(this).closest('.teaser').hasClass('teaser-highlight');
var priceEuro = $(this).closest('.teaser').find('.price .sum').text();
var priceCent = $(this).closest('.teaser').find('.price .suffix').text();
var dataVolume = $(this).closest('.teaser').find('.content .sum').text();
if (term !== ''){
tefDataLayer.push(
{
'event': 'optionSwitcher_arsmedium',
'eCat': 'Option Switcher',
'eAct': 'Add To Cart',
'eLab': 'product: ' + product + '| term: '+term + ' | price: ' + priceEuro + '.' + priceCent + ' | data-volume: ' + dataVolume + 'gb' ,
'isHighlighted': highlight,
'nonInteraction': false
}
);
} else {
tefDataLayer.push(
{
'event': 'addtocart_arsmedium',
'eCat': 'CTA Click',
'eAct': 'Click - Add to cart',
'eLab': 'product: ' + product + '| term: '+runtime + ' | price: ' + priceEuro + '.' + priceCent + ' | data-volume: ' + dataVolume + 'gb',
'isHighlighted': highlight,
'nonInteraction': false
}
);
}
});
$('.teaser-neuro .links .link').on('click', function (){
var product = $(this).closest('.teaser').find('.headline .h4').text().replace(/\n/g, ' ');
// var term = $(this).closest('.teaser').find('.switcher-option input[type="radio"][checked="true"] + label .option-text').text();
var runtime = $('.nav-tab.active a span').text().replace(/\n/g, ' ');
var variant = $(this).closest('.teaser .links .link').text().replace(/\n/g, ' ');
var highlight = $(this).closest('.teaser').hasClass('teaser-highlight');
var priceEuro = $(this).closest('.teaser').find('.price .sum').text();
var priceCent = $(this).closest('.teaser').find('.price .suffix').text();
var dataVolume = $(this).closest('.teaser').find('.content .sum').text();
tefDataLayer.push(
{
'event': 'productlinks_arsmedium',
'eCat': 'Link Click',
'eAct': 'Click -' +variant,
'eLab': 'product: '+ product +' | term: ' + runtime + ' | price: ' + priceEuro + '.' + priceCent + ' | data-volume: ' + dataVolume + 'gb',
'isHighlighted': highlight
}
);
});
// TARIFF TEASER
$('.teaser-tariff .links .btn').on('click', function (){
var product = $(this).closest('.teaser').find('.headline strong, .subline').text().replace(/\n/g, ' ');
var term = $(this).closest('.teaser').find('.switcher-option input[type="radio"][checked="true"] + label .option-text').text();
var runtime = $(this).closest('.items').find('.price .condAfter').text();
var highlight = $(this).closest('.teaser').hasClass('teaser-highlight');
var priceEuro = $(this).closest('.teaser').find('.price .sum').text();
var priceCent = $(this).closest('.teaser').find('.price .suffix').text();
var dataVolume = $(this).closest('.teaser').find('.headline').text();
tefDataLayer.push(
{
'event': 'addtocart_arsmedium',
'eCat': 'CTA Click',
'eAct': 'Click - Add to cart',
'eLab': 'product: '+product + '| term: ' + runtime + ' | price: ' + priceEuro + '.' + priceCent + ' | data-volume: ' + dataVolume,
'isHighlighted': highlight,
'nonInteraction': false
}
);
});
$('.teaser-tariff ~ .link').on('click', function (){
var product = $(this).closest('.items').find('.headline strong, .subline').text().replace(/\n/g, ' ');
var variant = $(this).text();
var runtime = $(this).closest('.items').find('.price .condAfter').text();
var highlight = $(this).closest('.items').find('.teaser').hasClass('teaser-highlight');
var priceEuro = $(this).closest('.items').find('.price .sum').text();
var priceCent = $(this).closest('.items').find('.price .suffix').text();
var dataVolume = $(this).closest('.items').find('.headline').text();
tefDataLayer.push(
{
'event': 'productlinks_arsmedium',
'eCat': 'Link Click',
'eAct': 'Click -' +variant,
'eLab': 'product: '+product + ' | term: ' + runtime + ' | price: ' + priceEuro + '.' + priceCent + ' | data-volume: ' + dataVolume,
'isHighlighted': highlight
}
);
});
}());