When you install the tracking code on your website, you can tie friends who visit from LINE to the tracking on your site. It is the foundation for web conversion tracking, the website friend-add CTA, and the Klaviyo form integration, and with the HubSpot integration connected, a friend's page-view history is also recorded on their HubSpot contact. Below you'll find what the tracking code does, how to install it, and how to specify which sites to track.
Links you deliver from LINE automatically receive UTM parameters for analytics tools (on by default; you can change this under "Workspace Settings" > "UTM"). For details, see the "Automatic UTM Parameters" article.
What you can do with the tracking code
The tracking code is a small piece of code that ties your friends' activity on your website to Lumo's tracking.
With the HubSpot integration connected, friends who visit from LINE are tied to HubSpot's tracking, and their page-view history is recorded on their HubSpot contact. Even without HubSpot, the code is the foundation for web conversion tracking, the website friend-add CTA, and the Klaviyo form integration. The article "Adding a friend-add CTA to your website" explains how to create the CTA.
The Marketing Agent suggests how to put this data to use once you share your Goal. The smoothest approach is to first tell the agent something like "I want to use my site's browsing data to improve campaigns" and check whether installing the tracking code is necessary.
Installing the tracking code
You copy the tracking code from "Tracking" in your workspace settings and paste it into each page of your website.
Installation steps
- From the side menu, open "Settings" > "Workspace Settings" > "Tracking"
- Click the "Copy" button on the tracking code shown on the screen
- Paste the copied code just before the
</body>tag on each page of your website
If you want to record views on every page, paste the code into a shared template or your header/footer so you don't have to do it page by page.
If you want someone else to install it
If you're unsure about pasting the code yourself, ask your website's development company or the person who manages your site. To make sure it's done correctly, give them the tracking code shown on the screen and tell them the installation location: "paste it just before the </body> tag on each page."
Specifying which sites to track
If you want to limit which sites tracking runs on, register the URLs of the target sites.
On the "Tracking" screen, turn on "Only track on specific sites" to enable URL entry under "Sites to track". The tracking code will run only on the sites you register here.
| Item | Details |
|---|---|
| What to enter | The URL of the site you want to track (starting with https://) |
| Multiple entries | You can enter multiple URLs by separating them with commas |
| Example | https://www.example.com, https://lp.example.com |
If you leave this setting off, the code runs on every site where you've pasted it. Use this setting to narrow down the target sites when you want to prevent it from running on unintended sites.
Tracking a Shopify site
Shopify stores configure product-view measurement separately from identifying visitors who arrive through links in LINE messages.
In Shopify admin, check that "Lumo Tracking" is connected under "Settings" > "Customer events". Lumo Tracking measures product views; order and checkout data arrive through the Shopify integration sync. On stores that show a cookie consent banner, browsing isn't tracked until the visitor consents to analytics and marketing.
To identify visitors arriving from LINE links, the store must load Lumo's tracking code. Enabling the "Lumo LINE CTA" app embed and its display setting loads this code too. See Showing a LINE friend-add CTA on your store.
For sites or landing pages outside Shopify, install the tracking code on the site itself.
When things don't work
When tracking isn't working, check the installation location and the target site settings in order.
Site views aren't being recorded
- Check that the tracking code is correctly pasted just before the
</body>tag on each page - If you have turned on "Only track on specific sites", check that the URL of that site is registered under "Sites to track"
- Check that the URL is entered in the correct format, starting with
https://
Shopify activity data isn't being captured
- Check that "Lumo Tracking" is connected under "Settings" > "Customer events" in the Shopify admin
- Check that the integration between Shopify and Lumo is complete