How to set up OptiMonk reporting to Google Tag Manager?

This guide may be useful for you in case you installed Google Analytics via Google Tag Manager in order to measure the performance of your website. By following the instruction below, you will be able to monitor the performance of your campaigns within a special OptiMonk Dashboard for Google Analytics. 

You can set up OptiMonk to report the following events to your Google Tag Manager account: shown, filled, close(x), no.

Please follow the below steps to set up the reporting for your Google Tag Manager account:

1. First, log in to your OptiMonk account at

2. Click on your icon in the bottom left corner, select Settings then Domains:


3. Select the domain you want to set up, then click on Tag Manager Container under How to configure Google Tag Manager with OptiMonk:


4. This will open a new browser window with the required information we need to import to Google Tag Manager. Click on the new browser window:


5. Press Ctrl + A to select all the text in the new browser window then right-click with your mouse and select Copy:


6. We need to save the selected text as a file. To do so, you need to create a new text document on your computer. Right-click in any folder, select New, then select Text Document:


7. Open the new Text Document, right-click inside the document and select Paste:

This will insert the text into the document.

8. To save the file, select File in the top menu then select Save:

9. Open Google Tag Manager in a new window, and log in to your account. Select the website you want to use:


10. Select Admin on the top menu then select Import Container to import the text file we have created previously:


11.  Select Choose container file on the next page:


12. Select the file we have created previously and click Open:


13. Select an import option (overwrite or merge) then decide if you want to create a new workspace or you want to import to an existing one:


14. Click Confirm to finalize the setup:


The following objects will be added to your data layer when the popup actions – shown, filled, close(x), no – are reported:

    'OptiMonk action': action,
    'OptiMonk label': label,
    'OptiMonk category': category,
    'event': 'OptiMonk ' + action


  • category: OptiMonk
  • action: shown, filled, close(x), no
  • label: OptiMonk campaign name

That's it! :) If you have any further questions or need any additional help, just let us know at and we would be happy to assist you.

Have more questions? Submit a request