These are the basic code snippets you'd find within every Google Analytics implementation.
This sets the property ID so the code knows where to send the data.
Send in a basic pageview
You can also send in custom page names, overriding the default (the current URL).
In order to host multiple Universal Analytics accounts on the same page, you need to define a namespace to work within for the trackers. One can remain the default, with no namespace, but the rest must have a namespace.
Previously, this namespace would be set on every request, prefixing the method. Now in Universal Analytics, you must set it within the 'create' call (using the
name property) and then prefix all of the following methods.