1. Knowledge Base
  2. Analytics
  3. Overview & Best Practices

Nyla Analytics

Ensure best in class tracking with Nyla analytics

Nyla makes it easy to manage and add the tags you need. All while keeping your Nyla site fast. This article walks you through how Nyla Analytics works, and how to set analytics, tags and tracking up for your site. 
This article covers: 

Overview

When customers visit your Nyla site, it sends events, such as if a product was viewed, added to cart and so on. These events can be used to report on things like user behaviour and site performance. 
You can send this data to third-party platforms like Meta and Google Analytics to measure metrics like ad campaign effectiveness and conversion rates. The platforms that will receive this data will depend on the tags or tracking pixels you’ve implemented. Additionally, the data sent will vary based on the customer’s consent preferences and the tracking configurations of each vendor.
Nyla events are sent for the site only. Any tags that need to be added from checkout onwards should be set up in Shopify. In order to ensure continuity in tracking for users when they start checkout, Nyla passes a session ID to Shopify so that the user can be matched on the site and in checkout.
Nyla sends events to the following locations: 

To set up analytics on your site, follow these steps:

  1. Configure your consent banner to ensure proper user consent for tracking
  2. Install tracking tags/pixels either natively through Nyla or via custom tags in Google Tag Manager (GTM)
  3. In GTM, ensure that consent mode is configured correctly for all tags and pixels
  4. Add any tags/pixels required for tracking from checkout onwards to Shopify
For more details on adding analytics during onboarding, click here.

If you are not familiar with analytics and need support from an expert, please reach out to Nyla support for an introduction an Analytics Expert to help you with analytics on your site. 

Setting up tagging on Nyla & Shopify

As covered in Nyla & Shopify, Nyla powers your site up to checkout. The experience from checkout and beyond is managed in Shopify.
When it comes to analytics, Nyla sites send events for the shopping experience up to checkout, and all events from checkout and beyond are handled on Shopify.
This means that:
  • Any tags and tracking that need to be added prior to checkout should be added on your Nyla site
  • Anything that needs to be added to checkout or beyond (e.g your thank you page) should be added natively on Shopify 

Customers' Session IDs are maintained between your Nyla site to Shopify to ensure continuity on tagging throughout their journey. 

 

Recommended analytics setup

We recommend to set up analytics using the following setup: 

  • Native tags: use Nyla's native support for the most common tags to send site events to key vendors. See more here. 
  • Google Tag Manager: You can use Google Tag manager to add custom tagging and non-native pixels to your site. See more. 
  • Shopify: ensure all tagging that relies on checkout events is added on Shopify 
  • Ensure your Consent management app is switched on and activated for the locales relevant to your business. You should also ensure that consent mode is correctly configured in order to respect customer tracking preferences. 

Note: if you need support on adding tags or tracking to Shopify, you should reach out to Shopify support/documentation or work with an expert in order to set these up.  

Events & the Nyla Data layer

The Nyla Data layer sends events from your Nyla site to the following locations: 

Native tags

Nyla has native support for key vendors enabling you to add tagging to your site quickly and easily. 

Current support includes: 

Ensure to add the activation settings for each one you want to activate, and then save and publish 

Consent preferences

See the Consent Banner app for setting up cookie consent. 
Nyla supports Google consent mode v2, however action may be needed when setting up analytics in order to ensure that customer preferences are respected. See here for information. 
See more on Cookies on Nyla.

Analytics Setup Checklist

See here for detail on our suggested steps in setting up analytics for your Nyla site during onboarding.