Well, XKCD is a web-comic, so I doubt that Randall (the writer) actually gets money from clicks on his site, although he does make money selling books etc.
@MoreAnonymous Maybe... If I can find a way to get it working properly and explain it reasonably well :P