print out Google Analytics tracking HTML only when configured
moved SQL that gets a list of activities (referenced either by object ID or by a foreign key) to its own subroutine