Follow these steps to integrate Navattic JS events with Google Tag Manager:
1

Create and configure the Navattic JS tag

In Google Tag Manager, create a new tag:
  1. Go to TagsNew and name it “Navattic JS”
  2. Under Tag Configuration, select Custom HTML
  3. Navigate to Navattic Settings > Navattic JS and copy the installation code
  4. Paste the code into the Custom HTML field
If you have GA4 + Google Tag Manager integration enabled in Navattic JS configuration, events will be automatically tracked. Otherwise, add this to your installation snippet:
  1. Under Triggering, select All Pages or create a custom trigger for specific pages
  2. Click Save
2

Create a custom event trigger

Set up a trigger to capture Navattic events:
  1. Go to TriggersNew
  2. Under Trigger Configuration, select Custom Event
  3. Set Event name to navattic_event
  4. Under This trigger fires on, select Some Custom Events
  5. Add condition: {{Event}} equals navattic_event
  6. Save the trigger
3

Create data layer variables

Define variables for the below Navattic event fields:
Variable NameTypeData layer variable name
Navattic event typeData Layer Variabledata.type
Navattic demo nameData Layer Variabledata.project__name
Navattic flow nameData Layer Variabledata.flow__name
Navattic step nameData Layer Variabledata.step__name
  1. Go to VariablesUser-Defined VariablesNew
  2. For each variable in the table above:
    • Set variable name
    • Set Variable Type to Data Layer Variable
    • Enter the corresponding data layer variable name (e.g., data.type, data.project__name)
  3. Save each variable
These variables will be used in the following step to make the Navattic event data accessible to your GA4 event tag.
4

Configure GA4 event tag

Create a tag to send Navattic events to GA4:
  1. Go to TagsNew and name it “Navattic event tag”
  2. Under Tag Configuration, select Google Analytics: GA4 Event
  3. Enter your Measurement ID for GA4
  4. Set Event Name to navattic_engagement
  5. Add Event Parameters:
Event ParameterData layer variable name
navatticEventType{{Navattic event type}}
navatticDemoName{{Navattic demo name}}
navatticFlowName{{Navattic flow name}}
navatticStepName{{Navattic step name}}
  1. Under Triggering, select the custom event trigger from Step 2
  2. Save the tag
5

Preview, test, and publish

Click “Preview” in Tag Manager and navigate to a page with a demo.When you engage with the demo, you should see “navattic_event” and “navattic_engagement” events with the variables we defined above populated with the correct values for your demo.