UPDATE: I do not recommend currently using Cloudflare because there seems to be a bug with how clicks through Cloudflare can be tracked.
I recommend finding another solution until this is fixed
One major change over the past year or so has been the importance of adding SSL to your domains. Whether you have a simple WordPress blog like this one or the best social media management tool on market, security is important and adding a SSL certificate is one way to secure your website.
Many traffic sources (such as ZeroPark) are beginning to require your domain accessible through https. Google is also factoring it into their search algorithm.
So, we recommend adding SSL to your custom tracking domain when setting it up on PeerFly. In my opinion, the best (and easiest) way to do this is by setting your domain up on Cloudflare before you add it to PeerFly. This will provide you with free SSL and it also makes it really easy to add the A Records required to use the domain on PeerFly.
Here is a guide on how to register register a domain from Name.com, set it up on Cloudflare, add your free SSL, and then setup the domain on PeerFly as a custom tracking domain.
Register Your Domain at Name.com
I register almost all of my domains through Name.com. Name is really easy to use, they have great prices, and they have a bunch of great TLDs you can choose from.
Head over to Name.com and enter the keyword for the domain you would like to buy. I use LPF for most of my tracking domains. The domain doesn’t really matter too much because in most cases, I have some sort of redirect in front of it. It’s just important to have a fresh domain that you aren’t using for anything else when setting it up as a custom tracking domain on PeerFly.
You can buy whatever domain you want for your custom tracking domain. From my options Name has given me, I’m going to go ahead and register LPF.ninja since it’s only $4.99.
I do not typically add the “Advanced Security + Privacy” from Name. It doesn’t seem necessary.
Checkout and pay for your domain.
Once you’ve paid for your domain, click on the Domain Details button for i and open a new browser tab so we can setup your Cloudflare account.
Add Your Domain to Cloudflare
Now that we have our domain, we need to set it up on Cloudflare. Creating a Cloudflare account is free and easy.
Sign up for Cloudflare and then add your site. Your site is your domain.
Select the FREE plan and confirm it.
Cloudflare will pull any DNS records already on your domain. There will be some defaults from Name.com that we can remove. Click the X to remove any DNS records already showing on the page.
Adding PeerFly’s A Records to Cloudflare
There are 3 A Records that we need to add from PeerFly to your domain’s DNS settings on Cloudflare. They are:
Adding these is easy. By default, Cloudflare will have adding an A Record selected so all you have to do is enter @ for the Name and then the IP next to it.
Once you add all 3 IPs as A Records, the page should look like this:
Click next and Cloudflare will instruct you to change your domain’s nameservers.
Using Cloudflare Nameservers on Name.com
Okay, now it’s time to open up the Name.com browser tab you should still have open with your Domain Details.
The page should look like something like that. Click on the Nameservers tab and we we’ll change the nameservers on your domain from name.com to cloudflare.com.
Depending on how long it’s been since you registered your domain, the nameservers showing on Name.com may not match the name.com nameservers that Cloudflare is showing you. This isn’t a problem. I would just remove the nameservers currently listed on your Name.com Nameservers tab.
Click Delete on all 4 and then we’ll add the Cloudflare nameservers in their place.
Once they’re deleted, click back on the Cloudflare browser tab and copy the first nameserver listed (there’s a copy button next to it).
Paste that nameserver in the box next to the button on the Name.com Nameservers page that says Add Nameserver. Click the button to save the nameserver.
Go back to the Cloudflare tab and copy the second nameserver and do the same thing you did with the first one (paste it and click to add).
Your page should now look something like this:
Click the Apply Changes button to save your new nameservers. Your Name.com account is all set now for your new domain, which will be managed on your Cloudflare account.
Go back to your Cloudflare account and click the blue Continue button. It can take up to 24 hours for Cloudflare to recognize that you change the nameservers, but they have a button to Recheck Nameservers. Click that and Cloudflare will check again.
If your site is still pending on Cloudflare, you will just have to wait for the changes to be completed. Come back to this guide once it is (Cloudflare will email you). It took about 10 minutes before my domain was active on Cloudflare and I got this email.
Adding Your Domain to PeerFly
Now that my domain is active on Cloudflare, I can add it to PeerFly. We already did the A Record setup, so you just need to add it to your Custom Tracking Domains page.
Open the Tracking Domains page and click on the Add A Domain tab. Type your domain in the box. You can ignore the “Used For Email” checkbox unless you plan to do email marketing.
Click the Save Domain button.
You may need to wait for PeerFly to automatically verify the domain information is correct. We know it’s correct because we setup the A Records, but we have to wait for the DNS propagation to complete.
You can check to see if it’s verified or not by clicking the refresh button on the Tracking Domains page on PeerFly.
It can take up to 24 hours for the propagation to complete and for PeerFly to be able to recognized and verify/approve your domain. Give it time though and it should work.
Possible Bug Fixes
In some cases, PeerFly will not recognize your A Records after 24 hours. In that case, please try clicking the orange clouds on Cloudflare next to your A Records. This will make it so Cloudflare is used for the DNS settings only.
Try verifying your domain again on PeerFly once all 3 clouds are no longer orange (they turn grey when you click them).
Once the domain is verified on PeerFly, you can click the clouds again to turn them orange. This is what will allow you to use https.
Use https with Your PeerFly Affiliate Links!
Good news! Once you have done everything about and given Cloudflare time to propagate your changes, you can start using your new custom tracking domain for promoting PeerFly offers and use https with your links!
Simply add https in front of your affiliate link (replacing http) and it should work fine. If it’s not working, contact me and I can try to help you sort out the issue.
Let’s make some money!
The post How to Add a Tracking Domain with SSL (https) to Your PeerFly Account appeared first on Luke Kling.