Implementation guide
The optimized CG Company popup script is ready for production use:
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.
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.