How do I make Google not index this script?

Asked

Viewed 129 times

0

Hello!

I started using a script on my wordpress site to display advertisements of an advertising network, the problem is that when I went to webmaster tools I noticed that the script is making google not index my pages.

I’ve been looking and the solution is to make the script undetectable by the search engines.

I can change the script code to put a "noindex" or something like that to do this?

Here is the code:

   <!-- adnow -->
    Recomendámos
    <div id="SC_TBlock_119595" class="SC_TBlock">loading...</div> 
    <script type="text/javascript">var SC_CId = "XXXXX",SC_Domain="n.ads2-adnow.com";SC_Start_119595=(new Date).getTime();</script>
    <script type="text/javascript" src="http://st-n.ads2-adnow.com/js/adv_out.js"></script> 
    <!--fim adnow -->

Can someone put me the code here edited so that this is possible?

Thank you!

1 answer

0

Just add the googleon and googleoff tags. These tags tell Google not to index, not to follow, and not to create descriptions with a particular snippet of your content.

<!--googleoff: all-->
 <!-- adnow -->
    Recomendámos
    <div id="SC_TBlock_119595" class="SC_TBlock">loading...</div> 
    <script type="text/javascript">var SC_CId = "XXXXX",SC_Domain="n.ads2-adnow.com";SC_Start_119595=(new Date).getTime();</script>
    <script type="text/javascript" src="http://st-n.ads2-adnow.com/js/adv_out.js"></script> 
    <!--fim adnow -->
<!--googleon: all-->

Source: https://www.homehost.com.br/blog/googleon-googleoff-restringir-indexacao/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.