This is a variable
to define on a page where you want that page to trigger a goal as soon as it is loaded. This variable must be defined in your HTML before
the standard tracking code.
This is a function
that you can call to declare a goal after
(and only after) the page has fully loaded. It is generally used to define a goal based on a user event, such as clicking a button.