Anna Kournikova Pregnant: Fourth Child with Enrique Iglesias After Scare
javascript
uments);
};
if (!f.fbq) f.fbq = n;
n.push = n;
n.loaded = !0;
n.version = '2.0';
n.queue = [];
t = b.createElement(e);
t.async = !0;
t.defer = !0;
t.src = v;
s = b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t, s);
})(f, b, e, 'https://connect.facebook.net/enUS/fbevents.js', n, t, s);
fbq('init', '593671331875494');
fbq('track', 'PageView');
};
function loadGtagEvents(isGoogleCampaignActive) {
if (!isGoogleCampaignActive) {
return;
}
var id = document.getElementById('toi-plus-google-campaign');
if (id) {
return;
}
(function(f, b, e, v, n, t, s) {
t = b.createElement(e);
t.async = !0;
t.defer = !0;
t.src = v;
t.id = 'toi-plus-google-campaign';
s = b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t, s);
})(f, b, e, 'https://www.googletagmanager.com/gtag/js?id=AW-877820074', n, t, s);
};
function loadSurvicateJs(allowedSurvicateSections = []){
const section = window.location.pathname.split('/')[1]
const isHomePageAllowed = window.location.pathname === '/' && allowedSurvicateSections.includes('homepage')
const ifAllowedOnAllPages = allowedSurvicateSections && allowedSurvicateSections.includes('all');
if(allowedSurvicateSections.includes(section) || isHomePageAllowed || ifAllowedOnAllPages){
(function(w) {
function setAttributes() {
var primeuserstatus = window.isPrime ? 'paid' : 'free' ;
var geoLocation = window?.geoinfo?.CountryCode ? window?.geoinfo?.CountryCode : 'IN' ;
w.sva.setVisitorTraits({
toiusersubscriptionstatus : primeuserstatus,
toiusergeolocation : geoLocation
});
}
if (w.sva && w.sva.setVisitorTraits) {
setAttributes();
} else {
w.addEventListener("survicateready", setAttributes);
}
var s = document.createElement('script');
s.src="https://survey.survicate.com/workspaces/0be6ae9845d14a7c8ff08a7a00bd9b21/websurveys.js";
s.async = true;
var e = document.getElementsByTagName('script')[0];
e.parentNode.insertBefore(s, e); // This line completes the script insertion
})(window); // Pass window object to the IIFE
}
};
