DataLayer for Google Tag Manager
How To Configure
DataLayer for Google Tag Manager

Adding Norton Shopping Guarantee to Magento

Please Note: The settings below require our Datalayer for Google Tag Manager for Magento and some features also require our Enhanced Ecommerce or Google Analytics 4 extensions.

Tag Configuration
  Tag type : Custom Html

Trigger Configuration
  Trigger: All Custom Events
  Event Name : purchase


<script type="text/javascript" src="//"></script>
require(['DataLayerPurchaseApi'], function (dataLayerPurchaseApi) {
    var purchase = dataLayerPurchaseApi();
    if (window._GUARANTEE && _GUARANTEE.Loaded) {
      _GUARANTEE.Guarantee.order    = purchase.getOrderId();
      _GUARANTEE.Guarantee.subtotal = purchase.getOrderSubTotal();
      _GUARANTEE.Guarantee.currency = purchase.getCurrencyCode();    = purchase.getEmail();

Related Extensions

Get more from your Magento2 store!

Magento Enhanced E-commerce

If your are using Magento + Google Analytics, then you need Enhanced E-commerce for Google Tag Manager.

HTML Minifier for Magento2

Minification is the process of removing all unnecessary characters and spacing from your source code without changing its functionality.

Enhanced Transactional Emails

Get more from your order confirmation emails by promoting other complementary products.