New Feature: Configure a Subdomain on Your Domain for Hosting Widget Script
Now you can configure a subdomain on your domain for hosting widget script.
It's a straightforward process of creating a subdomain, updating a DNS record, and configuring your webpage widget settings. By using a subdomain, you’ll improve SEO and reduce the risk of ad blocking, all while getting effortless SSL management on our end.
Besides, if you’re an agency aiming to provide a fully branded experience to your clients, hosting widgets on your own domain is your go-to feature. By letting you serve Claspo widgets’ scripts under your subdomain, you can fully customize your offerings and make them private-label.
What Is a Subdomain on Your Domain Feature
The subdomain on your domain feature allows you to host Claspo’s widget script under your own domain name. For example, if your main domain is yourdomain.com, you can create and configure a subdomain such as claspo.example.com to host the widget script. This involves setting up a CNAME record in your DNS that points claspo.yourdomain.com to the domain provided by Claspo.
Simply set up a DNS CNAME record pointing to our secure server, while we handle everything on the backend. Once done, any scripts fetched will appear to be part of your site, improving SEO and reducing the chance of ad blockers flagging the script as a third-party resource.
Besides, we’ll automatically generate the SSL certificate and manage its renewals for your custom domain. Your SSL certificate is issued by Let’s Encrypt, trusted by most browsers and platforms.
Why Does It Matter
When you host the widget script on your domain (for example, claspo.yourdomain.com), it becomes a native part of your website from the perspective of search engines and security tools.
Search engines view the script as part of your domain rather than a third-party resource, which can positively influence SEO and indexing, especially if the script contributes interactive or dynamically generated content.
Moreover, ad blockers and certain privacy extensions are less likely to flag or block a script that appears to come from your own domain, reducing accidental blocking and ensuring a smoother user experience.
How It Works
1. Log into your account and go to Script. Under the Script tag you’ll find the Customize option.
Note: If the script has not yet been installed on your site, create the CNAME first and then install the script.
2. Next, enter your subdomain. This subdomain will be used to host your Claspo’s widget script.
3. Then, you’ll receive the details needed to create the CNAME record in DNS settings.
4. Log in to your provider’s DNS settings (e.g., GoDaddy, Cloudflare, or Google Domains). From here the specific steps will differ depending on your provider.
5. Create a new CNAME record using the host and target credentials from your Claspo account. In your domain’s DNS settings:
- Host (hostname, subdomain): claspo or any other preferred subdomain
- Target (value, destination): ssl.claspo.io This tells DNS that claspo.yourdomain.com points to the server at ssl.claspo.io.
6. Once that’s set up, go back to the script settings you see on the screenshot above and hit check. Give it some time to do its job, checking can take up to 5 minutes.
Now, all that’s left to do is install or replace the script on your website. If you’re just starting with Claspo, simply add the script to your site in a preferred way. But if you’re already a Claspo user with an active script, you’ll need to replace it to use your own domain.
Should you have any questions, contact our support team and they'll gladly help you with all the settings.