When you install the tracking code on your website, Lumo can see which pages of your site your LINE friends have viewed. Below you'll find what the tracking code does, how to install it, and how to specify which sites to track.
What You Can Do With the Tracking Code
The tracking code is a small piece of code that records your friends' page views on your website to Lumo.
Once installed, Lumo can see which pages friends who came from LINE have viewed. This browsing data is useful for "auto messages triggered by activity on your site," such as cart-abandonment follow-ups, and for building Segments based on behavior.
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 > 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 Aren't Working
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