Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2005
    Posts
    356
    Plugin Contributions
    0

    Default Help with code for Quantcast

    I would like to use Quantcast to get more info about my visitors. Its sorta like google anylitics, but provides some different data. To make it work I have to put a javascript and an image in my tpl_footer.php. The catch is that I need different code it they are on a secure section of my site. So I need something like what I have below. How can I write this if then statement correctly? Thanks!

    PHP Code:
    <? php
    If nonssl {
        ?>
        <!-- Start Quantcast tag -->
        <script type="text/javascript" src="http://edge.quantserve.com/quant.js"></script>
        <script type="text/javascript">_qacct="p-b4WnRrbuw4fQo";quantserve();</script>
        <noscript>
        <a href="http://www.quantcast.com/p-b4WnRrbuw4fQo" target="_blank"><img src="http://pixel.quantserve.com/pixel/p-b4WnRrbuw4fQo.gif" style="display: none;"     border="0" height="1" width="1" alt="Quantcast"/></a>
        </noscript>
        <!-- End Quantcast tag -->
    <?php
    }
    else if 
    ssl {
        
    ?>
        <!-- Start Quantcast tag -->
        <script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
        <script type="text/javascript">_qacct="p-b4WnRrbuw4fQo";quantserve();</script>
        <noscript>
        <a href="http://www.quantcast.com/p-b4WnRrbuw4fQo" target="_blank"><img src="//secure.quantserve.com/pixel/p-b4WnRrbuw4fQo.gif" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/></a>
        </noscript>
        <!-- End Quantcast tag -->
    <?php
    }
    ?>
    2 + 2 = 5 for extremely large values of 2

    Pez Collectors Store •••••••• My Plugins List

  2. #2
    Join Date
    Jun 2005
    Posts
    356
    Plugin Contributions
    0

    Default Re: Help with code for Quantcast

    Please ignore this question, or delete it if your a mod. The second quancast tag works for http or https . I'm a dork.
    2 + 2 = 5 for extremely large values of 2

    Pez Collectors Store •••••••• My Plugins List

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Help with code for Quantcast

    Blame it on the full moon
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Nov 2006
    Location
    Chapin, SC
    Posts
    27
    Plugin Contributions
    0

    Default Re: Help with code for Quantcast

    Where exactrly do I put this code for Quantcast. I registered and have my own code but I don't know where to place it. What file am I looking for?

    Thanks!

 

 

Similar Threads

  1. v139h Help with this code for Main Page please
    By traytray in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Jun 2013, 08:09 AM
  2. Help with CSS code for buttonRow forward
    By CybaGirl in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 13 Jan 2012, 04:09 PM
  3. Help with the code used for viewer checkout ? FEC
    By vedavyas govardhanam in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Oct 2009, 12:31 PM
  4. Could use help with html code for images in EZ_Pages
    By btolly in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 18 Jul 2009, 03:59 PM
  5. Need help with code for direct product links for iDevAffiliate
    By rlfreshwater in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 20 Jan 2009, 02:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg