Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#268 closed defect (bug) (fixed)

Update Quantcast script to support https without SSL erros

Reported by: ocean90's profile ocean90 Owned by: nacin's profile nacin
Milestone: Priority: normal
Component: General Keywords:


Reported by Mike.

The new code block:

<script type="text/javascript">
  var _qevents = _qevents || [];
  (function() {
   var elem = document.createElement('script');
   elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge")
               + "";
   elem.async = true;
   elem.type = "text/javascript";
   var scpt = document.getElementsByTagName('script')[0];
   scpt.parentNode.insertBefore(elem, scpt);  

Source: Using the Quantcast Asynchronous Tag

Attachments (2)

268.patch (1.2 KB) - added by ocean90 10 years ago.
268.2.patch (1.3 KB) - added by mikemanger 10 years ago.
Load Quantcast script in head

Download all attachments as: .zip

Change History (4)

10 years ago

#1 @nacin
10 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 223:

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

props ocean90, mikemanger.
fixes #268.

10 years ago

Load Quantcast script in head

#2 @mikemanger
10 years ago

Thanks for making the ticket.

The linked source recommends putting the first block at the end of the document's <head>. Not sure if it will break the tracking if it is not?

Otherwise, you can just merge the two script tags together.

Note: See TracTickets for help on using tickets.