defined($GTID) or $GTID="UA-9060947-1";
my $SCRIPT = <<FOO;
+<body>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ?
"https://ssl." : "http://www.");
pageTracker._trackPageview();
} catch(err) {}
</script>
-</body>
FOO
while (scalar @ARGV)
if (open OF,">$f.".$GTID) {
if (open IF,"$f") {
while (<IF>) {
- if ($_=~m!</body>!) {
- $_=~s!</body>!$SCRIPT!;
+ if ($_=~m!<body>!) {
+ $_=~s!<body>!$SCRIPT!;
+ } else {
+# $_=~s!href="([~"]+)"!href="$1" onclick="
}
print OF $_;
}