It's Quiz4Y

[GTM utilization] Three GA measurement techniques that you want to set first

GTM (Google Tag Manager) is basically a convenient tool that allows you to add tags without editing the HTML of the page, but it may be a little difficult for first-time users to use it in conjunction with Google Analytics. Hmm.
Therefore, this time, I have summarized the setting methods and setting examples that can be used for measurement in Google Analytics, which is in particular demand.

3 GTM settings you want to register for measurement with Google Analytics

Basically, the “contents you want to measure” in Google Analytics often differ depending on the site, but there are also “general purpose” measurement contents that are in demand for measurement on many sites. These general-purpose measurement settings are not difficult to set, so it is strongly recommended to set them first.
Especially the first case is a measurement that can occur on many sites, so it will be useful on any site.

1) Measurement of link clicks to external sites (measurement of outbound links)

I think most sites have leads to external sites.
This may literally refer to “the site of another company”, or even if it is the same company site, it has another site with a different domain and installs a lead wire to the footer etc. like “Other services are here” There are many cases where it is.

Example of use・ I want to know the number of customers sent to affiliated sites・ I want to know the number of transitions from my site A to my site B

Regardless of which lead wire you use, you will want to see the numerical value of “how many users have transitioned”, but since the transition destination is not your own site, you cannot basically measure “at the transition destination”. ..
However, even if you cannot measure “at the transition destination”, you can substitute it by measuring “when the link is clicked at the transition source”.

Things necessary・ A lead wire that is a direct link to an external site (a link that does not sandwich a redirect)-“Outbound” variable that determines whether the clicked link destination is an external domain-“Click URL” variable to get the link URL・ “Link click” trigger (= timing when the link is clicked)・ Event measurement tag of “Google Analytics”

GTM provides a “link click” trigger that responds to the “link click” timing, so use this.
If no restrictions (conditions) are applied, all links will react, so it is necessary to prepare a variable to determine “whether the link destination is an external domain” and incorporate it as a trigger condition.
In addition, I would like to see “on which page the link was clicked” and “link destination of the clicked link” in the measurement contents of Google Analytics, so I will register these as variables as well.

Setting procedure

First, let’s register from each required variable.
The first is from the “determine if the destination URL is an external domain” variable.
1. Display the new variable registration screen and select “Automatic event variable” in “Page element” for

2. Select “Element URL” in “Variable type” and select “Element type” Select “Outbound” and click the “Save” button in the upper right.

3. “Rename variable” is displayed. Enter an arbitrary name (example: “Click URL-Outbound”) and click the “Save” button. Click to complete

This “automatic event variable> element URL> outbound” variable has the ability to determine “whether the domain name part of the clicked link URL contains your site domain”. If it is an external site, the value of this variable will be true, and if it is your own site, it will be false.
In other words, if you put the conditions “equal” and “true” for this variable into the trigger, you can make the condition “if the link destination is an external site”.
Now, we will set the trigger and the event measurement tag of Google Analytics, but if you want to register the measurement tag of Google Analytics, it is very convenient to have the “Google Analytics setting” variable.
If you haven’t registered the “Google Analytics Settings” variable yet, let’s register a new one. If you have already registered, skip steps 4 to 6 below.

4. Display the new variable registration screen and select “Google Analytics Settings” in “Utilities”.

5. Enter the Google Analytics property ID (UA-XXXXX-X) you want to measure in “Tracking ID” and click the “Save” button at the top right of the screen.

6. “Change variable name” is displayed. Enter the name of (you can leave the default) and click the “Save” button to complete. 

“Google Analytics Settings” variable is a variable that allows you to save a set of “Google Analytics” tag settings together, and has the same properties. When registering multiple measurement tags for, you can easily standardize the settings.
If the PV measurement tag already exists, match the contents of the setting field of each option with the contents of the existing PV measurement tag, and then register the “Google Analytics settings” in the “Google Analytics settings” field of the PV measurement tag. It is a good idea to select the “Variable” and turn off “Enable override settings with this tag”.
Now you have a set of variables ready.
All you have to do is register the trigger and tag.

7. Display the new registration screen of the trigger, and select “Link only” in “Click” for “Trigger type”.

8. Check “Wait for tag delivery” and display “All these conditions” Enter the following conditions in the “Enable this trigger when is true” field:
-{{Page URL}} [Match regular expression] [. *]

9. “Some links in” Where this trigger occurs ” Select “Click”, enter the following conditions, and click the “Save” button on the upper right.-
{{(Variable name registered in [3])}} [Equal] [true]

10. “Change Trigger Name” will be displayed. Enter any name (eg “Link Click-External Site”) and click the “Save” button to complete.

When setting the “Link Click” trigger The point of is “Basically, check” Wait for tag delivery “”, and if all pages are targeted, “{{Page URL}} [” in the target page condition column displayed afterwards. Match regular expression] [. *] And set. “
Basically, the page transition starts as soon as the link is clicked. In other words, even if you try to deliver the tag at the same time as clicking the link, the page may transition before the tag delivery is completed. In that case, the tag processing will be canceled.
Therefore, if you enable this “Wait for tag delivery” option, you can “pause the page transition until the tag processing is completed”, and you can greatly reduce the omission of tag measurement.
Also, as for the specification condition of the target page after that, “. *” In the regular expression means “anything”.
By setting this for the page URL (“Page URL” variable), the condition “any page” is created.

Leave a Reply

Your email address will not be published. Required fields are marked *