📚 Manage Planet 4 > Integrate P4 > OptiMonk > Install

To install OptiMonk, you need to add a piece of javascript code to your website. 

Your NRO Planet 4  Google Tag Manager container is the best place to implement this, here’s how (instructions also available on the Optimonk Support forum) 👇:

#1 – On your account dashboard, select “Insert Code” or select the code (</>) icon on the left sidebar. This will open a pop-up window your account javascript tracking code.

The “install OptiMonk” command

A pop-up will appear, with the script of your Optimonk account

The Code pop-up

#2 – Copy the script and open your Planet 4 Google Tag Manager container. Don’t forget to use the same container you have implemented on your Planet 4 website. 

#3 – In Google Tag Manager create a new tag.

mceclip3.png
Creating a new tag in GTM

#4 – Select a Custom HTML Tag

mceclip4.png

#5 – Paste the javascript code you’ve copied from your OptiMonk account:

mceclip4.png
Pasting the Optimonk code in a new custom html tag

#6 – Add a trigger to fire OptiMonk’s tracking code on Planet 4 pages.

mceclip6.png
Triggers in a Tag Manager tag

Important: We also recommend NRO’s  that work on countries under GDPR law to block OptiMonk’s tracking code for users that didn’t consent to the Privacy Policy. Read our documentation on how to create GTM triggers based on user consent

#7 Hit “Save” and Preview to make sure your tag is firing correctly and publish a new version of your container. 

mceclip6.png

#8 – Done! You can check if the OptiMonk code is implemented on your website by opening your website in Google Chrome, pressing F12, select Console view, click in the white text box, then type OptiMonk:

mceclip12.png
Checking if the OptiMonk code is implemented on Chrome

You can also check the status of the tracking code under your OptiMonk’s account > Settings > Domains.

Checking the correct installation of the Optimonk code in your Account