I will update Premium Account on this website Shareaccounts.org
Name Update Time
Netflix October 18, 2024 4:49 pm
Disney+ October 18, 2024 11:03 am
Max October 18, 2024 11:34 am
ChatGPT 4 October 18, 2024 2:27 pm
Spotify October 18, 2024 11:49 am
Prime Video October 18, 2024 5:17 pm
Codecademy October 18, 2024 5:08 pm
Grammarly October 16, 2024 2:31 pm
Canva Pro October 18, 2024 5:12 pm
Udemy Premium Cookies September 2, 2024 2:53 pm
I will update Premium Account on this website Shareaccounts.org

Firstly we want to add a generic button click trigger, so we can track all clicks on the page.

(I am assuming you have already got GTM on your page. If not, follow these instructions)

Follow these simple steps to implement…

  1. On the workspace tab, on the left-hand menu, select “Triggers”.
  2. Click “New”.
  3.  Select “Click – All Elements”.
  4. Select “All Clicks”
  5. You want to then save.
Button Clicks

Ensure Click Variables Are In Place

Now we want to make sure we configure the correct variables in google tag manager, so our button click information shows up when we test.

We can do this by…

  1. Go to the variables tab in the left-hand menu.
  2. You want click “configure”.
  3. Then make sure you check all the click related variables.

Google Tag Manager in Debug Mode

So now we want to test some clicks on the page and see what the feedback into Google Tag Manager.

Follow these simple steps to test…

  1. Click “Submit” in the top right-hand corner and save your work.
  2. Click “Preview” next to submit to open the “Debug View”.
  3. Type your URL of the page you want to track button clicks on, into the popup window.
  4. Click “Connect”
  5. This will open your page in “Debug View” Start clicking on a few things, making sure you remember which order you did it.
  6. Then go back to the tab called “Tag Assistant [Connected]”.
  7. Below is what you should see…
Button Clicks GTM 3

Now you want to check all these clicks and look at the variables.

  1. Click on one of the options in the land had bar that says “click”. There should be a few of them.
  2. Then you want to click on the “Variables” tab.
  3. Here you can see the unique identifiers of the click.

Setting Up Your Button Click Trigger

This is where you want to find what you want to trigger the click on.

I’ve decided I will trigger my click on the “Click Text” variable as that was the most unique variable I had available.

So to set up your Button Click trigger you need to…

  1. Come out of “debug mode” and back to Google Tag Manager.
  2. Go back to triggers.
  3. Click “New”.
  4.  Click Trigger configuration and select “Click – All Elements”.
  5. Select “Some Clicks”
  6. Select “Click Text” from the drop-down menu (Or which ever variable you’ve chosen).
  7. Select “Contains”
  8. Then the text that showed in the debug view. Ours was “SEND ME THE ESCAPE PLAN”

Setting Up Your Tag

Now the trigger is set up, you want to add a tag to it, to ensure that everything is working well.

We always start with a google analytics event.

(Again, we assume you already have Google Analytics set up. If not follow this…)

  1. Click on “Tags” in the left-hand menu.
  2. Select “New”.
  3. Click “Tag Configuration” and select “Google Analytics: Universal Analytics”
  4. Change “Track Type” to “Event”
  5. Add a category, (we put “Click”).
  6. Then add an Action, (we put Escape Plan Button).
  7. Then scroll down and at the bottom click “Enable overriding settings in this tag”.
  8. In Tracking ID add your universal tracking number, it should look like UA-*********-1.
  9. You can find this by going to Google Analytics and clicking “Admin -> Tracking Info -> Tracking Code”>.
  10. Then click on “Triggering” and select the trigger that you just created.
  11. Click Save and name it.

Testing Everything Works with Your Button Click

Now to check everything works…

  1. Click “Submit” and save all your changes.
  2. Select “Preview” to re-enter debug mode.
  3. Click “Connect” (your URL should still be there from last time).
  4. Once your page has loaded click on the button you want to track.
  5. Go to the tab “Tag Assistant [Connected].
  6. On the left-hand side click the “Click” option. There should only be one if you clicked once.
  7. Under “Tags” there should be your tag that fired. Click it.
  8. Under firing triggers, it should have ticks against the filters you set up.
  9. Then go into your Google Analytics account. Go to “Real-Time” and then to “Events” and check it showed up.
  10. It should look something like the image below…
  11. Then you should all be set up to fire other tags off this button clicks and create more button click triggers.