GSP is fully contained in a single web page - default.aspx in the root web directory. I think that is where you put the code.
Hopefully Google Analytics records the various query strings, since if all it records is the page you are going to see nothing except requests for default.aspx.
Roger Martin
Creator and Lead Developer of Gallery Server Pro