[ad_1]

Help | Press | Advertise With Us | Jobs | FOX Cincy | RSS | Site Map
FS1 | FOX | FOX News | Fox Corporation | FOX Supports | FOX Deportes

™ and © 2019 Fox Media LLC and Fox Sports Interactive Media, LLC. All rights reserved
Use of this website (including any and all parts and components) constitutes your acceptance of these TERMS OF USE and UPDATED PRIVACY POLICY.
Advertising Choices

(function(){
var isTouch = window.navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i);

if (isTouch){

// heavily-modded a copy of fsUtils/ScriptLoader
let getScript = function(url){

// Create a new script and setup the basics.
let script = document.createElement(“script”);

script.async = false;
script.src = url;

//Attach the script tag to the page (before the first script) so the magic can happen.
let firstScript = document.getElementsByTagName(‘script’)[0];
firstScript.parentNode.insertBefore(script, firstScript);

};
let googlePixelLoader = function(){

window[‘google_conversion_id’] = 832239217;
window[‘google_conversion_label’] = “TccACP23rXkQ8ezrjAM”;
window[‘google_remarketing_only’] = false;

getScript(window.location.protocol + ‘//www.googleadservices.com/pagead/conversion.js’);
};
let fbPixelLoader = function(){
/* from https://fng-jira.fox.com/browse/FSCOM-12494 – Facebook Pixel Code */
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
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.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,’script’,
‘https://connect.facebook.net/en_US/fbevents.js’);
fbq(‘init’, ‘161811331078914’);
fbq(‘track’, ‘ViewContent’,{content_name:’Mobile_App_Install’});
};

(function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://cdn.branch.io/branch-latest.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener applyCode banner closeBanner creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode".split(" "), 0);
let branchData = null;
branch.init('key_live_acdMtqDFnx4gILoc1Rq9VbckBtmjzNok', function(err, data) {
branchData = data;
});
branch.addListener('didShowJourney',function(){
let iframe = document.getElementById('branch-banner-iframe');
let btn = (typeof iframe.contentDocument !== 'undefined') ? iframe.contentDocument.getElementById('branch-mobile-action') : iframe.contentWindow.document.getElementById('branch-mobile-action');

btn.addEventListener('click',function(ev) {
if(ev.preventDefault) ev.preventDefault();

if(typeof window['adwordPixelEnabled'] === 'undefined') {
googlePixelLoader();
fbPixelLoader();
// set to load only once after one click
window['adwordPixelEnabled'] = true;
}

// install only
if(branchData && !branchData.has_app) {
FsBeacon.DoubleClickFloodlightTracking().fire();
}
});
});
}
}());

[ad_2]

Source link