Google and ad blockers don't trust third-party resources. Embedding scripts from third-party domains can impact SEO and reduce traffic as search engines may flag them as spam. Ad blockers also often target third-party scripts. Hosting widget scripts on your domain minimizes these risks. Configure the CNAME record to host Claspo widgets on a subdomain of your domain (such as claspo.yourdomain.com).
Note Before using the CNAME feature, check your website's Content Security Policy (CSP). Strict rules may block script loading from your subdomain unless explicitly allowed. You may need to update your CSP settings in your server configuration, HTTP headers, or HTML meta tags. |
Step 1: Access script settings
To access the subdomain settings in your Claspo account, navigate to the Script tag section in the dashboard. Under the Script settings, find the Customize option for creating a subdomain.
Step 2: Choose your subdomain
In the Customize settings, enter the subdomain you want to use for serving Claspo widget scripts. For example, if your main domain is yourdomain.com, a good subdomain might be claspo.yourdomain.com. Please note, that
a domain in use or previously used cannot be reused in another project.
Important!
When setting up a subdomain for hosting Claspo widget scripts, avoid generic names like ‘banner’, ‘analytics’, ‘widget’, ‘tracker’, as they may trigger ad blockers. Before finalizing your subdomain, search for it in popular stop-lists like EasyList, Fanboy’s Lists, and AdGuard Filters. Open each stop-list in your browser or download the file if needed. Then, use the ‘Find’ feature (Ctrl+F or Command+F) to search for the subdomain you plan to use. Choose unique subdomain names to reduce the risk of being flagged. |
Confirm your subdomain choice by clicking Next. You’ll then receive the details to create the CNAME record in DNS settings.
Leave this tab open and continue to the next step.
Step 3: Update your DNS settings
Next, log in to your domain provider’s control panel (such as GoDaddy, Cloudflare, Google Domains, or other hosting provider) and follow these steps:
Go to the DNS settings or DNS management section.
Create a new CNAME record:
Host: enter the subdomain you chose.
Target: enter the value provided by Claspo (ssl.claspo.io).
Save the changes.
Step 4: Verify the CNAME setup in Claspo
Return to your open Claspo’s tab and click the Check button to verify that your CNAME record is set up correctly.
Wait for a while for the system to verify DNS records and generate SSL certificates. If done correctly, your script domain will appear on the Script page in the Script tag section.
You can reset these settings to default anytime by clicking Restore to default.
Step 5: Update the Claspo script on your website
If you’re already using Claspo’s JavaScript code, replace the old script with the updated one that uses your subdomain. If you have our WordPress plugin, simply reinstall it.