PDA

View Full Version : installing tracking code on CGI scripts


Aximili23
12-16-2003, 03:10 PM
Some of the pages on my site are Perl CGI scripts, rather than the usual HTML files. That is, the content of some of the files to which several URLs in my site point are in the format of the Perl programming language, not standard HTML. I'm pretty sure Perl wouldn't be able to recognize the Statcounter tracking code, so I didn't install the code on these pages. I would almost definitely just get some kind of server error.

My question is, is there anyway I can get around this problem and track these pages? For example, is it possible to construct some bit of Perl code that could do exactly the same thing as the Statcounter tracking code? I'd try to construct the code myself, except that I have absolutely no idea where to begin or how to do this, and anyway doing so would probably violate the Statcounter terms and conditions in some way.

Any Perl gurus out there that might have a solution?

Aximili23

12-16-2003, 10:43 PM
print '<insert statcounter code here>';

is all you need.

Aximili23
12-17-2003, 05:03 AM
wow, I didn't think it would be so simple. thanks!