Articles on: Settings

How to improve drop in statistics in Shopify or 3rd party Analytics (New Version)

Overview


When a cookie consent banner is implemented, analytics platforms such as Shopify Analytics, Google Analytics, or other third-party tracking tools may show a drop in recorded statistics.

This occurs because many analytics tools rely on cookies that are only loaded after a visitor gives consent.


The banner configuration can influence how easily visitors interact with the consent dialog and how quickly tracking can begin.

This guide explains a recommended configuration that helps reduce drops in recorded analytics while still giving visitors control over their consent choices.




The configuration involves adjusting settings inside the Banner Layout and Advanced tabs.

These settings help simplify the consent interaction and reduce unnecessary friction during the visitor’s first interaction with the banner.



Step 1 – Enable Cookie Notice & Preferences


Navigate to Settings > Banner > Layout and locate the Consent dialogs section.


Select: Cookie notice & Preferences



This configuration displays:


  • A cookie notice banner for quick interaction
  • Access to the preferences dialog for detailed cookie management


Visitors can quickly accept cookies while still having access to category-level controls if they wish to review them.



Step 2 – Configure Cookie Notice Buttons


Still inside Settings > Banner > Layout locate the Cookie notice section and find Buttons.


Select: Accept-only



This configuration allows visitors to quickly accept cookies from the initial banner, while other choices remain accessible through the preferences dialog.



Step 3 – Configure Preferences Dialog Buttons


Navigate to the Preferences dialog settings within the same Layout tab.


Under Buttons, enable: Accept-Decline



This ensures that visitors who open the preferences window can still:


  • Accept all cookies
  • Decline cookies
  • Review category options



Step 4 – Enable Enforced Consent (Modals)


Navigate to Settings > Banner > Advanced and enable: Enforced consent (modals)



When this option is enabled, the consent dialog is displayed as a modal window with a background overlay.


This helps ensure that visitors notice and interact with the banner before continuing to browse the store.



Optional: Lock Background Scroll


Inside the same section, you may also enable:


Lock background scroll


This prevents visitors from scrolling the page while the consent dialog is visible.

Using this option can make the consent dialog more prominent, encouraging visitors to interact with it before navigating the site.



Why This Configuration Helps Analytics


This setup improves analytics collection by:


  • Providing a clear and simple first interaction
  • Allowing visitors to accept cookies quickly
  • Reducing banner friction that may cause visitors to ignore or dismiss the consent dialog
  • Encouraging interaction with the banner before browsing the store


When visitors accept cookies earlier in their session, analytics tools are more likely to record page views and events accurately.



Important Notes


  • The banner configuration should always match the privacy requirements applicable to your store.
  • Different regions and laws may require different consent approaches.
  • This guide explains a technical configuration option, not a legal recommendation.



Summary


A drop in analytics data can occur when tracking scripts only activate after consent is given.


You can improve analytics reporting by configuring the banner as follows:


  • Use Cookie notice & Preferences as the consent dialog
  • Set the cookie notice buttons to Accept-only
  • Allow Accept-Decline in the preferences dialog
  • Enable Enforced consent (modals) for better visibility


This configuration provides a smoother visitor interaction while still allowing users to manage their cookie preferences.

Updated on: 05/03/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!