Drupal is a fantastic CMS, and with its recent updates, it's only getting better. However, I know creating marketing popups in Drupal can sometimes feel clunky.
That's why I'm excited to show you How To Create Popup in Drupal 8 -
Step 1: Install the Poper Module in Drupal
First things first, you'll need to install the Poper module directly into your Drupal installation.

Think of this as laying the foundation for Poper to work seamlessly with your Drupal site. You can find the module at https://www.drupal.org/project/poper.
Follow the instructions on that page to get it installed correctly. In most Drupal 8 setups, you can use the command composer require 'drupal/poper:^1.0@alpha'
in your terminal.
Step 2: Connect Your Poper Account to Drupal
After the module is installed, you'll need to connect it to your Poper account. This is how Drupal knows which Poper account to pull your popups from.
Head over to Poper and sign up (if you haven't already). Once you're in, grab your Account Email from your account settings.

Then, in your Drupal admin panel, go to "Modules > Poper > Configure" and paste your Account Email into the designated field. Saving the Account Email syncs the two systems.
Step 3: Time to Build Your First Popup

With the connection established, it's time for the fun part: creating your popup! This happens entirely within the Poper platform, so head back to your Poper dashboard.
Step 4: Choose a Template and Launch Your Campaign

In Poper, click the button to create a new popup. You'll see a library of templates designed for different purposes, such as growing your email list or promoting a sale.
Browse through the options and pick one that aligns with your goal. I recommend starting with a simple template to get a feel for the editor. Once you’re happy with your design, publish your campaign.
Step 5: Test Your Popups in Drupal
Now that you've created and published your popup, it's time to see it live on your Drupal site. Open your website in a new browser window (or an incognito window to avoid caching issues).
Browse to a page where you expect the popup to appear based on the rules you set in Poper. If you don't see it right away, double-check that the campaign is active in Poper and that your Account Email is correctly entered in Drupal. Refreshing the cache might also help.