• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Using Quantcast on WordPress Site

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Using Quantcast on WordPress Site

This topic is: not resolved
  • This topic has 6 replies, 3 voices, and was last updated 12 years ago by AnitaC.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • August 30, 2014 at 9:50 am #121884
    wickedsimple
    Member

    My client has Quantcast installed on her current site and she wants me to add it to her new WP site (using the Lifestyle Pro theme).

    The code she gave me follows. Is this the correct code to be using for WP? If so, where exactly would I put this? I don't want to place it somewhere and mess things up!

    In the HTML code of every webpage of your site, place the following code just before the </body> tag and any other measurement tags.

    <!-- Quantcast Tag -->
    <script type="text/javascript">
    var _qevents = _qevents || [];

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

    _qevents.push({
    qacct:"p-0cryYhjXsHeeA"
    });
    </script>

    <noscript>
    <div style="display:none;">
    Quantcast
    </div>
    </noscript>
    <!-- End Quantcast tag -->

    August 30, 2014 at 12:50 pm #121907
    AnitaC
    Keymaster

    Go to Genesis > Theme Settings and look for the Header box. Copy/paste that code in that box and that's it. Make sure you back up your theme before doing it. But that's where you need the code.


    Need help with customization or troubleshooting? Reach out to me.

    August 30, 2014 at 2:38 pm #121930
    Summer
    Member

    Actually, Quantcast wants it's code to be just before the closing body tag, so you should use the Footer box in the Genesis settings.

    Yes, I've had Quantcast on 5 of my sites for several years, and was so happy when Genesis added those config features 🙂


    WordPress / Genesis Site Design & Troubleshooting: A Touch of Summer | @SummerWebDesign
    Slice of SciFi | Writers, After Dark

    August 30, 2014 at 2:45 pm #121932
    AnitaC
    Keymaster

    Ahhh good catch! I didn't see the forward slash </body>.


    Need help with customization or troubleshooting? Reach out to me.

    August 30, 2014 at 3:15 pm #121937
    wickedsimple
    Member

    You guys are so awesome! Thank you!!

    Donna

    September 4, 2014 at 5:42 pm #122833
    wickedsimple
    Member

    That didn't work for my client. She received this error message. Do you think it's because the site has a Coming Soon plugin activated? It won't launch until next week:

    Quantcast could not reach the following site(s):
    http://www.analisamendmentblog.com
    We will send you another message when your traffic reports are ready on Quantcast.com. If one or more of your sites could not be verified, it could be that the Quantcast tag was not properly implemented.

    Donna

    September 4, 2014 at 6:35 pm #122837
    AnitaC
    Keymaster

    That could be it if you received that.


    Need help with customization or troubleshooting? Reach out to me.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble