Track actions on your website as Goal Completions and identify user sources via UTM Code
Create a list of all Goals and UTM Parameters you want to track, and create new Events for all event goals.
You can either track event-based goals, such as Newsletter Subscribe button clicks or Destination goals, such as when users visit a particular URL.
Event goals need specific events before they can be set up. When setting an event-based goal, decide on what user action on your website you would like to track, such as a button click.
Examples of UTM parameters you may want to track include:
An example of a category and goal combination can be Pageviews as the category and Product Page View, Services Page View, About Us Page View as the goal.
Similarly, another example could be Video Views as the category, and individual videos as unique goals.
Add UTM queries to the end of your URLs when placing links in cold emails or cold email templates based on the parameters you are tracking.
For example, instead of simply adding a link to “https://google.com,” you would link to “https://google.com/**`?utm_source=cold-email&utm_medium=email&utm_campaign=broadcast`**”
To create a new tag in Google Tag Manager:
- Click Tags in the left sidebar menu of your GTM dashboard.
- Click New and name your tag. For example: GA - Event - Subscribe Button.
- Click Tag Configuration, and select Google Analytics: Universal Analytics.
To set up event configurations for GTM Tags:
- Select Event as the Track Type.
- Enter the category name (e.g. Buy button or Ecommerce) from the list of categories you created above under Category.
- Enter the name of the action you want to track (e.g. Click or Pageview) under Action.
- Enter a label name under Label (optional).
- Enter your Google Analytics ID under Google Analytics Settings, or select the Analytics Variable if you already created one.
Create and configure custom event triggers in GTM, and copy your Built-in Variable Value from your website page.
To create a trigger for an Event Tag:
- Click on Triggering.
- Click on “+” sign on your top-right corner.
- Name your trigger (e.g. Subscribe Button).
To get the Built-in Variable Value from the website page:
- Open the URL for the page where you wish to track the user actions in a new tab.
- Right-click on button that you want to track clicks for, and click Inspect Element (if you are using Google Chrome, or Safari or Inspect if using Microsoft Edge). This opens the page level code and reveals the specific code used for your button in a side window (see image).
- Select the highlighted value for the variable class.
- Copy/Paste the value (e.g.
subscribe-btn) into notepad.
- Click on Trigger Configuration and select Just Links.
- Do not tick Wait for Tags and Check Validation and select Some Link Clicks under This trigger fires on.
- Select Choose Built-In Variable under Condition, select either Click ID or Click Classes (in this example, we’ll be selecting Click Classes).
- Select Classes > Contains > Value of click (replace Value of click with the variable value you copied earlier, such as
subscribe-btn), and click Save.
- Click on Admin on the left sidebar menu in Google Analytics.
- Select the Property you want to create a goal for.
- Select a View to set up the custom goal.
- Click Goals under the view column.
- Click + New Goal for each action you want to track (e.g. Form Signup).
- Select Custom under Goal Setup.
- Name the Goal (e.g. “Subscribe”).
- Leave the Goal ID field as the default selection.
You can use different options to track your goal:
- Destination: Counts a Goal completed when a user visits a specific page or URL.
- Event: Goal completed when Google Analytics tracks interactions on website through Event Tracking.
For instance, if you want to create an event goal (such as when a user clicks a subscribe button), select Event and click Continue. Next, enter the Category, Action, and Label values for the Event you created earlier and click Save.
For example: Category: Lead Magnet, Action: Download, and Label: 5 Ways to Lose Fat.
Open an Incognito tab in your browser and enter the URL of your website with the embedded URL parameters to test your Google Analytics Goal setup for each conversion goal you want to track.
Go through all the steps you have configured as action items to track until you complete all the goals you want to track. Next, access your Google Analytics Dashboard, select the Goal Overview Report under Conversions from the left sidebar menu, and check for the Goal Completion.