Skip to main content

Configuration settings

To configure the Google Tag Manager extension, navigate to Stores -> Settings -> Configuration -> Mirasvit Extensions -> Google Tag Manager.

Google Tag Manager

Integrating Google Tag Manager enables seamless data tracking, helping you manage tags efficiently for better insights into customer behavior, improving marketing strategies, and driving growth.

Google Tag Manager settings

Google Tag Manager settings

  • Enable GTM: activates the core GTM functionality, allowing your Magento store to integrate with Google Tag Manager for advanced tracking and analytics.

  • GTM regular code: core script that enables Google Tag Manager on your site, ensuring the capture of visitor data to boost marketing efforts and site performance.

  • GTM no-script code: ensures you don’t miss any tracking by capturing data even from users with JavaScript disabled, giving you a more complete view of your audience.

Logging and debugging

The old per-module "Enable GTM logging" option has been replaced by the shared Debug mode setting, which powers an on-page debug toolbar and writes events to var/log/mirasvit_tm.log. See How to use the frontend debug panel.


Container import

With pre-configured container imports, you can easily connect your store to Google Analytics 4 and ensure fast, accurate tracking, enabling more efficient analysis of customer data and better marketing decisions.

Container import settings

Container import settings


Integrating Google Ads conversion tracking allows you to measure the direct impact of your advertising efforts, optimizing ROI, and delivering more personalized, relevant ads to your audience.

Google Ads settings

Google Ads settings


Admin operations tracking

Admin operations tracking provides visibility into refunds and admin orders, offering key insights to optimize customer service and improve operational efficiency for a more seamless shopping experience.

Admin operations tracking settings

Admin operations tracking settings

  • Tracking refund: tracks refunds processed in the admin panel, helping you monitor patterns and improve customer service to build trust and loyalty. Refunds are sent automatically server-side via the GA4 Measurement Protocol when a credit memo is created - no CLI command or cron job is required.

  • Tracking admin order: tracks orders placed manually by administrators, ensuring complete customer lifecycle visibility for more comprehensive reporting.

  • GA API secret: provides the necessary API secret to connect your store with Google Analytics for enhanced tracking and reporting of admin operations.


Shared Marketing tracking settings

Event-level behavior - the product identifier, customer group tracking, attribute mapping (brand, variants, custom dimensions), the on-page debug toolbar, and the option to suppress tracking for selected visitors - is configured once for all Mirasvit tracking extensions under Marketing tracking, not in the Google Tag Manager section. See Shared tracking settings.