How can Google not index this script?

0

Hello

I started using a script on my wordpress website to display ads from an ad network, the problem is that when I went to the webmaster tools I noticed that the script is causing google not to index my pages. >

I've been looking for it and the solution is to make the script not discoverable by search engines.

Can I change the script code to put a "noindex" or something like that?

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 it is possible?

Thank you!

    
asked by anonymous 31.03.2016 / 12:16

1 answer

0

Just add the googleon and googleoff tags. These tags tell Google not to index, not follow, and do not create descriptions with a certain stretch of 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><!--fimadnow--><!--googleon:all-->

Source: link

    
16.06.2016 / 21:22