Tracking Goals with Google Tag Manager
This article guides you through how to set up simple goals in Triggerbee via Google Tag Manager.
- Login to Google Tag Manager. Start by navigating to "Variables" and click on "Configure".
Check all the options under Click. Hit save.
- Navigate to Triggers and click on "New".
- Choose "Click - All elements" under the headline Trigger Type.
- Choose "Some clicks" in the radio buttons that appear.
Then you have to find the CSS class name on your link or button on your website.
- Navigate to "Tags.
- Click on "New"
- Choose "Custom HTML"
- Paste the following snippet in the box:
<script> mtr.goal("Your Goal Name Here"); </script>
Example goals:mtr.goal("Added to cart");
mtr.goal("Completed purchase");
mtr.goal("Logged in");
Each of these goals should be run separately in separate tags. - Click on "Add Trigger, and choose the trigger you set up in step 2. Now you should have something that looks like this:
- Hit save, and you're done! Try clicking on the button you added your goal to and see if it pops up in the Triggerbee visitor feed.
Keep in mind: It can take up to 10 minutes before your goal appears in the visitor list.