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 > Tracking). 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 Track only specified sites to enable URL entry under Tracked Sites. 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
If you have integrated Shopify with Lumo, you enable tracking through Shopify's settings instead of pasting the tracking code manually.
You can capture browsing and purchase activity data from your Shopify store as long as "Lumo Tracking" is connected under "Settings" > "Customer events" in the Shopify admin. For instructions on setting up the Shopify integration, please also see the Shopify integration article.
You only need to install the tracking code manually when you want to track your own sites or landing pages outside of Shopify. For activity data on your Shopify store, give priority to the settings on the Shopify side.
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 Track only specified sites, check that the URL of that site is registered under Tracked Sites
- 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