Home > Computer, General, Tips 'n' Tricks, Wordpress > JavaScript Framebreaker for converting google image search results to real traffic

JavaScript Framebreaker for converting google image search results to real traffic

Have you ever wondered how to make the visitors who come from google image search to stay on your website? Its only yesterday I thought about this. On one of my new website, I was getting getting good traffic but no clicks and the bounce rate was too high. When I checked the analytics, I found out that most of the traffic I was getting was referred by google image search. There are merely little benefit from this to us webmasters.

Google image search is using some kind of frames to show the image. So people checks out the image and then leaves. I wanted to put an end to it and started searching for this. Then I found out there is something called frame breaker and using that, I can actually redirect those image search results to “my webpage with that particular image”, which is what exactly I needed. This way I can make people stay probably longer as they are visiting our website. Possibly this could reduce the bounce rate also.

If you’re using wordpress, there are some plugins which can do this for you.

One of them is: JavaScript Framebreaker

I was pretty sure that you can do this manually, so didn’t stop searching about this until I finally found how to do this.

So this is the code you would need to add to the header of your webpages.

<script language=”JavaScript” type=”text/javascript”>
function breakfree() { if ( top.location != self.location ) { top.location = self.location; } }
window.onload = breakfree();
</script>

Now once you implement this, people will get redirected to the webpage containing the image.

  1. ROn
    September 23rd, 2012 at 03:14 | #1

    Do you know if image pages are like cached? I put this on my site, but it doesn't change anything. I'm wondering if Google has to reindex the page?

  2. obscurant1st
    September 28th, 2012 at 03:27 | #2

    I don't think so. Just do a google image search and open the image result from your page and wait for some time after the result page loads completely. It will redirect you to your webpage!

    Check it and let me know!

  3. Ron
    October 26th, 2012 at 19:52 | #3

    It doesn't seem to work anymore I guess.

  4. Tyrell
    January 10th, 2013 at 05:52 | #5

    Does anyone know if google will punish you for doing this? ie – drop you from the index? any downside at all?

  5. January 16th, 2013 at 00:00 | #6

    blogger users please replace the qoutes in the code manually to work

  6. January 24th, 2013 at 12:12 | #7

    Now ! frame breaker are of no use , since Google got new Google image layout

  1. No trackbacks yet.