Tracking Goals with Google Tag Manager

1
Login to Google Tag Manager. Start by navigating to "Variables" and click on "Configure".
Check all the options under Click. Hit save. 
2

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.  060430272f98a5428720eed3cbad5cd5.png

3

Navigate to "Tags. 

  • Click on "New"  
  • Choose "Custom HTML"
4
Paste the following snippet in the box: <script>mtr.goal("Your Goal Name Here");</script>

IMPORTANT: Replace the text that says Your Goal Name Here - and make sure you use "quotes" on both sides of your text. The text you write is what the name of your goal will be. 

Example goals

  • Add to cart: mtr.goal("Added to cart");
  • Completed purchase: mtr.goal("Completed purchase");
  • Downloaded PDF: mtr.goal("Downloaded PDF");

Each of these goals should be run  separately in separate tags. 

5
Click on "Add Trigger, and choose the trigger you set up in step 2. Now you should have something that looks like this:  aff58c44b07bde541f4509fa207bfd13.png
6
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. 

Did this answer your question? Thanks for the feedback! Please reach out to support@triggerbee.com if there's anything you'd like to add. There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us