change to code block
remove jquery event binding in place of plain javascript, check for ga in scope before attempting ga functions
automatically send a page view request to Google Analytics if requested and enabled, move functions around
document functions