Back to Integration Guide

Popup Integration
Complete Tutorial

Learn how to integrate PRZIO popup builder into your website. Add conversion popups,exit intent popups, and lead generation popups with advanced triggers and targeting.

Table of Contents

  1. 1.Create Your PRZIO Account & Project
  2. 2.Create Your First Popup
  3. 3.Configure Popup Settings & Triggers
  4. 4.Set Up URL Targeting
  5. 5.Install PRZIO Popup SDK
  6. 6.Initialize Popup SDK
  7. 7.Test Your Popup Integration
1

Create Your PRZIO Account & Project

Get started with PRZIO popup builder platform

Step 1.1: Sign Up for PRZIO

  1. Visit the PRZIO signup page at /signup
  2. Enter your email address and create a password
  3. Verify your email address by clicking the link sent to your inbox
  4. Complete your profile setup

πŸ“Έ Screenshot Placeholder: PRZIO Signup Page

Add screenshot showing the signup form with email and password fields

Step 1.2: Create a New Project

  1. After logging in, click on "Create New Project" button
  2. Enter a project name (e.g., "My Website Popups")
  3. Add a project description (optional)
  4. Click "Create Project" to proceed

πŸ“Έ Screenshot Placeholder: Create Project Dialog

Add screenshot showing the project creation form with name and description fields

πŸ’‘ Pro Tip: Keep your Project ID handy - you'll need it for popup integration. You can find it in the project settings page.

2

Create Your First Popup

Design your conversion popup in PRZIO editor

Step 2.1: Navigate to Popup Builder

  1. Go to your project dashboard
  2. Click on "Popups" in the sidebar
  3. Click "Create New Popup" button

πŸ“Έ Screenshot Placeholder: Popups Dashboard

Add screenshot showing the popups list page with create button

Step 2.2: Design Your Popup

  1. Enter a popup name (e.g., "Welcome Popup")
  2. Use the visual editor to design your popup
  3. Add text, images, and buttons to your popup
  4. Customize colors, fonts, and layout
  5. Add a form if you want to capture leads (optional)

πŸ“Έ Screenshot Placeholder: Popup Editor Interface

Add screenshot showing the popup editor with design tools and preview

Step 2.3: Save Your Popup

  1. Click "Save" to save your popup design
  2. Your popup is now ready for integration

πŸ“Έ Screenshot Placeholder: Saved Popup Confirmation

Add screenshot showing the success message after saving popup

3

Configure Popup Settings & Triggers

Set up popup triggers and display settings

Step 3.1: Choose Popup Trigger

Select when your popup should appear:

  • Page Load - Show immediately when page loads
  • Exit Intent - Show when user tries to leave the page
  • Scroll Percentage - Show after user scrolls a certain percentage
  • Timeout - Show after a specific time delay
  • Element Exists - Show when a specific element appears on page

πŸ“Έ Screenshot Placeholder: Popup Trigger Settings

Add screenshot showing the trigger selection dropdown with all options

Step 3.2: Configure Exit Intent Settings

If you chose Exit Intent trigger, configure these settings:

  1. Set minimum time on page (e.g., 30 seconds)
  2. Set minimum scroll percentage (e.g., 50%)
  3. Configure cooldown period (how often popup can show)
  4. Set max per session (how many times per session)

πŸ“Έ Screenshot Placeholder: Exit Intent Configuration

Add screenshot showing exit intent settings with all configuration options

Step 3.3: Configure Display Settings

  1. Enable/disable backdrop overlay
  2. Set backdrop color and opacity
  3. Configure close button position and style
  4. Set cookie/session settings to prevent repeat displays
  5. Choose animation effect (fade, slide, etc.)

πŸ“Έ Screenshot Placeholder: Display Settings Panel

Add screenshot showing all display configuration options

4

Set Up URL Targeting

Control where your popup appears

Step 4.1: Add URL Conditions

Configure URL targeting to show popup on specific pages:

  • Contains - Show if URL contains specific text
  • Equals - Show only on exact URL match
  • Starts With - Show if URL starts with specific path
  • Does Not Contain - Show if URL doesn't contain text
  • Landing - Show only on homepage

πŸ“Έ Screenshot Placeholder: URL Conditions Configuration

Add screenshot showing URL condition builder with examples

Step 4.2: Set Logic Operator

Choose how multiple URL conditions are evaluated:

  • OR - Show if any condition matches
  • AND - Show only if all conditions match

Step 4.3: Domain Targeting (Optional)

Restrict popup to specific domains:

  1. Enter your domain name (e.g., example.com)
  2. Popup will only show on pages matching this domain
5

Install PRZIO Popup SDK

Add the PRZIO popup SDK to your website

Step 5.1: Include SDK Script

Add the PRZIO popup SDK script to your HTML page. Include it before the closing </body> tag:

<script src="https://app.przio.com/sdk.js" data-project-id="YOUR_PROJECT_ID"></script>

πŸ“Έ Screenshot Placeholder: HTML Code with SDK Script

Add screenshot showing HTML file with the SDK script tag and data-project-id attribute

Alternative: Manual Initialization

You can also initialize the popup SDK manually:

<script src="https://app.przio.com/sdk.js"></script>
<script>
  PrzioSDK.init({
    projectId: 'YOUR_PROJECT_ID',
    debug: false // Set to true for debugging
  });
</script>

WordPress Plugin (Alternative)

For WordPress websites, use our official plugin:

  1. Install the PRZIO Popup WordPress plugin
  2. Go to Settings β†’ PRZIO Popup
  3. Enter your Project ID
  4. Save settings - popup will automatically appear on your site

πŸ“Έ Screenshot Placeholder: WordPress Plugin Settings

Add screenshot showing WordPress plugin settings page with Project ID field

6

Initialize Popup SDK

Configure popup SDK settings

Step 6.1: Automatic Initialization

If you used the data-project-id attribute, the popup SDK will initialize automatically when the page loads.

βœ… That's it! Your popups will automatically appear based on the triggers and URL conditions you configured in the PRZIO dashboard.

Step 6.2: Manual Initialization (Advanced)

For more control, initialize the popup SDK manually:

<script>
  // Wait for SDK to load
  if (typeof PrzioSDK !== 'undefined') {
    PrzioSDK.init({
      projectId: 'YOUR_PROJECT_ID',
      apiUrl: 'https://app.przio.com/api/sdk', // optional
      debug: true // Enable debug mode to see logs
    });
  }
</script>

Step 6.3: Enable Debug Mode

Enable debug mode to see detailed logs in the browser console:

PrzioSDK.init({
  projectId: 'YOUR_PROJECT_ID',
  debug: true // Shows detailed logs in console
});

πŸ“Έ Screenshot Placeholder: Browser Console with Debug Logs

Add screenshot showing browser console with PRZIO SDK debug messages

7

Test Your Popup Integration

Verify your popup is working correctly

Step 7.1: Check SDK Loading

  1. Open your website in a browser
  2. Open Developer Tools (F12 or Right-click β†’ Inspect)
  3. Go to the Console tab
  4. Look for "[PrzioSDK] Initializing..." message
  5. Verify Project ID is correct

πŸ“Έ Screenshot Placeholder: Browser Console with SDK Initialization

Add screenshot showing console with successful SDK initialization message

Step 7.2: Test Popup Display

  1. Navigate to a page that matches your URL conditions
  2. Trigger the popup based on your configured trigger:
    • Page Load - Refresh the page
    • Exit Intent - Move mouse to top of browser
    • Scroll - Scroll down the page
    • Timeout - Wait for the specified time
  3. Verify the popup appears correctly
  4. Test the close button functionality

πŸ“Έ Screenshot Placeholder: Popup Displayed on Website

Add screenshot showing the popup displayed on a website page

Step 7.3: Test Form Submission (If Applicable)

  1. If your popup contains a form, fill it out
  2. Submit the form
  3. Verify form data is captured in PRZIO dashboard
  4. Check that popup closes after successful submission

πŸ“Έ Screenshot Placeholder: Form Submission Success

Add screenshot showing successful form submission message

βœ… Integration Checklist

PRZIO account created and verified
Project created in PRZIO dashboard
Popup designed and saved
Popup triggers and settings configured
URL targeting conditions set up
PRZIO Popup SDK installed on website
Popup tested and working correctly

Content Security Policy (CSP)

If your website uses a Content Security Policy, you must allow app.przio.com so the SDK can load and send API requests (e.g. popup data, personalization clicks). You do not need to whitelist app.przio.com for CORSβ€”that is configured on our side.

Add the following to your CSP:

  • script-src β€” include https://app.przio.com if you load the SDK from app.przio.com
  • connect-src β€” include https://app.przio.com so the page can call our APIs

Tag to implement

Add this <meta> tag inside your <head> (merge with your existing CSP if you have one):

<meta http-equiv="Content-Security-Policy" content="script-src 'self' https://app.przio.com; connect-src 'self' https://app.przio.com;">

Or set the header on your server (merge with existing CSP):

Content-Security-Policy: script-src 'self' https://app.przio.com; connect-src 'self' https://app.przio.com;

Next Steps

Congratulations! You've successfully integrated PRZIO popup builder into your website. You can now:

  • Create multiple popups for different pages and purposes
  • Track popup impressions and conversion rates in PRZIO dashboard
  • A/B test different popup designs and triggers
  • Integrate forms into your popups for lead generation
  • Use advanced targeting to show popups to specific audiences