CINXE.COM
Advertise on scamadviser.com | Ezoic Direct Sales
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Advertise on scamadviser.com | Ezoic Direct Sales</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BmbxuPwQa2lc/FVzBcNJ7UAyJxM6wuqIj61tLrc4wSX0szH/Ev+nYRRuWlolflfl" crossorigin="anonymous"> <script src="https://kit.fontawesome.com/b064e4a587.js" crossorigin="anonymous"></script> <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script> <script src="https://d3js.org/d3.v6.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta2/dist/js/bootstrap.bundle.min.js" integrity="sha384-b5kHyXgcpbZJO/tY9Ul7kGkf1S0CWuKcCD38l8YkeH8z8QjE0GmW1gYU5S9FOnJ0" crossorigin="anonymous"></script> <script> var onloadCallback = function() { grecaptcha.render('g-recaptcha', { 'sitekey' : '6LePP9kaAAAAAPpQ5F_3r8wELTSsClouslvSoBlZ', 'theme': 'dark', 'expired-callback': expCallback }); }; var expCallback = function() { grecaptcha.reset(); }; </script> <style> .bar { fill: #5f89ad; } .axis { font-size: 13px; } .axisWhite { color: white; } .label { font-size: 13px; } a { text-decoration: none; } .rel { position: relative; } .clip-shape { transform: scaleX(1) scaleY(-1); position: absolute; bottom: 0; left: 0; z-index: 0; width: 100%; height: 100%; } .overlay-stats { z-index: 1; } .contact-card { width: 28rem; height: 14rem; } .w-65 { width: 65%; } .w-85 { width: 85%; } .black-bg { background-color: #333; } .circle-icon { background: #f2f2f2; width: 65px; height: 65px; border-radius: 50%; text-align: center; line-height: 65px; vertical-align: middle; } .black-bg-header { color: white; } .black-bg-lead { color: lightgray; } .white-bg-lead { color: gray; } .display-3 { font-size: calc(1.425rem + 3.3vw); font-weight: 400; line-height: 1.2; word-wrap: break-word; } .badge { display: inline-block; padding: .55em .85em; font-size: .75em; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25rem; border-radius: 16px; } .btn.btn-primary, .btn.btn-primary:hover, .btn.btn-primary:focus, .btn.btn-primary.active { color: #ffffff; background-color: #03c900; border-color: #03c900; padding: 14px 20px 14px 20px; text-shadow: 1px 1px 1px #9595957d; } .btn.btn-secondary, .btn.btn-secondary:hover, .btn.btn-secondary:focus, .btn.btn-secondary.active { color: #ffffff; background-color: #ef3054; border-color: #ef3054; } input, textarea { background-color:#333 !important; color: #FFF !important; } img { max-width: 100%; height: auto; } .about-ezoic { color: white; } input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: white; transition: background-color 5000s ease-in-out 0s; } #ref-domain-pie-chart, #browsers-pie-chart, #devices-pie-chart { overflow: visible; } @media (max-width: 768px) { .mobile-rounded-card { border-radius: 16px !important; } } @media (max-width: 992px) { .tablet-rounded-card-left { border-bottom-left-radius: 16px !important; border-top-left-radius: 16px !important; } .tablet-rounded-card-right { border-bottom-right-radius: 16px !important; border-top-right-radius: 16px !important; } .tablet-card-shadow { box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175); } .tablet-w-95 { width: 95%; } } @media (min-width: 992px) { .desktop-rounded-card-left { border-bottom-left-radius: 16px !important; border-top-left-radius: 16px !important; } .desktop-rounded-card-right { border-bottom-right-radius: 16px !important; border-top-right-radius: 16px !important; } .desktop-card-shadow { box-shadow: 0 1rem 3rem rgba(0, 0, 0, .4); } .desktop-icon-hide { display: none; } .desktop-w-65 { width: 65%; } } </style> </head> <body class="w-100"> <nav class="navbar navbar-dark bg-dark"> <div class="container-fluid"> <a class="navbar-brand d-flex align-content-center" target="_blank" href="https://ezoic.com"> <img src="https://www.ezoic.com/wp-content/uploads/2021/04/ezoic-logo-small.png" alt="" height="24" class="d-inline-block align-top"> </a> <div class="d-flex align-content-center"> <a href="#contact"><i class="fas fa-question-circle fa-lg desktop-icon-hide about-ezoic"></i></a> <a href="#contact" class="d-none d-lg-block"> <span class="navbar-text ms-1"> Learn About Direct Sales Using Ezoic </span> </a> </div> </div> </nav> <div class="container-fluid g-0"> <div class="banner-container d-flex justify-content-center pt-5 rel"> <div class="desktop-w-65 tablet-w-95"> <h1 class="display-3 text-shadow text-center w-100">ScamAdviser</h1> <p class="lead text-shadow text-center w-100 mt-3">Check Scamadviser Before you Buy</p> <div class="d-flex flex-wrap g-0 mt-5"> <div class="flex-grow-1 align-self-end"> </div> <a href="//www.scamadviser.com" style="z-index: 5;"><button type="button" class="btn btn-secondary mb-sm-1 mb-1 mb-lg-0"> <div class="d-flex align-content-center"> <div><i class="fas fa-external-link-alt"></i></div> <div class="ms-1">scamadviser.com</div> </div> </button></a> </div> <div class="w-100 rel overlay-stats"> <div class="row mt-2 m-auto desktop-rounded-card-left desktop-rounded-card-right desktop-card-shadow"> <div class="col-lg-3 col-md-6 col-sm-12 g-0 mb-3 mb-sm-3 mb-lg-0"> <div class="card text-center rounded-0 mobile-rounded-card tablet-rounded-card-left desktop-rounded-card-left h-100 w-100"> <div class="card-body"> <i class="fas fa-user-friends fa-2x circle-icon"></i> <h1 class="card-title" id="unique-visitors"></h1> <p class="card-text white-bg-lead">Monthly Unique Visitors</p> </div> </div> </div> <div class="col-lg-3 col-md-6 col-sm-12 g-0 mb-3 mb-sm-3 mb-lg-0"> <div class="card text-center rounded-0 mobile-rounded-card tablet-rounded-card-right h-100 w-100"> <div class="card-body"> <i class="fas fa-users fa-2x circle-icon"></i> <h1 class="card-title" id="pageviews"></h1> <p class="card-text white-bg-lead">Monthly Page Views</p> </div> </div> </div> <div class="col-lg-3 col-md-6 col-sm-12 g-0 mb-3 mb-sm-3 mb-lg-0"> <div class="card text-center rounded-0 mobile-rounded-card tablet-rounded-card-left h-100 w-100"> <div class="card-body"> <i class="fas fa-clock fa-2x circle-icon"></i> <h1 class="card-title" id="average-time-on-site"></h1> <p class="card-text white-bg-lead">Average Time on Site</p> </div> </div> </div> <div class="col-lg-3 col-md-6 col-sm-12 g-0 mb-3 mb-sm-3 mb-lg-0"> <div class="card text-center rounded-0 mobile-rounded-card tablet-rounded-card-right desktop-rounded-card-right h-100 w-100"> <div class="card-body"> <i class="fas fa-user-alt fa-2x circle-icon"></i> <h1 class="card-title" id="return-visitors-rate"></h1> <p class="card-text white-bg-lead">Return Visitor Rate</p> </div> </div> </div> </div> </div> </div> <div class="clip-shape w-100 d-none d-lg-block d-flex"> <svg viewBox="0 0 800 50" preserveAspectRatio="none"> <polygon fill="white" points="0,0 800,0 800,50 400,0 0,50"></polygon> </svg> </div> </div> <div class="d-flex justify-content-center"> <div class="w-85 pb-5"> <div class="row align-items-center mt-5 m-auto"> <div class="col-lg-7 d-flex justify-content-center"> <div class="row"> <h1 class="display-6"><i class="fas fa-info-circle me-2"></i>About ScamAdviser</h1> <p class="lead white-bg-lead"> </p> </div> </div> <div class="col-lg-5 d-flex justify-content-center"> <div class="card text-center shadow-lg"> <div class="card-body"> <h5 class="card-title">Negotiate Direct Ad Deal</h5> <p class="card-text white-bg-lead">Ready to advertise on scamadviser.com? Or would you like to speak with a member from Ezoic's direct sales team to find out more information?</p> <a href="#contact"><button type="button" class="btn btn-primary btn-lg">Speak with us today!<i class="fas fa-arrow-right ps-2"></i></button></a> </div> </div> </div> </div> </div> </div> <div class="d-flex justify-content-center black-bg"> <div class="w-85 pt-5 pb-5"> <div class="row m-auto"> <div class="col-lg-5 col-md-12 d-flex"> <div class="row d-flex h-100 w-100 align-items-center"> <div> <h1 class="display-6 black-bg-header"><i class="fas fa-users me-2"></i>Audience Highlights</h1> <p class="lead black-bg-lead"> Ezoic鈥檚 advanced targeting enables you to target the exact audience you are looking for across any website on our platform. Publishers can choose to target things like Google Organic Search, location, browser, device, cities, states, returning visitors, new visitors, and much more. Publishers can easily get insight into their audiences with in-depth analytics and use that data to target specific audiences. </p> </div> </div> </div> <div class="col-lg-3 col-md-12 d-flex"> <div class="row d-flex h-100 w-100 align-items-start"> <div> <p class="lead black-bg-header">Pageviews per Traffic Source</p> <div id="ref-domain-pie-chart" style="width:auto; height: auto; "></div> </div> </div> </div> <div class="col-lg-4 col-md-12 d-flex"> <div class="row d-flex h-100 w-100 align-items-start"> <div> <p class="lead black-bg-header">Pageviews per Country</p> <div id="countries-bar-chart" style="width:auto; height: auto; "></div> </div> </div> </div> </div> </div> </div> <div class="d-flex justify-content-center"> <div class="w-85 pt-5 pb-5"> <div class="row align-items-center m-auto"> <div class="col-lg-3 col-md-12 d-flex"> <div class="row d-flex h-100 w-100 align-items-start"> <div> <p class="lead">Pageviews per Browser</p> <div id="browsers-pie-chart" style="width:auto; height: auto;"></div> </div> </div> </div> <div class="col-lg-3 col-md-12 d-flex"> <div class="row d-flex h-100 w-100 align-items-start"> <div> <p class="lead">Pageviews per Device</p> <div id="devices-pie-chart" style="width:auto; height: auto;"></div> </div> </div> </div> <div class="col-lg-6 col-md-12 d-flex"> <div class="row"> <div class="row d-flex h-100 w-100 align-items-center"> <div> <h1 class="display-6"><i class="fas fa-desktop me-2"></i>Website Technology Highlights</h1> <p class="lead white-bg-lead"> Ezoic鈥檚 advanced segmentation allows direct advertisers to target website visitors to scamadviser.com, based on the type of technology they are using to browse the website. </p> </div> </div> </div> </div> </div> </div> </div> <div class="d-flex justify-content-center black-bg"> <div class="w-85 pt-5 pb-5"> <div class="row align-items-center m-auto"> <div class="col-lg-7 d-flex justify-content-center"> <div class="row"> <h1 class="display-6 black-bg-header"><img class="me-2" style="height: 40px" src="https://www.ezoic.com/wp-content/uploads/2023/04/ezoic-transparent-white-logo.webp">Individualized Ad Experiences Using Ezoic Technology</h1> <p class="lead black-bg-lead"> Ezoic is a powerful machine-learning platform that can deliver viewable, high-quality ads at scale across a network of trusted publishers. Ezoic uses artificial intelligence to dynamically control ad locations, sizes, colors, types, and more, and adapts in real-time to individual visitor preferences, i.e, need more 970x260's in Sweden? Ezoic can adapt existing placements to meet those needs. This technology provides websites with a higher CTR, click quality, and viewability based on present demographics and look-alike user behavior. Ezoic optimizes for user experience and revenue simultaneously through artificial intelligence, ensuring that users aren鈥檛 experiencing websites filled with ads and creating ad blindness, which ultimately earns publishers less money. Ezoic contains thousands of diverse publishers on our platform, which allows us to cover almost every category and vertical for advertisers. </p> </div> </div> <div class="col-lg-5 d-flex justify-content-center"> <img src="https://www.ezoic.com/wp-content/uploads/2023/04/ad-visitor-ezoic-gif.gif" width="500px"/> </div> </div> </div> </div> <div class="d-flex justify-content-center"> <div class="w-85 pt-5 pb-5"> <h1 class="display-6 text-center">Popular Ad Inventory Segments</h1> <div class="row justify-content-md-center mt-4"> <div class="col-lg-3 col-md-6 col-sm-12 mb-3 mb-sm-3 mb-lg-0 d-flex justify-content-center"> <div class="card text-center shadow-sm h-100 w-100"> <div class="card-body"> <i class="fas fa-eye fa-2x circle-icon"></i> <h4>High Viewability</h4> <p class="card-text white-bg-lead">Target ad placements with 70% or greater average viewability.</p> </div> </div> </div> <div class="col-lg-3 col-md-6 col-sm-12 mb-3 mb-sm-3 mb-lg-0 d-flex justify-content-center"> <div class="card text-center shadow-sm h-100 w-100"> <div class="card-body"> <i class="fas fa-mouse-pointer fa-2x circle-icon"></i> <h4>High CTR</h4> <p class="card-text white-bg-lead">Focus on ad placements with high click-through rates.</p> </div> </div> </div> <div class="col-lg-3 col-md-6 col-sm-12 mb-3 mb-sm-3 mb-lg-0 d-flex justify-content-center"> <div class="card text-center shadow-sm h-100 w-100"> <div class="card-body"> <i class="fas fa-user-clock fa-2x circle-icon"></i> <h4>High Engagement</h4> <p class="card-text white-bg-lead">Target ad placements on pages with high level of user engagement scores.</p> </div> </div> </div> <div class="col-lg-3 col-md-6 col-sm-12 mb-3 mb-sm-3 mb-lg-0 d-flex justify-content-center"> <div class="card text-center shadow-sm h-100 w-100"> <div class="card-body"> <i class="fas fa-wrench fa-2x circle-icon"></i> <h4>Custom Segment</h4> <p class="card-text white-bg-lead">Customized for your individual ad targeting needs.</p> </div> </div> </div> </div> </div> </div> <div class="d-flex justify-content-center black-bg" id="contact"> <div class="desktop-w-65 tablet-w-95 pt-5 pb-3"> <h1 class="display-6 text-center black-bg-header mb-3">Ready to get your campaign live on scamadviser.com?<br/>Or would you like to learn more? Contact Us!</h1> <form method="POST"> <div class="row mb-3"> <div class="form-group"> <label for="name-input" class="black-bg-lead">Name</label> <input type="text" class="form-control" id="name-input" name="contact-name"> </div> </div> <div class="row mb-3"> <div class="form-group"> <label for="email-input" class="black-bg-lead">Email</label> <input type="email" class="form-control" id="email-input" name="contact-email"> </div> </div> <div class="row mb-3"> <div class="form-group"> <label for="phone-input" class="black-bg-lead">Phone</label> <input type="text" class="form-control" id="phone-input" name="contact-phone"> </div> </div> <div class="row mb-3"> <div class="form-group"> <label for="contact-website" class="black-bg-lead">Website</label> <input type="text" class="form-control" id="contact-website" name="contact-website"> </div> </div> <div class="row mb-3"> <div class="form-group"> <label for="contact-platform" class="black-bg-lead">I am a(n)</label> <select class="form-select" aria-label="Default select example" id="contact-platform" name="contact-platform" style="background-color: #333; color: lightgray;"> <option selected>Ad Network</option> <option value="Agency">Agency</option> <option value="Individual Advertiser">Individual Advertiser</option> <option value="Demand Side Platform">Demand Side Platform</option> <option value="Supply Side Platform">Supply Side Platform</option> <option value="Ad Platform">Ad Platform</option> <option value="Other">Other</option> </select> </div> </div> <div class="row mb-3"> <div class="form-group"> <label for="contact-budget" class="black-bg-lead">My budget is</label> <select class="form-select" aria-label="Default select example" id="contact-budget" name="contact-budget" style="background-color: #333; color: lightgray;"> <option selected>$100,000+ or more</option> <option value="$50,000-$100,000">$50,000-$100,000</option> <option value="$10,000-$50,000">$10,000-$50,000</option> <option value="$2,500-$10,000">$2,500-$10,000</option> <option value="$500-$2,500">$500-$2,500</option> <option value="Less than $500">Less than $500</option> </select> </div> </div> <div class="row mb-3"> <div class="form-group"> <label for="contact-adtype" class="black-bg-lead">Interested in</label> <select class="form-select" multiple aria-label="Default select example" id="contact-adtype" name="contact-adtype" style="background-color: #333; color: lightgray;"> <option value="Banner Ads">Banner Ads</option> <option value="Video Ads">Video Ads</option> <option value="Sponsored Posts">Sponsored Posts</option> <option value="Other">Other</option> </select> </div> </div> <div class="row mb-3"> <div class="form-group"> <label for="contact-message" class="black-bg-lead">Message</label> <textarea class="form-control" id="contact-message" rows="5" name="contact-message"></textarea> </div> </div> <div class="row d-flex justify-content-end mb-3"> <div id="g-recaptcha"></div> </div> <div class="row mb-3"> <div class="d-grid form-group"> <button type="submit" class="btn btn-primary btn-lg">Send Message</button> </div> </div> </form> <script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit"async defer></script> </div> </div> </div> </body> </html> <script> $( document ).ready(function() { if ( window.history.replaceState ) { window.history.replaceState( null, null, window.location.href ); } if ($(".toast")[0]){ $(".toast").toast('show'); } var bg_color = '#' + "F76D15"; if (bg_color != "") { $(".banner-container").css("background-color", bg_color); } else { $(".banner-container").css("background-color", "#5fa624"); } var headingTextColor = '#' + "FFFFFF" $(".text-shadow").css("color", headingTextColor); if (headingTextColor == "#000000") { $(".text-shadow").css("text-shadow", "1px 1px 1px #FFFFFF"); } else { $(".text-shadow").css("text-shadow", "1px 1px 1px #000000"); } function fmtMSS(s){return(s-(s%=60))/60+(9<s?':':':0')+s} var monthlyUniqueVisitors = 5463382 var monthlyPageviews = 9102868 var averageTimeOnSite = 84 var returnVisitorsRate = 11.679249 returnVisitorsRate = +returnVisitorsRate.toFixed(2); $("#unique-visitors").text(monthlyUniqueVisitors.toLocaleString()); $("#pageviews").text(monthlyPageviews.toLocaleString()); $("#average-time-on-site").text(fmtMSS(averageTimeOnSite)); $("#return-visitors-rate").text(returnVisitorsRate + "%"); var countryData = [{"Country":"US","Pageviews":2144705},{"Country":"GB","Pageviews":690612},{"Country":"DE","Pageviews":620597},{"Country":"IN","Pageviews":527864},{"Country":"PK","Pageviews":360149}] || []; countryData = countryData.sort(function (a, b) { return d3.ascending(a.Pageviews, b.Pageviews); }); var margin = { top: 25, right: 65, bottom: 15, left: 60 }; var origWidth = 500; var origHeight = 350; var width = 500 - margin.left - margin.right, height = 350 - margin.top - margin.bottom; var y = d3.scaleBand() .range([height, 0]) .padding(0.1); var x = d3.scaleLinear() .range([0, width]); var svg = d3.select("#countries-bar-chart").append("svg") .attr("width", '100%') .attr("height", '100%') .attr('viewBox','0 0 '+ origWidth +' '+origHeight ) .append("g") .attr("transform", "translate(" + margin.left + "," + margin.top + ")") x.domain([0, d3.max(countryData, function(d){ return d.Pageviews; })]) y.domain(countryData.map(function(d) { return d.Country; })); var bars = svg.selectAll(".bar") .data(countryData) .enter() .append("g") bars.append("rect") .attr("class", "bar") .attr("width", function(d) {return x(d.Pageviews); } ) .attr("y", function(d) { return y(d.Country); }) .attr("height", y.bandwidth()); svg.append("g") .attr("class", "axisWhite") .call(d3.axisLeft(y)); bars.append("text") .attr("class", "label") .attr("y", function (d) { return y(d.Country) + y.bandwidth() / 2 + 4; }) .attr("x", function (d) { return x(d.Pageviews) + 3; }) .text(function (d) { return d.Pageviews.toLocaleString(); }) .attr("fill", "white"); var rawRefDomainData = [] || []; var refDomainDataGrouped = []; var refDomainData = []; var otherRefDomainSum = 0; var googleSum = 0; var bingSum = 0; var yahooSum = 0; var facebookSum = 0; for (var i = 0; i < rawRefDomainData.length; i++) { if (rawRefDomainData[i].ReferringDomain.includes("google")) { googleSum += rawRefDomainData[i].Pageviews; } else if (rawRefDomainData[i].ReferringDomain.includes("bing")) { bingSum += rawRefDomainData[i].Pageviews; } else if (rawRefDomainData[i].ReferringDomain.includes("yahoo")) { yahooSum += rawRefDomainData[i].Pageviews; } else if (rawRefDomainData[i].ReferringDomain.includes("facebook")) { facebookSum += rawRefDomainData[i].Pageviews; } else { refDomainDataGrouped.push(rawRefDomainData[i]); } } refDomainDataGrouped.push({'ReferringDomain': 'google.com', 'Pageviews': googleSum}); refDomainDataGrouped.push({'ReferringDomain': 'bing.com', 'Pageviews': bingSum}); refDomainDataGrouped.push({'ReferringDomain': 'yahoo.com', 'Pageviews': yahooSum}); refDomainDataGrouped.push({'ReferringDomain': 'facebook.com', 'Pageviews': facebookSum}); refDomainDataGrouped = refDomainDataGrouped.sort(function (a, b) { return d3.descending(a.Pageviews, b.Pageviews); }); var totalRefDomainData = 0; for (var i = 0; i < refDomainDataGrouped.length; i++) { if (i <= 4) { if (refDomainDataGrouped[i].ReferringDomain === "scamadviser.com") { refDomainDataGrouped[i].ReferringDomain = 'Direct'; } refDomainData[i] = refDomainDataGrouped[i]; } else { otherRefDomainSum += refDomainDataGrouped[i].Pageviews; } totalRefDomainData += refDomainDataGrouped[i].Pageviews; } refDomainData.push({'ReferringDomain': 'Other', 'Pageviews': otherRefDomainSum}); var rawBrowsersData = [{"Browser":"Unknown","Pageviews":1336},{"Browser":"OperaMini","Pageviews":1},{"Browser":"Blackberry","Pageviews":6},{"Browser":"FacebookBot","Pageviews":12},{"Browser":"CocCoc","Pageviews":13},{"Browser":"Android","Pageviews":51},{"Browser":"Nintendo","Pageviews":66},{"Browser":"Puffin","Pageviews":71},{"Browser":"YahooBot","Pageviews":81},{"Browser":"QQ","Pageviews":562},{"Browser":"Chrome","Pageviews":5552811},{"Browser":"Silk","Pageviews":4797},{"Browser":"FBApp","Pageviews":7318},{"Browser":"UCBrowser","Pageviews":8811},{"Browser":"Opera","Pageviews":65739},{"Browser":"Samsung","Pageviews":190710},{"Browser":"Firefox","Pageviews":312801},{"Browser":"IE","Pageviews":313985},{"Browser":"Safari","Pageviews":2643697}] || []; rawBrowsersData = rawBrowsersData.sort(function (a, b) { return d3.descending(a.Pageviews, b.Pageviews); }); browsersData = []; otherBrowsersSum = 0; var totalBrowsersData = 0; for (var i = 0; i < rawBrowsersData.length; i++) { if (i <= 4) { browsersData[i] = rawBrowsersData[i]; } else { otherBrowsersSum += rawBrowsersData[i].Pageviews; } totalBrowsersData += rawBrowsersData[i].Pageviews; } browsersData.push({'Browser': 'Other', 'Pageviews': otherBrowsersSum}); var formFactorData = [{"FormFactor":"Mobile","Pageviews":6451579},{"FormFactor":"Desktop","Pageviews":2587885},{"FormFactor":"Tablet","Pageviews":63404}] || []; var totalFormFactorData = 0; for (var i = 0; i < formFactorData.length; i++) { totalFormFactorData += formFactorData[i].Pageviews; } var margin = { top: 15, right: 135, bottom: 15, left: 15 }; var origDimension = 330; var width = 330 - margin.left - margin.right, height = 330 - margin.top - margin.bottom; var radius = Math.min(width, height) / 2 - 15 var svg = d3.select("#browsers-pie-chart") .append("svg") .attr("width", '100%') .attr("height", '100%') .attr('viewBox','0 0 '+ origDimension +' '+origDimension ) g = svg.append("g").attr("transform", "translate(" + width / 2 + "," + height / 2 + ")"); var color = d3.scaleOrdinal(d3.schemeCategory10); var pie = d3.pie().value(function(d) { return d.Pageviews; }); var arc = d3.arc() .innerRadius(50) .outerRadius(radius); var arcOver = d3.arc() .innerRadius(50) .outerRadius(radius+5); var arcs = g.selectAll("arc") .data(pie(browsersData)) .enter() .append("g") .attr("class", "arc") arcs.append("text") .attr("x", (margin.top / 2) - 3) .attr("y", (margin.bottom / 2)) .attr("text-anchor", "middle") .style("font-size", "16px").text(function(d){ return (d.data.Pageviews/totalBrowsersData * 100).toFixed(2) + "%"; }).style("opacity", 0); arcs.append("path") .attr("fill", function(d, i) { return color(d.data.Pageviews); }) .attr("d", arc) .style('stroke', 'white') .style('stroke-width', 1) .on("mouseover", function(d) { d3.select(this).transition() .duration(500) .attr("d", arcOver); }) .on("mouseout", function(d) { d3.select(this).transition() .duration(500) .attr("d", arc); }); arcs.on("mouseover", function(d, i) { d3.select(this).select("text").transition() .duration(500).style("opacity", 1); }) .on("mouseout", function(d, i) { d3.select(this).select("text").transition() .duration(500).style("opacity", 0); }); var legendG = svg.selectAll(".legend") .data(pie(browsersData)) .enter().append("g") .attr("transform", function(d,i){ return "translate(" + (width -15) + "," + (i * 15 + 20) + ")"; }) .attr("class", "legend"); legendG.append("circle") .attr("cx", 5) .attr("cy", 6) .attr("r", 5) .attr("fill", function(d, i) { return color(d.data.Pageviews); }); legendG.append("text") .text(function(d){ return d.data.Browser + ": " + d.data.Pageviews.toLocaleString(); }) .style("font-size", 12) .attr("y", 10) .attr("x", 11); var svg = d3.select("#devices-pie-chart") .append("svg") .attr("width", '100%') .attr("height", '100%') .attr('viewBox','0 0 '+ origDimension +' '+origDimension ) g = svg.append("g").attr("transform", "translate(" + width / 2 + "," + height / 2 + ")"); var arc = d3.arc() .innerRadius(50) .outerRadius(radius); var arcs = g.selectAll("arc") .data(pie(formFactorData)) .enter() .append("g") .attr("class", "arc") arcs.append("text") .attr("x", (margin.top / 2) - 3) .attr("y", (margin.bottom / 2)) .attr("text-anchor", "middle") .style("font-size", "16px").text(function(d){ return (d.data.Pageviews/totalFormFactorData * 100).toFixed(2) + "%"; }).style("opacity", 0); arcs.append("path") .attr("fill", function(d, i) { return color(d.data.Pageviews); }) .attr("d", arc) .style('stroke', 'white') .style('stroke-width', 1) .on("mouseover", function(d) { d3.select(this).transition() .duration(500) .attr("d", arcOver); }) .on("mouseout", function(d) { d3.select(this).transition() .duration(500) .attr("d", arc); }); arcs.on("mouseover", function(d, i) { d3.select(this).select("text").transition() .duration(500).style("opacity", 1); }) .on("mouseout", function(d, i) { d3.select(this).select("text").transition() .duration(500).style("opacity", 0); }); var legendG = svg.selectAll(".legend") .data(pie(formFactorData)) .enter().append("g") .attr("transform", function(d,i){ return "translate(" + (width -15) + "," + (i * 15 + 20) + ")"; }) .attr("class", "legend"); legendG.append("circle") .attr("cx", 5) .attr("cy", 6) .attr("r", 5) .attr("fill", function(d, i) { return color(d.data.Pageviews); }); legendG.append("text") .text(function(d){ return d.data.FormFactor + ": " + d.data.Pageviews.toLocaleString(); }) .style("font-size", 12) .attr("y", 10) .attr("x", 11); var svg = d3.select("#ref-domain-pie-chart") .append("svg") .attr("width", '100%') .attr("height", '100%') .attr('viewBox','0 0 '+ origDimension +' '+origDimension ) g = svg.append("g").attr("transform", "translate(" + width / 2 + "," + height / 2 + ")"); var arc = d3.arc() .innerRadius(50) .outerRadius(radius); var arc2 = d3.arc() .innerRadius(radius - 20) .outerRadius(radius - 10); var arcs = g.selectAll("arc") .data(pie(refDomainData)) .enter() .append("g") .attr("class", "arc") arcs.append("text") .attr("x", (margin.top / 2) - 3) .attr("y", (margin.bottom / 2)) .attr("text-anchor", "middle") .attr("fill", "white") .style("font-size", "16px").text(function(d){ return (d.data.Pageviews/totalRefDomainData * 100).toFixed(2) + "%"; }).style("opacity", 0); arcs.append("path") .attr("d", function (d) { return arc2(d); }).attr("fill", function(d, i){ return color[i]; }).style("opacity", "0.4"); arcs.append("path") .attr("fill", function(d, i) { return color(d.data.Pageviews); }) .attr("d", arc) .style('stroke', '#333') .style('stroke-width', 1) .on("mouseover", function(d) { d3.select(this).transition() .duration(500) .attr("d", arcOver); }) .on("mouseout", function(d) { d3.select(this).transition() .duration(500) .attr("d", arc); }); arcs.on("mouseover", function(d, i) { d3.select(this).select("text").transition() .duration(500).style("opacity", 1); }) .on("mouseout", function(d, i) { d3.select(this).select("text").transition() .duration(500).style("opacity", 0); }); var legendG = svg.selectAll(".legend") .data(pie(refDomainData)) .enter().append("g") .attr("transform", function(d,i){ return "translate(" + (width -15) + "," + (i * 15 + 20) + ")"; }) .attr("class", "legend"); legendG.append("circle") .attr("cx", 5) .attr("cy", 6) .attr("r", 5) .attr("fill", function(d, i) { return color(d.data.Pageviews); }); legendG.append("text") .text(function(d){ return d.data.ReferringDomain + ": " + d.data.Pageviews.toLocaleString(); }) .style("font-size", 12) .attr("y", 10) .attr("x", 11) .attr("fill", "white"); }); </script>