How to Embed the Code on your Site
Installing Popupsmart on your website is a one-time requirement, and it only takes a few minutes.
You can quickly complete the setup with your unique embed code, and you’ll never need to repeat the process again.
Plus, there’s no coding knowledge required.
Additionally, Popupsmart works on your site with a single-line JavaScript code of only 97KB in total. So your website speed will remain unchanged.
There are 3 different ways to add the embed code to your site.
• Embed the code on your website.
• Setup with popular CMS services.
• Setup with Google Tag Manager.
🔔 Important: Please, do not add your unique embed code to the same website more than once. Otherwise, it may not work.
Follow the steps below to learn how to embed the code on your website.
1. Log in to your Popupsmart account and navigate to the left bar. Then, click on “Embed Code”.
![popupsmart embed code section](png/65ae710f8b5f139cd4dc2bbe_popupsmart-embed-code-section.png)
2. From the opening modal, copy the provided embed code to your clipboard.
![embed code modal of popupsmart](png/65ae710f5dcdde63a1138ba0_embed-code-modal-of-popupsmart.png)
3. Open your website’s admin panel from a new tab on your browser.
•Next, navigate to your site’s template file and find the opening of its <body> tags.
•Paste the Popupsmart embed code just before the closing of the <body> tags.
Save the changes. Congrats, you’ve successfully installed Popupsmart on your website.
4. Now, return to your Popupsmart Dashboard for a couple of additional settings. Click your account in the bottom-left corner and click "Websites."
If you haven’t added a domain that you’ll create campaigns for, click on the "New Website" button on the top of the page and enter your website URL (for example, example.com). Then, click the Save button.
![Adding website](png/65ae710fd475aedfe0442076_adding-website.png)
5. In order to display your campaigns on your website, you need to verify the domain/s you added to your Popupsmart account. See the documentation on how to verify your domain.
🔔 Important: The Free Plan covers only 1 website, so you need to upgrade your plan to add more domains. You can create separate campaigns for different domains or use the same popup for multiple domains.
Still stuck? Contact us via live chat or email us at [email protected]