CG Company Popup Module

Implementation guide

Production Files

The optimized CG Company popup script is ready for production use:

<script src="https://popup-api.web.app/dist/company-popup.min.js" crossorigin="anonymous"> </script>

View Source View Demo

Features

Multiple Website Support

The popup script automatically detects which domain it's running on and applies the appropriate configuration:

Each configuration also includes a domains array that controls where the popup will appear:

{
  // Configuration example
  'anushshetty.com': {
    // Visual and content settings
    company1: 'AYYO',
    joinsText: 'joins',
    company2: 'Cumming Group',
    buttonText: 'LEARN MORE',
    learnMoreUrl: 'https://cumming-group.com',
    
    // Behavior settings
    showDelay: 2000,
    showOncePerSession: true,
    bgColor: '#3498db',
    
    // Domain restriction - only show on these domains
    domains: ['anushshetty.com', 'www.anushshetty.com']
  }
}

Note: If the domains array is empty, the popup will display on all domains using that configuration.

To add your domain-specific configuration, you'll need to fork the repository and add your domain to the configurations object.

Test Domain Configurations

Testing

For testing, add ?forceShow=true to any URL to force the popup to display, even if it's been shown before in the current session.

Force Show Demo