Tracking tag | Developer Center
日本語Parameters
This page describes the parameters available for the tracking tag.
Global snippet
init process
| Parameter Name | Required* | Type | Default Value | Settings | Comments | |
| type | Yes | string | - | Enter "init". *Fixed value |
||
| tagId | Yes | string | - | Tag ID. | ||
| config | - | - | Store each of the following parameters: | |||
| string | None | Email address. | Not supported on LINE Official Account and Search Ads (Shopping) | |||
| phoneNumber | string | None | Phone number. Enter in the format with the country code. |
Not supported on LINE Official Account and Search Ads (Shopping) | ||
| useCookie | boolean | false | Specify true if you want to store the identifier in a cookie, and specify false if not. | If you omit the item, it defaults to false. | ||
| useLocalStorage | boolean | false | Specify true if you want to store the identifier in local storage, and specify false if not. | If you omit the item, it defaults to false. | ||
| cookieDomain | string | None | Domain for storing cookies. | Not supported on LINE Official Account. | ||
| autoLinkDomains | string[] | None | This is the domain for using the cross-domain tracking feature (tracking across different domains). When navigating to a page on the specified domain, the URL automatically includes the "_ly_c" and "_ly_rt" parameters. |
Not supported on LINE Official Account. | ||
Page view process
| Parameter Name | Required* | Type | Default Value | Settings | Comments | |
| type | Yes | string | - | Enter "event". *Fixed value |
||
| eventType | Yes | string | - | Enter "page_view". *Fixed value |
||
| tagId | Yes | string | - | Tag ID. | ||
| config | - | - | Store each of the following parameters: | |||
| label | string | None | This is a custom label set as a filter when creating an audience list. | Not supported on LINE Official Account. | ||
| isTest | boolean | false | Flag indicating whether it is a test. true: Exclude from tracking as a test. false: Include in tracking. |
Not supported on LINE Official Account. | ||
| isExternalTransmission | boolean | true | Flag indicating whether to send event data collected via measurement tags to partner companies. true: Send the data. false: Do not send the data. For details on partner companies to which data is sent, refer to "Data sent to partner companies." |
Not supported on LINE Official Account and Search Ads (Shopping). |
||
Event snippet
| Parameter Name | Required* | Type | Default Value | Settings | Comments | |
| type | Yes | string | - | Enter "event". *Fixed value |
||
| eventType | Yes | string | - | Event type. For details, refer to "Trackable events." |
||
| tagId | Yes | string | - | Tag ID. | ||
| config | - | - | Store each of the following parameters: | |||
| snippetId | string | None | ID of the event snippet generated in the conversion setting. | Not supported on LINE Official Account. | ||
| transactionId | string | None | A unique ID for duplicate detection 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." |
Not supported on LINE Official Account. | ||
| value | number | None | The monetary value of the event. |
|
||
| currency | string | None | The currency unit for the item associated with the event. You can specify "JPY" or "USD." |
|
||
| label | string | None | This is a custom label set as a filter when creating an audience list. | Not supported on LINE Official Account. | ||
| isTest | boolean | false | Flag indicating whether it is a test. true: Exclude from tracking as a test. false: Include in tracking. |
Not supported on LINE Official Account. | ||
| items | Item[] | - | You can specify up to 10 in array format. |
Not supported on LINE Official Account.
|
||
| itemId | string | None | Item ID. |
|
||
| categoryId | string | None | Item category ID. |
|
||
| price | number | None | Item price. | Not supported on LINE Official Account and Search Ads (Shopping). | ||
| quantity | None | Item quantity. | ・An integer up to 10 digits ・You can't set decimal numbers. |
|||
| isExternalTransmission | boolean | true | Flag indicating whether to send event data collected via measurement tags to partner companies. true: Send the data. false: Do not send the data. For details on partner companies to which data is sent, refer to "Data sent to partner companies." |
Not supported on LINE Official Account and Search Ads (Shopping). |
||
Recommended Parameters by Product
Search Ads (Shopping)
By setting parameters, you can track conversions using information such as order values and product details. The parameters you apply will also be used to improve performance.
| Parameter name | Settings | Example value | |
| itemId | The item ID used to identify the purchased product. | ITEM-001 | |
| price | The price of the purchased product. | 2980 | |
| quantity | The quantity of the purchased product. | 2 | |
<Example settings>
You can specify up to 10 items in an array format for "items".
items: [
{
itemId: 'ITEM-001',
price: '2980',
quantity: '2'
},
{
itemId: 'ITEM-002',
price: '480',
quantity: '5'
}
]
Notes on parameter setting
-
If the value entered for a required field is invalid, the request won't be sent to LY Corporation.
-
If the value entered for an optional field is invalid, a default value will be sent. If there is no default value, that field won't be sent.
-
Invalid values will appear as an error in the console.
Deduplication of conversion tracking
If conversion tracking is possible using a measurement tag, duplicate measurements will be excluded using the following values as a unique key.
Account ID
transaction_id
-
The validity duration for the unique keys is 7 days. Even if you use the same "Account ID" and "transaction_id," they are not subject to deduplication after 7 days from when the conversion is counted.
-
If the same "Account ID" and "transaction_id" are sent from both the conversion API and the Tracking tag, they are considered duplicates.
-
Because "transaction_id" is an optional field, if it is not set, "Account ID" and "event_time" are used as unique keys for deduplication. In this case, conversions with the same "Account ID" and "event_time" are deduplicated during the tracking duration of the conversion settings.
Examples of deduplication
*The value of "event_time" is actually in UNIX time. For explanation purposes, it is shown in the "yyyymmdd" format.
Example 1
| Account ID | transaction_id | event_time |
| 12345 | 0000112345 | 20250411 |
| 12345 | 0000112345 | 20250412 |
→Deduplicated because account ID and transaction_id are the same and the interval between event_time values is within 7 days.
Example 2
| Account ID | transaction_id | event_time |
| 12345 | 0000112345 | 20250411 |
| 12345 | 0000112345 | 20250420 |
→Not deduplicated because, although "Account ID" and "transaction_id" are the same, the interval between "event_time" values is 8 days or more.
Example 3
| Account ID | transaction_id | event_time |
| 12345 | None | 20250411 |
| 12345 | None | 20250412 |
→Not deduplicated because "transaction_id" is not set, and even though the interval between "event_time" values is within 7 days, "Account ID" and "event_time" don't match.
