# # Influencing Google
APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

Sitemaps: Influencing Google for Web Site Promotion and Adsense Revenue

I've removed advertising from most of this site and will eventually clean up the few pages where it remains.

While not terribly expensive to maintain, this does cost me something. If I don't get enough donations to cover that expense, I will be shutting the site down in early 2020.

If you found something useful today, please consider a small donation.



Some material is very old and may be incorrect today

© December 2005 Tony Lawrence

There really isn't much you can do directly with Google in the area of web site promotion. However, there are a few tools you can use. The newest is a set of comment tags that may help Google identify the "real" content of your site. The idea is that you avoid sidebars and any other boiler plate content that may contain words potentially confusing to Google's analysis. The tags are:


<!- google_ad_section_start ->
<!-google_ad_section_start(weight=ignore) ->
<!- google_ad_section_end ->
 

I suppose this is better than nothing, and could help in some places. The "ad_section" wording suggests that they are only using these to determine Adsense content, but I don't know why their search indexing spiders wouldn't pay some attention to that also.

Versatile Site Map Generator $69.00
A1 Sitemap Generator

I do wish Google would add to this to include at least a "not about" property. I realize that Google isn't going to let anyone tell them what a page IS about, but a "not about" property can't really be abused as easily and could help their accuracy in search results.

If they are worried about cheaters, they could put a bounty out for such sites. If someone is abusing Google (Adsense or search) by stuffing keywords or deceptive use of tags, offer the bounty hunter that site's Adsense income for the month. That would sniff this kind of scum out.

For the search and indexing side of things, Google now lets web sites submit an xml file that lists urls and some information about how often the pages change, and how important the page is relative to other pages. Basically, it gets you to do part of the work for them - which we would hope helps everyone.

Google provides a Python script that can produce the file for your site; I wrote a Perl script that does the same:

#!/usr/bin/perl
chdir("/yourhtdocs");
@stuff=`find . -type f -name "*.html"`;
open(O,">sitemap");
print O <<EOF;
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.google.com/schemas/sitemap/0.84">
EOF
foreach (@stuff) {
 chomp;
 s/^..//;
$rfile="/yourhtdocs/$_";
($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,$blksize,$blocks)=stat $rfile;
($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime($mtime);
$year +=1900;
$mon++;
$mod=sprintf("%0.4d-%0.2d-%0.2dT%0.2d:%0.2d:%0.2d+00:00",$year,$mon,$mday,$hour,$min,$sec);
$freq="monthly";
$freq="daily" if /index.html/;
$priority="0.5";
$priority="1.0" if /index.html/;
 
print O <<EOF;
<url>
      <loc>http://yoursite/$_</loc>

      <lastmod>$mod</lastmod>
      <changefreq>$freq</changefreq>
      <priority>$priority</priority>
   </url>

EOF
}
print O <<EOF;
</urlset>
EOF
close O;
unlink("sitemap.gz");
system("gzip sitemap");
 

By the way, that chunk of Perl looks like something Google should ignore - so I added those tags around it.

Season to taste.. see Google Webmaster Tools

If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> Influencing Google


Inexpensive and informative Apple related e-books:

Take Control of OS X Server

iOS 10: A Take Control Crash Course

Take Control of IOS 11

Photos: A Take Control Crash Course

Sierra: A Take Control Crash Course





More Articles by © Tony Lawrence



Related Articles




Printer Friendly Version


Related Articles

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





We made the buttons on the screen look so good you'll want to lick them. (Steve Jobs)




Linux posts

Troubleshooting posts


This post tagged:

Advertising

Blogging

Google

Perl

Web/HTML



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode