WordPress.org

Making WordPress.org

Changeset 223


Ignore:
Timestamp:
01/07/2014 02:45:59 PM (6 years ago)
Author:
nacin
Message:

Trac: Update Quantcast tag to be async and SSL-aware.

props ocean90, mikemanger.
fixes #268.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/trac.wordpress.org/templates/wporg-footer.html

    r208 r223  
    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">
     48  var _qevents = _qevents || [];
     49  (function() {
     50   var elem = document.createElement('script');
     51   elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge")
     52               + ".quantserve.com/quant.js";
     53   elem.async = true;
     54   elem.type = "text/javascript";
     55   var scpt = document.getElementsByTagName('script')[0];
     56   scpt.parentNode.insertBefore(elem, scpt);
     57  })();
     58</script>
     59<script type="text/javascript">_qevents.push( { qacct:"p-18-mFEk4J448M"} );</script>
    4960<noscript><img src="//pixel.quantserve.com/pixel/p-18-mFEk4J448M.gif" style="display: none;" border="0" height="1" width="1" alt=""/></noscript>
    5061
Note: See TracChangeset for help on using the changeset viewer.