checked
onclick=
”
window.plausible && plausible
(
‘Premium Change – Showcase’,
{
logged: document.querySelector(‘[data-premium–authenticated]’) ? ‘1’ : ‘0’,
action: this.getAttribute(‘data-action’) || ”,
product: this.getAttribute(‘data-product’) || this.getAttribute(‘data-product–parent’) || ”,
promotions: this.getAttribute(‘data-product–promotions’) || ”,
experiment: document.querySelector(‘[data-experiment]’)&&document.querySelector(‘[data-experiment]’).getAttribute(‘data-experiment’) || ”
}
);
window.ga && ga( ‘send’, ‘event’, ‘Premium Change – Showcase’, (this.getAttribute(‘data-product’) || this.getAttribute(‘data-product–parent’) || ‘-‘) + ‘/’ + (this.getAttribute(‘data-product–promotions’) || ‘-‘) + ‘@’ + (document.querySelector(‘[data-experiment]’)&&document.querySelector(‘[data-experiment]’).getAttribute(‘data-experiment’) || ‘-‘), (location.href || ”).replace(/[?].*$/g, ”) );
window.gtag && gtag(‘event’, ‘premium_product_change’,
{
paywall: document.querySelector(‘[data-premium–paywall]’) && document.querySelector(‘[data-premium–paywall]’).getAttribute(‘data-premium–paywall’) || ”,
url: (location.href || ”).replace(/[?].*$/g, ”),
experiment: document.querySelector(‘[data-experiment]’) && document.querySelector(‘[data-experiment]’).getAttribute(‘data-experiment’) || ”,
logged: document.querySelector(‘[data-premium–authenticated]’) ? ‘1’ : ‘0’,
premium: document.querySelector(‘[data-premium–user]’) ? ‘1’ : (document.querySelector(‘[data-premium–expired]’) ? ‘-1’ : ‘0’),
views: document.querySelector(‘[data-paywall–count]’) && document.querySelector(‘[data-paywall–count]’).getAttribute(‘data-paywall–count’) || ”,
product: this.getAttribute(‘data-product’) || this.getAttribute(‘data-product–parent’) || ”,
promotions: this.getAttribute(‘data-product–promotions’) || ”
});
”
data-product=”# oProduct.id ?>”
data-product–parent=”# oProduct.parent && oProduct.parent.id || ” ?>”
data-product–promotions=”# oProduct.promotions && oProduct.promotions.map(function(oPromotion){return oPromotion.id;}).join(‘,’) || ” ?>”
data-product–json=”# window.JSON && JSON.stringify(oProduct) || ” ?>”
>
# oParameters.kicker || ” ?>
# oParameters.sub_text || ” ?>
Fonte : Roma Today