Help » Features & reports » Goals »

Javascript goals: clicky_custom.goal vs clicky.goal()

These javascript methods can be used to manually trigger pre-defined (static) goals, or to declare and trigger dynamic goals.


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.