There are three ways to build goals into your website.
Using the goals we created in the last milestone we need to
convert our categories and labels into something GA can understand.
The best way to do this is to use a GA push "onSubmit" when someone
clicks a button on your website.
Here's what that looks like using the example
from earlier:
Goal: Website Signup on Homepage
Category: Home
Action:Signup
OnSubmit: (this snippet needs to be added to your button)
If for whatever reason you cannot add this snippet of code to a
major action or button on your website you can get the same effect
by using a URL destination. To do this you must create a unique
page like //mysite.com/thankyou
that is only accessible by performing the action. Redirect your
visitor to this thank you page after they have completed the
action.
This type of goal tracking is very similar to URL based tracking
however it allows you to define a series of pages the visitor must
follow in order to complete the goal. This is a powerful tracking
method for analyzing where visitors are dropping off and leaving
the website during the sales process.