Summary
To measure the performance of a live broadcast, it is necessary to implement a purchase completion tag and a measurement function on the purchase completion page. The results of each live broadcast can be confirmed from the management screen.

Implementation Method
Please embed ① the purchase completion tag and ② the measurement function on the purchase completion page.
① Purchase Completion Tag
<script src="https://api.tagfab.jp/tagfab.js"></script>
② Measurement Function
Please embed the measurement function in the following format.
tagfab.order({ orderId: 'Order ID', units: [ { unitId: 'SKU ID', quantity: Quantity, price: Amount } ... ] });
- Parameter Definition Table
| Format | 備考 | |
|---|---|---|
| orderId | Maximum 30 characters |
Please specify the order ID. By doing so, you can link it to the sales data from the live video, which is useful for analyzing sales data. Please specify in single or double quotes. |
| unitId | Maximum 30 characters |
Please specify the SKU ID. Ensure that the SKU ID entered in the measurement function matches the SKU ID of the product registered in the management screen. Please specify in single or double quotes. |
| quantity | Number Up to 8 digits |
Please specify the quantity of the purchased product. For each SKU ID. |
| price | Number |
Please specify the total tax-included amount for the purchased product. For each SKU ID. |
-
Use variables to dynamically input the "Order ID," "SKU ID," "Quantity," and "Amount" for the purchased products in the function.
Example) If order ID is order001, SKU ID is SKU 001, and a 10,000 yen product was purchased in quantity of 1:
tagfab.order({ orderId: ‘order001’, units: [ { unitId: ‘SKU 001’, quantity: 1, price: 10000 } ] });
-
For a single order ID with multiple products purchased, please specify a set of { unitId: 'SKU ID', quantity: Quantity, price: Amount } separated by commas.
Example) If order ID is order001, SKU ID is SKU 001, a 10,000 yen product was purchased in quantity of 1, and SKU ID is SKU 002, a 5,000 yen product was purchased in quantity of 3:
tagfab.order({ orderId: ‘order001’, units: [ { unitId: ‘SKU 001’, quantity: 1, price: 10000 }, { unitId: ‘SKU 002’, quantity: 3, price: 15000 } ] });
※ Please specify the total amount for price.
実装イメージ
<html>
<head>
<script src="https://api.tagfab.jp/tagfab.js"></script>
</head>
<body>
<script>
tagfab.order({ orderId: 'yyyyy',
units: [ { unitId: 'xxxxxx', quantity: zzz, price: aaaa } ] });
</script>
</body>
</html>
Method to Confirm Implementation Operation
※ Please carry out video viewing and test purchasing on the same device and browser.
- Issue a Live ID.
- Test broadcast the live video you have issued.
- View (play) the live broadcast on the page where the live video tag is implemented.
- Make a test purchase of the product.
- Confirm that the purchase data is reflected in the report data.
- From the management screen's Live Reservation page, click on 'API Data' for the Live ID used in the test and confirm that the purchase data is correctly reflected.
- The data is reflected almost in real time. If it is not reflected, it may not have been implemented correctly, or your company's system may be stopping the execution of the tagfab.order function.
- If you have checked for issues and cannot find the cause, please contact us with the test content and results you have implemented.
- For the definition of report numbers, please confirm that our system is not affecting your company's system (please confirm that your company's system is operating normally).
Supplementary Notes
Since user behavior is managed on a domain basis, the domains of the video viewing site and the purchasing site must be the same (subdomains may be different without issue).