July 06, 2013

A New Async Code for your Adsense Tag

Saturday, July 06, 2013

Michael Kleber, one of the members in Google Adense developer team posted that they had introduced a new code for Adsense tag.

The new script code can be mentioned only once in the website, that means even if you have multiple ads on your website, you can specify those with in a single tag.

New script tag is-
<script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

After crawling the above code, it just goes to the .js file, which has below code

<ins class="adsbygoogle"
     style="display:inline-block;width:350px;height:200px"
     data-ad-client="ca-pub-xxxxxxxxxxxxxxxx"
     data-ad-slot="yyyyyyyyyy"></ins>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({});
</script>

Later you can also add Google Analytics by mentioning google_analytics_uacct="UA-zzzzzz-zz" in "ins" class

Data Analytics with data-analytics-uacct="UA-zzzzzz-zz" in "ins" class
Blogger-Prem-Mohan

Written by

Prem Mohan is a Blogger who's passion is to write or provides information related to Search Engine Updates.

0 comments:

Post a Comment

 

Copyright © 2015 Search Industry. All rights resevered. Maintained by Premul SEO

Back To Top