Wrapper to the Google Analytics function

DO NOT MERGE

This pull request is a wrapper function so that:
1) JS tests can be written to ask whether 'trackUsage' was called
2) tracking could be done internally if needed