WordPress.org

Making WordPress.org

Ticket #268: 268.2.patch

File 268.2.patch, 1.3 KB (added by mikemanger, 6 years ago)

Load Quantcast script in head

  • wporg-footer.html

     
    4444        <h6 class="aligncenter">Code is Poetry</h6>
    4545</div>
    4646
    47 <script type="text/javascript">_qoptions={qacct:"p-18-mFEk4J448M"};</script>
    48 <script type="text/javascript" src="//edge.quantserve.com/quant.js"></script>
     47<script type="text/javascript">_qevents.push( { qacct:"p-18-mFEk4J448M"} );</script>
    4948<noscript><img src="//pixel.quantserve.com/pixel/p-18-mFEk4J448M.gif" style="display: none;" border="0" height="1" width="1" alt=""/></noscript>
    5049
    5150</html>
  • wporg-head.html

     
    1515        </style>
    1616        <![endif]-->
    1717
     18        <script type="text/javascript">
     19                var _qevents = _qevents || [];
     20                (function() {
     21                        var elem = document.createElement('script');
     22                        elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge")
     23                                + ".quantserve.com/quant.js";
     24                        elem.async = true;
     25                        elem.type = "text/javascript";
     26                        var scpt = document.getElementsByTagName('script')[0];
     27                        scpt.parentNode.insertBefore(elem, scpt); 
     28                })();
     29        </script>
     30
    1831</html>