2. Tracking Goals

To create goals tracking using Advanced tracking, click on the “Goals Tracking” menu.

Click on “Create” menu

There are two types of goals: Pageview and Custom event. As the name suggests, Pageview is used to track the number of visits to a specific page, while Custom event allows you to use JavaScript to track any event, such as a visitor clicking a button, filling out a form, and more.

To create custom event tracking, select the “Custom Event” tracking type. Fill in the tracking name, and then copy and paste the tracking code into your website’s code. For example, you can place the tracking code within the onclick() event of an HTML button element.

To create pageview tracking, select the Pageview tracking type. Fill in the tracking name and the web page path that you want to track. Click on the “Create” button to save the settings.