Google Analytics is a very useful tool that can track:
- How many people visit your online store.
- The sources of your customers.
- Which demographic purchases the most products.
- Whether your online campaigns are successful.
Setting up Google Analytics
Lightspeed has done the work for you by adding all the necessary Google Analytics code into Lightspeed eCom. There are only a few additional steps required to track eCom sales and activity on your website:
- You need a Google account to use Google Analytics.
- For information about creating a new Google account, click here.
- Create a Google Analytics account.
- For information about creating a Google Analytics account, click here.
- Turn on Ecommerce Tracking inside Google Analytics.
- For information about turning on Ecommerce tracking, click here.
- Find, copy and record your tracking ID inside Google Analytics. This will be required in the next steps.
- For information about locating your tracking ID, click here.
- Login to the Lightspeed eCom Back Office.
- On the left menu of the eCom Back Office go to Settings and from Website Settings select Web statistics > Set up Google Analytics.
- Enter the tracking ID in the Tracking ID field.
- Activate Status.
- Turn on Measuring conversion.
- Click Save.
- You're done! Google Analytics is now installed.
Advanced Google Analytics Setup
The General Data Protection Regulation (GDPR) protects the personal information of residents of the European Union (EU). Google Analytics can track personal information. To learn more, click here.
Recommendations if you have customers in the EU
- In your eCom Back Office under Settings > Web statistics > Set up Google Analytics:
- Toggle the switch on beside Start Google Analytics only when visitors accept cookies.
- Turn on Anonymous IP.
- In your eCom Back Office under Settings > Web extras > COOKIE LAW, make sure Confirmation is required is selected from the dropdown list.
Accepting or declining the cookie banner
When Start Google Analytics only when visitors accept cookies is toggled on, a visitor on your website who decline cookies will not be tracked by Google Analytics.
- To decline, visitors can click No or ignore the banner.
When Start Google Analytics only when visitors accept cookies is toggled off, Google Analytics will track the site usage of all visitors regardless of their cookie preferences.
Tracking search queries
To understand which search terms your customers are using on your site, you can set up Google Analytics' Site Search.
- For more information on setting up Site Search, click here.
Although Lightspeed eCom is already designed with the shopping cart code required to return eCommerce Analytics reports, Google recommends in this article to also create a destination goal to track the number of times a visitor purchases an item.
Create a new goal by following the directions here. Make sure the new goal:
- Is a custom goal.
- Has the type configured as Destination goal.
- When you only have only one language in your eCom store, specify the match type as a Exact match and enter: /checkout/thankyou/.
- When you have more than one language in your eCom store, specify the match type as a Regular expression. Add the request URIs separated by a pipe (|). For example: if you have English and Dutch in your eCom shop, enter: en/checkout/thankyou/|nl/checkout/thankyou/.