GTM Templates

GTM Templates

Use Dnomia GTM templates to capture DataLayer events from e-commerce platforms and send them to Dnomia for server-side processing.

CONFIG TAG

Configuration Template

The Config tag initializes Dnomia in your GTM container. Add it as a tag that fires on All Pages.

1
Create a new Custom HTML tag or use the Dnomia Config template
2
Set your Public Key from the Dnomia dashboard
3
Set consent to 'pending' or integrate with your CMP
4
Set the trigger to All Pages
GTM - Config Tag
<!-- GTM Custom HTML Tag: Dnomia Config -->
<script>
(function() {
  window.dnomia = window.dnomia || [];
  dnomia.push(['init', {
    publicKey: '{{Dnomia Public Key}}',
    consent: 'pending'
  }]);
  var s = document.createElement('script');
  s.async = true;
  s.src = 'https://cdn.dnomia.app/packages/sdk/latest/dnomia.min.js';
  document.head.appendChild(s);
})();
</script>
EVENT TAG

Event Template

The Event tag captures DataLayer events and sends them to Dnomia. Create one tag per event type or use a single catch-all.

1
Create a new tag using the Dnomia Event template
2
Map the DataLayer event name to a Dnomia event name
3
Map DataLayer variables to event properties
4
Set the trigger to the relevant DataLayer event
GTM - Event Tag
<!-- GTM Custom HTML Tag: Dnomia Event -->
<script>
  window.dnomia = window.dnomia || [];
  dnomia.push(['track', '{{Event Name}}', {
    orderId: '{{DL - orderId}}',
    value: {{DL - value}},
    currency: '{{DL - currency}}',
    items: {{DL - items}}
  }]);
</script>
PLATFORMS

Platform-specific Setup

Ticimax

Ticimax pushes e-commerce events to the DataLayer automatically. Map these events to Dnomia using the GTM Event template.

IdeaSoft

IdeaSoft uses a custom DataLayer format. Use the provided variable mappings for correct event property extraction.

T-Soft

T-Soft DataLayer events follow a different naming convention. Refer to the mapping table for correct event names.

Ticimax - DataLayer
// Ticimax DataLayer Example
dataLayer.push({
  event: 'purchase',
  ecommerce: {
    transaction_id: '12345',
    value: 299.90,
    currency: 'TRY',
    items: [{
      item_id: 'SKU-001',
      item_name: 'Product Name',
      price: 149.95,
      quantity: 2
    }]
  }
});
TROUBLESHOOTING

Common Issues

No events firing in GTM

Check GTM Preview mode to verify the DataLayer events are being pushed. Ensure triggers match the exact event name.

Wrong data in events

Verify DataLayer variable paths in GTM. Use the DataLayer inspector to check the actual values being pushed.