White label » Best practicesThis page covers best practices that we recommend for your white label service.
Put your tracking code on a CDN
Sender Policy Framework for email
DNS "A" records vs "CNAME" records
Stay up to date with our blog
Providing users access to their stats
Automatically register new users and sites with the white label API
Put your tracking code on a CDNA CDN distributes static files on various servers around the world, so that when a visitor goes to a website with our tracking code installed, it is downloaded from a server that is geographically close to that visitor. This ensures there is as little "lag" as possible when loading a website with the tracking code installed.
We have a secondary generic domain name, staticstuff.net, that points to our CDN and also supports HTTPS. In your white label admin area, you have the option to use this for tracking instead of your branded domain. (This only applies to the tracking code that your users install on their site, and nothing else). By default this option is enabled for new white label accounts. There is no extra charge for this, so we highly recommend using it.
If you decide not to do this, however, then we recommend putting a copy of the tracking code file on your own CDN.
Here is what your "default" tracking code looks like:
Here is what your CDN tracking code would look like, with the change highlighted in red:
CDN recommendationsHere are a couple of popular CDNs to get you started:
Sender Policy Framework (SPF) for emailClicky has an email report feature that is also included in your white label service. However, these email reports are sent from our server, not yours. The reason this matters is that a lot of anti-spam software checks what IP addresses are authorized to send email for a domain. They do this by querying your domain's DNS for a Sender Policy Framework. It's important you have an SPF declared in your DNS, regardless of using our white label service, so that no one can impersonate emails from your domain.
If you already have SPF set up...Just add this declaration to it and you're gold:
If you do not have SPF set up...We recommend using spfrecord.io to create your SPF record. In the part where it asks you for IP4 addresses, use the text below for one of your entries, which is the IP block that belongs to Clicky. You'll want to add your own server IP addresses as well.
To get this into your DNS, you just need to create a new TXT record type, and paste in the block of code that spfrecord.io gives you.
As an example, here is what our SPF looks like as of April 2020. This is set up as a DNS "TXT" record:
v=spf1 mx a ip4:220.127.116.11/26 include:_spf.google.com -all
By completing these steps, there is a far greater likelihood that our emails will be delivered to your customers without issue.
DNS "A" records vs "CNAME" records
ALWAYS USE A CNAME FOR YOUR WHITE LABEL DNS.
DO NOT, UNDER ANY CIRCUMSTANCES, USE AN "A" RECORD.
When we setup a white label account, we specifically state that you need to set it up your DNS an a CNAME record. If you go against this request, you do so at your own risk.
This is because we cannot guarantee our IP will remain the same forever. If our IP does change and your white label breaks because you set it up as an A record, we cannot be held responsible for any outages.
SO PLEASE... DON'T DO IT!
Stay up to date by subscribing to our blogClicky is contstantly being updated with new features, and you'll definitely want to know about them. Whenever we release major new features, we always blog about it. So the best way to stay up to date is by subscribing to our blog.
Providing users access to their statsThere are two ways you can provide a user with access to the stats for their site(s). The first way is to have them come to your white label domain and login with a username and password that you have created for them, or that they have chosen. They would have to know what your stats domain is, though. You would either let them know, or have a link to it from your main website.
We also offer an iframe optimized solution, so you can include the stats inside of your own website. This is the way we recommend doing things, as it also includes the ability to automatically log the user in, making the experience completely seamless.
To learn more about our iframe solution, click here.
Automatically register new users and sites with the white label APIYour white label is a closed system, which means that users cannot create account directly. You, the admin, must create accounts for your users.
We have made an API just for white label users to fully automate this process. You can learn how to use it in the white label API documentation.
The API also lets you make your system open, if you wish. Using the API, you can create pages on your own website that talk to our API, so you can have new users register and add new sites to their white label. If your white label stats will only be available to existing users of whatever service it is you provide, and they must login to your website to use it, another option to consider is just having an "opt in to stats" button. When a user clicks that, you could just send their information to our API automatically and they'd be ready to start tracking their site in just a couple of seconds.