Posts Tagged ‘JavaScript’
Claim Your Traffic from Facebook & Digg
If you have been sharing links on sites such as Facebook and Digg, you may not be getting all of your AdSense revenue. Most times, when a user clicks a link on Facebook or Digg, they will see a framed page. Since your website then is inside of a “window” type frame, your site is not getting the actual traffic from that click, Digg and/or Facebook are.

There is a way to stop this from happening to you, and it is so very simple. Between the <head> and </head> tags of your website, one little JavaScript call is all you need to add. The code is as follows:
<script language=”JavaScript” type=”text/javascript”>
if (top.location != self.location) top.location.replace(self.location);
</script>
This will prevent your website from being framed in the future, and will prevent any loss of traffic and or revenue from ad providers such as AdSense.
About Sabra
Hi, my name is Sabra. I am a web developer/designer available for development, design, social media consulting and graphic design.
I’ve been using computers since I was very young, and doing web development professionally since 2007. I am skilled in many languages including XHTML, HTML, CSS, JavaScript, PHP, C#, Ajax, SQL, Linq and more. I have also managed many social network profiles for businesses on sites such as Twitter, LinkedIn, MySpace, Facebook, YouTube, Digg and more.
I am available on a per-hour basis for client work and consulting. For an initial consultation on how I can help, contact me anytime. Thank you for stopping by and feel free to peruse my blog and portfolio for more info.
