Automated Adsense Privacy Policy Deployment Guide

Hopefully you took the time to actually read the new Adsense Terms and Conditions. The new terms require all Adsense publishers to display a privacy policy on any web-site displaying Adsense ads.

Here’s an excerpt from this page:

We’ve also added some specific privacy policy requirements that make it necessary for publishers to post and abide by a transparent privacy policy for their users. According to this policy, publishers must notify their users of the use of cookies and/or web beacons to collect data in the ad serving process.

Thanks to Jen from Jensense, all my web-sites now have a privacy policy that complies with the new Google Adsense Terms and Conditions; however, if you’re responsible for multiple sites, implementing this policy could potentially take hours. Well today’s your lucky day because I took her basic policy and added some minor php tweeks to semi-automate the implementation process. This little bit of PHP wizardry drastically cut down on the amount of time I would have spent manually implementing the policy for each web-site.

<?php echo substr($_SERVER['SERVER_NAME'], 4); ?> Privacy Policy
he privacy of <?php echo substr($_SERVER['SERVER_NAME'], 4); ?> visitors is important to us. At
<?php echo substr($_SERVER['SERVER_NAME'], 4); ?>, we recognize that the privacy of our
visitor’s personal information is important. Here is
information on what types of personal information we receive and
collect when you visit <?php echo substr($_SERVER['SERVER_NAME'], 4); ?>, and how we safeguard your
information. We never sell your personal information to third
parties.
Log Files
We collect and use the data contained in log files. The
information in the log files include your IP (internet protocol)
address, your ISP (internet service provider, such as AOL or Shaw
Cable), the browser used to visit our site (such as Internet
Explorer or Firefox), the time you visited our site and which
pages you visited within our site.
Cookies and Web Beacons
We do use cookies to store information, such as your personal
preferences when you visit our site. This could include only
showing you a popup once in your visit, or the ability to login
to some of our features, such as forums.
Third Party Advertisements
We also use third party advertisements on <?php echo substr($_SERVER['SERVER_NAME'], 4); ?> to
support our site. Some of these advertisers may use technology
such as cookies and web beacons when they advertise on our site,
which will also send these advertisers (such as Google through
the Google AdSense program) information including your IP
address, your ISP , the browser you used to visit our site, and
in some cases, whether you have Flash installed. This is
generally used for geotargeting purposes (showing New York real
estate ads to someone in New York, for example) or showing
certain ads based on specific sites visited (such as showing
cooking ads to someone who frequents cooking sites).
You can choose to disable or selectively turn off our cookies
or third-party cookies in your browser settings, or by managing
preferences in programs such as Norton Internet Security;
however, this can affect how you are able to interact with our
site as well as other websites. This could include the inability
to login to services or programs, such as logging into forums or
accounts.
<a href="/" title="Return To <?php echo substr($_SERVER['SERVER_NAME'], 4); ?> Home">Return To <?php echo substr($_SERVER['SERVER_NAME'], 4); ?> Main Index</a>

And there you have it. A customized, site specific privacy policy. From here, save the file as whatever.php, then drop a link to your new privacy policy. You could take this a step further and use PHP’s include function to drop this right into your site’s template.

This script assumes your site defaults to http://www.yourdomain.com, rather than http://yourdomain.com. If you’ve configured your site to not use www, you’ll need to replace every occurrence of,

<?php echo substr($_SERVER['SERVER_NAME'], 4); ?>

With,

<?php echo $_SERVER['SERVER_NAME']; ?>

Failure to do so will result in displaying domainXYZ.com, instead of yourdomainXYZ.com. Questions? Comments? Give me a shout below. If you’d like to keep up with Nullamatix, consider subscribing (top of the sidebar) via email to have posts delivered directly to your inbox, or add our full RSS feed to your favorite RSS reader.

Additional Posts Worth Reading

 

Comments »

No comments yet.

Name (required)


E-mail (required - never shown publicly)


URI - Web Site Address






Subscribe

Site of The Day

Sponsors

Categories

Recent Comments

  • Arthur: I can’t even be an Ebay affiliate. Tried various ways but still declined. Any help or suggestions?
  • chicago web design: I can’t imagine that these will last very long before Google banishes them all. But for now...
  • D.Ksyte: Anyone involved with cron job scheduling might find this resource useful. Cron Sandbox at HxPI is an...
  • FoNiX: “…decode md5″ is not possible, only bruteforce: generate hash and compare with original.
  • Z@$#: plz plz decript this hash for me any one….its really important…. 2CAD28C7C619F27DDE7B83C4999795BA
  • Joe: Thanks for writing this up. I tried the second method…however after the debian install the screen looks...
  • Scott: Was this issue ever resolved? I just started having a problem a couple weeks ago. I don’t do any kind of...
  • Prashant Patel: I had integrated Sp3 in Xp But finding one problem. In the Task Manager Process windows many services...
  • Ed: This looks like a real ‘leet’ linux command but it misses the point. Why would a hacker keep the name of...
  • Sudesh: My account was disabled but I followed their guideline and in one sec it was back on :) Here is the...

Top Commentators

Miscellaneous

  • Add to Technorati Favorites