1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hiding some code from googlebot

Discussion in 'Cloaking and Content Generators' started by antelope, Feb 23, 2015.

  1. antelope

    antelope Newbie

    Joined:
    Feb 23, 2015
    Messages:
    1
    Likes Received:
    0
    Not sure if this is "cloaking" but i want to hide some code from googlebot. Specifically, I want to have the same stat tracker code on a batch of sites in order to evaluate as a group, and not individually, but dont want google seeing same code on all various sites

    ideally, googlebot would see:

    </body>
    </html>

    and when page loaded it would be
    </body>
    <stat code here>
    </html>

    not sure where to start even looking. googled cloaking a good bit, but im not even sure it is cloaking that i should research

    any tips, or suggestions where to research would be appreciated
     
  2. mrblackjack

    mrblackjack Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 6, 2011
    Messages:
    966
    Likes Received:
    561
    Occupation:
    I live alone, I work alone, I make money alone
    Location:
    G00gle LaNd
    There are several methods you can apply:
    1. you can hide your code with a JS function that sits in an external JS file, then, you can block the google bots from crawling your external JS files using the Robots.txt file.
    2. You can use a cloaker to cloak parts of your codes, this approach will be much advanced than the above as it takes into consideration many footprints associated with Google bots