Inserting the OptiMonk JavaScript code

After you created your first campaign, you'll see the JavaScript code on the OptiMonk main page:

  • You will have a few options to choose from depending on the type of your website (ie: Custom, WordPress, Shopify, Magento, etc.)
  • Select the type of the website that you have and insert the code accordingly based on the guide from the bottom of your OptiMonk account
  • Before inserting the OptiMonk JavaScript code into the source code of your site, make sure that you have access to the administration interface of your website.
  • If you have no admin access, please contact your developers by clicking on the “Send to Admin or Developer” button to insert the code for you
  • If you do not have a Developer who can assist you with inserting the code, please click on the “Let us do it for you” button and we will insert it for you
  • If you have access the admin of your site and you would like to insert the code yourself, make sure that you put the code before the </body> tag and after the <body> tag anywhere, similarly to Google Analytics code
  • Please note: you only need to include the code once
Have more questions? Submit a request

Comments