Community Forums › Forums › Archived Forums › Design Tips and Tricks › Using Quantcast on WordPress Site
- This topic has 6 replies, 3 voices, and was last updated 12 years ago by
AnitaC.
-
AuthorPosts
-
August 30, 2014 at 9:50 am #121884
wickedsimple
MemberMy 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;">

</div>
</noscript>
<!-- End Quantcast tag -->August 30, 2014 at 12:50 pm #121907AnitaC
KeymasterGo 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 #121930Summer
MemberActually, 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 DarkAugust 30, 2014 at 2:45 pm #121932AnitaC
KeymasterAhhh 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 #121937wickedsimple
MemberYou guys are so awesome! Thank you!!
Donna
September 4, 2014 at 5:42 pm #122833wickedsimple
MemberThat 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 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.