Search Images Maps Play YouTube News Gmail Drive More »
Sign in

Reports & earnings

Using Google Analytics with AdSense

About the AdSense Analytics Code

The AdSense Analytics Code (ASAC) is the additional snippet of code you must place in your webpage's HTML if you want to link your AdSense account to multiple properties within your Google Analytics account.

The ASAC must be placed above the AdSense ad code for your AdSense account to be properly applied to multiple properties.

An example of the AdSense Analytics Code is shown below. The account number and property index fields will be automatically populated once you link your accounts.

 <script>
 window.google_analytics_uacct = "UA-accountnumber-propertyindex";
 </script>

Learn how to get the AdSense Analytics Code.

Tell us how we're doing - Answer five short questions about your help center experience

Be sure to sign in to your account for a more customized Help Center experience.