Skip to content

Event Tracking for LINE Campaigns

This page explains what user interaction data is available from LINE, the technical constraints of LINE's Webhook API, and how Engage Studio combines multiple data sources to provide campaign reporting.


What LINE Webhook Can and Cannot Collect

LINE's Messaging API Webhook delivers events to Treasure Data via the Streaming Ingress Connector (LINE Messaging API Webhook). However, LINE does not include per-user open or click events in Webhook payloads by design.

Events Available via Webhook

The following events are delivered in real time and can be stored in Treasure Data CDP:

Event TypeDescription
followUser followed the LINE Official Account
unfollowUser unfollowed or blocked the LINE Official Account
messageUser sent a message to the LINE Official Account
postbackUser tapped a postback action button (Flex or Template messages)
videoViewingCompleteUser finished watching a video message (1-on-1 only)
beaconUser entered a beacon-equipped physical location
accountLinkUser linked their account via the account link feature

What Is Not Available

LINE does not expose the following events through its Webhook or Messaging API:

  • Message opens — Whether an individual user opened a delivered message
  • Link clicks — Whether an individual user clicked a URL in a Text or Imagemap message
  • Read receipts — Per-user read status

These limitations are by design in LINE's platform. Per-user engagement data of this type is not provided through any LINE API endpoint.

Aggregate stats via LINE OA Insights

While per-user open and click events are unavailable, LINE provides aggregate statistics per broadcast (total opens, total clicks, etc.) through its Insights API. Use the LINE OA Insights Import Integration to import these aggregate metrics into Treasure Data. See LINE Campaign Reporting for details.


UTM Tracking

Despite the limitations above, you can measure link-level engagement by appending UTM parameters to all URLs in your LINE messages. When recipients tap a link and load the destination page, the UTM parameters are captured by your web analytics platform (e.g., Google Analytics), giving you URL-level traffic attribution per campaign.

How UTM Parameters Are Applied

UTM parameters configured on the UTM Tracking tab are automatically appended to every URL in the campaign messages at delivery time.

Default UTM parameters for LINE campaigns:

ParameterDefault Value
utm_sourceline
utm_mediumsocial
utm_campaignCampaign name
utm_content(optional, configurable per campaign)
utm_term(optional, configurable per campaign)

URL Merge Policy

When a URL already contains query parameters, UTM parameters are appended without overwriting existing values unless the same key already exists, in which case the campaign-level value takes precedence.

Example:

Original URL in Imagemap tap area:

https://example.com/product?ref=banner

Delivered URL after UTM injection:

https://example.com/product?ref=banner&utm_source=line&utm_medium=social&utm_campaign=spring_sale_2026

Scope of UTM Application

Message TypeUTM Applied To
Text (v2)All URLs in the text body
Imagemapuri action URLs in tap areas
Flex Message (future)All action button URLs

Delivery Log Schema

Delivery results are written at send time to the line_events table in the delivery_line_{system_identifier} database. This log records the outcome of every LINE Messaging API request Engage Studio makes per profile, but does not include open or click events, as these are not available from LINE.

The table has 24 columns. The ones you will use most:

Column Type Description
timebigintUnix timestamp of the record
campaign_idvarcharEngage Studio campaign ID
campaign_namevarcharEngage Studio campaign name
line_user_idvarcharRecipient LINE User ID. Stored as the raw ID (U followed by 32 hexadecimal characters), not hashed
deliveredvarchartrue when the LINE API accepted the request
statusbigintHTTP status code returned by the LINE Messaging API — 200 on a successful send
response_status_codebigintHTTP status code of the LINE API response
errorvarcharError detail returned by the LINE API
will_retryvarchartrue when Engage Studio will retry the request
retry_countbigintNumber of retries already attempted for this record
api_endpointvarcharLINE Messaging API endpoint called, for example https://api.line.me/v2/bot/message/push
line_request_idvarcharRequest ID returned by the LINE API
sent_message_idsvarcharMessage IDs the LINE API returned for the messages it accepted
test_modevarchartrue when the record was created by Send Test, false for a normal campaign send. Records created before August 10, 2026 have a null value, so use test_mode IS NOT TRUE rather than test_mode = false when filtering historical data for campaign sends

Message Type Is Not Recorded

The delivery log does not identify which message type was sent. Text, Imagemap, and Flex sends write the same columns, and no column carries the message type. To compare results per message type, send each type from its own campaign and distinguish them by campaign_id or campaign_name.

The Table Is Created by the First Send

Creating a LINE OA configuration does not create the table. The delivery_line_{system_identifier} database stays empty until the first send, which creates line_events.


Constraints and Considerations

External Redirects and URL Shorteners

If you use a URL shortener or intermediate redirect:

  • UTM parameters are appended to the URL before delivery.
  • If the redirect strips query parameters, UTM data will not reach your analytics platform. Verify your redirect configuration preserves query parameters.

LINE Privacy Policy

LINE's platform design intentionally restricts per-user behavioral data (opens, clicks) from being accessible to LINE Official Account operators. This applies regardless of account tier or API plan.

In addition, LINE's development guidelines explicitly prohibit the following:

  • Do not attempt to identify the attributes of specific users by their user ID.
  • Do not use the audience management API or send narrowcast messages for the purpose of identifying user attributes.

Refer to the LINE Messaging API development guidelines for current policies.