Add a "Trigger event" step to the tour. (available in Usetiful Premium and Usetiful Enterprise)

Name the event.

Additionally, you can also add event details like {userRole}. 



Have Google Tag Manager installed on your page. In the Google Tag Manager, open the Triggers section and choose to create New trigger with type "Custom Event".




Give the event the same name like you did in Usetiful "Trigger event" step.



Save the new Trigger.

Now, when the event is triggered in Usetiful, Google Tag Manager will recognize it.


In the Google Tag Manager, open the Tags section from the menu and add a new tag, then connect it to the trigger you created in the previous step.




Choose tag type "Custom HTML".




Paste the script into the HTML section of the tag.

Save the created tag and publish your changes.

Now, when Usetiful triggers the event, Google Tag Manager will recognize it and launch the script automatically.