Use Google Analytics to count AdSense clicks

Source: Internet
Author: User
Tags count modify

Before there are many kinds of statistics, tracking AdSense click Software or Services, Google AdSense Group, although the statement that the third party statistics do not violate the policy, but then modified the AdSense code, Make the vast majority of AdSense third-party statistical tools (such as Adlogger, etc.) can not correctly statistics AdSense ads Click, gradually can not continue to use.

But in fact, AdSense ads Click Statistics for the webmaster is a very important data, statistics and analysis of which IP addresses click on the ads data to avoid malicious clicks have important significance, although the Third-party tools are not available, but we can use Google Analytics (Google Analytics) for data statistics, I have earlier in the "Google Analytics (Google Analytics)" Use of the article has a brief description, now I will describe in detail how the Google Analytics in the statistics AdSense click.

In order to facilitate the use of everyone, I refer to the Seobook collation of a little JavaScript code to install, you can do the installation process is simpler.

  Google Analytics Settings: Create a target

In the analytics setting, set up a goal, the target URL is/asclick, the target name is Asclick, if you want to modify this name for other, note that you want to modify the code in JavaScript at the same time, the default please remain unchanged, set "effective target" to "open." This target URL directory is a non-existent directory, only for AdSense click Statistics.

  Site Settings: adding JavaScript code

Click here to download a JavaScript code file that adds this code to the back of your AdSense code. If you have multiple AdSense ads, place the JavaScript code behind the last ad code.

Now, your Google Analytics will be able to count the clicks of AdSense. But note that this statistic has no way to test, you can not click on their own AdSense ads to test, you only wait, wait a while, you should see the target tracking appears in your Google Analytics statistics.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.