Use Google Tag Manager

This page describes the steps for setting up tracking tags using Google Tag Manager.
The setup method using Google Tag Manager is common across services such as LINE Official Account and LY Ads Display Ads.

The tracking tag provides templates and features to be used with Google Tag Manager, provided by Google. We don't support any operations or methods related to Google Tag Manager, other than the templates provided by LY Corporation.

Google Tag Manager

Google Tag Manager is a tag management system that allows you to set up and implement website tags through a web browser. For more details, refer to "About Google Tag Manager."

1. Preparation

Preparing Google Tag Manager

Set up Google Tag Manager after reviewing the "About Google Tag Manager."

Get the tag ID for the tracking tag

Generate the tracking tag in Business Manager.
Learn more (available in Japanese)
You can check the tag ID in Business Manager after it is generated.

2. Tag settings

Global snippet setting

Set up the global snippet using Google Tag Manager for all pages of your website.

(1) Open the workspace of the containers (websites) to set tags on Google Tag Manager.

(2) Select "Tags" on the side menu and click "New."

(3) Select "Tag Configuration" and then click "Discover more tag types in the Community Template Gallery".

(4) Select "計測タグ グローバルスニペット" (Tracking tag global snippet) from the list.

(5) Set each item in the setting view for the tracking tag global snippet.

Section Item name Required* Default value Settings Comments
- tagId Yes - Item ID.
Get it from the tracking tag management view in the Campaign Management Tool.
useCookie true Select the checkbox if you want to store the identifier in a cookie.
true: selected
false: deselected
useLocalStorage true Select the checkbox if you want to store the identifier in local storage.
true: selected
false: deselected
autoLinkDomains None These are the domains that use cross-domain tracking (tracking across different domains).
Enter one domain per line in the input field.
Not supported on LINE Official Accounts.
cookieDomain None The domain where the cookie will be stored. Not supported on LINE Official Accounts.
Advanced Matching Email None Email address.
  • By using variables in Google Tag Manager, you can reflect information entered in website forms and site-specific variables.
  • Not supported on LINE Official Accounts or Search Ads (Shopping)
phoneNumber None Phone number.
PageView Event isTest false Flag indicating whether it is a test.
Select the checkbox if you want to exclude it from tracking as a test. If the checkbox is not selected, it will be included in tracking as usual. We recommend selecting the checkbox initially.
true: selected
false: deselected
Not supported on LINE Official Accounts.
isExternalTransmission true Uncheck the box if you don't want to send website visitor data to partner companies.
true: selected
false: deselected

Not supported on LINE Official Accounts or Search Ads (Shopping)

label None This is a custom label set as a filter when creating an audience list. Not supported on LINE Official Accounts.

(6) Select the conditions under which the tag will be triggered in "Triggers."

(7) Click the "Save."

Event snippet settings

Set the event snippet on pages where you want to measure data for each event.

(1) Open the workspace of the containers for setting tags on Google Tag Manager.

(2) Select "Tags" on the side menu and click "New."

(3) Select "Tag Configuration" and then click "Discover more tag types in the Community Template Gallery".

(4) Select "計測タグ イベントスニペット" (Tracking tag event snippet) from the list.

(5) Set each item in the setting view for the tracking tag event snippet.

Section Parameter name Parameter name Required* Default value Settings Comments
- - tagId Yes - Item ID.
Get it from the tracking tag management view in the Campaign Management Tool.
Event - eventType Yes - This is the event type specified in the conversion setting or audience list setting view.
snippetId None This is the ID of the event snippet issued in the conversion setting view.
This is required when specifying "Event snippet" as a filter.
Not supported in LINE Official Account.
isTest false Flag indicating whether it is a test.
Select the checkbox if you want to exclude from tracking as a test. If the checkbox is not selected, it will be included in tracking as usual.
We recommend selecting the checkbox initially.
true: selected
false: deselected
Not supported in LINE Official Account.
isExternalTransmission false Uncheck the box if you don't want to send website visitor data to partner companies.

true: selected
false: deselected

Not supported in LINE Official Account. and Search Ads (Shopping).

transactionId None The ID used to determine duplication in conversion tracking. You can set it freely according to the advertiser's needs (Example: payment numbers).
For deduplication, refer to "Deduplication of event tracking" in the "Parameters."
Not supported in LINE Official Account.
label None This is a custom label set as a filter when creating an audience list. Not supported in LINE Official Account.
value None The monetary value of the event. Not supported in LINE Official Account.
items In the Google Tag Manager setting view under "Field specifications," you can add the following four items in one line.
itemId None Item ID. ・Within 100 characters
You can use alphanumeric characters (uppercase and lowercase), hyphens (-), and underscores (_).
Not supported in LINE Official Account.
categoryId None Item category ID.

・Within 50 characters
You can use alphanumeric characters (uppercase and lowercase), hyphens (-), and underscores (_).

Not supported in LINE Official Account and Search Ads (Shopping).

price None Item price. ・Up to 10 digits of half-width numbers
・You can't enter numbers containing decimal points.

Not supported in LINE Official Account.
quantity Item quantity.

An integer with up to 10 digits of half-width numbers.

Not supported in LINE Official Account.

In the Google Tag Manager setting view under "Variable specification," you can specify array variables. You can specify the object array directly as the value for items.
(items) None Enter items as an array.

Not supported in LINE Official Account.


Example:
[
  {
    "itemId": "i1",
    "categoryId": "",
    "price": "",
    "quantity": ""
  },
  {
    "itemId": "i1",
    "categoryId": "",
    "price": "",
    "quantity": ""
  }
]

(6) Select the conditions under which the tag will be triggered in "Triggers."

(7) Click the "Save."

3. Verification

Verify that the tag is working as intended in Google Tag Manager or Business Manager. Learn more (available in Japanese)