In order to configure Google Tag Manager for use with Nitesoft WBE do the following:
In order to connect Google Analytics account create variable {{UA ID}} that has the value of your Google Analytics id. You can manage the variables in the Variables section below the Tags section. The variable needs to be of type Constant rather than Google Analytics settings.
Create a Tag.
Track type needs to be set to Event.
Non-Interaction Hit should be enabled.
Google Analytics settings should be skipped, instead you enable overriding settings in this tag in order to enable E-commerce.
In the Tracking ID field you specify the Google Analytics settings id.
Expand More Settings section and enable Enhanced Ecommerce Features.
Check Use Data Layer checkbox.
Then triggers need to be configured.
All the listed triggers are custom triggers.
Click on the Pen icon in the Triggering section. Click on the Plus icon (New trigger) in the top right corner. Click on the Pen icon again. Choose Custom Event trigger type. Specify event name and click the save button. Specify trigger name (it's fine to have it the same as the event name) and click the save button.
Add all the required triggers. Supported triggers are (addToCart, cartView, checkout, searchResult and transaction).
Click the save button in the top right corner.
Google Analytics 4
In order to migrate to Google Analytics 4 replace Google Analytics: Universal Analytics tag with 2 tags: Google Analytics: GA4 Configuration and Google Analytics: GA4 Event.
Google Analytics: GA4 Configuration: select you Google Analytics 4 ID and default events you would like to see in analytics.
Google Analytics: GA4 Event: select the configuration tag you have just created. Use {{Event}} custom event placeholder. Specify Ecommerce: "Send Ecommerce data" and Data source: "Data Layer". Use the same trigger configuration as for Universal Analytics.