Skip to main content
All CollectionsAPI Integrations
Cloudflare API Integration
Cloudflare API Integration
Updated yesterday

You can use a dedicated test domain or a custom domain as a tracking domain. A custom domain allows you to track traffic independently of other users, while a test domain is used by everyone and can be banned at any time.

There are two ways to add a domain to the tracker: standard (manual) or via API integration.

Adding a Custom Cloudflare Domain via Integration

Setting up a custom domain on the Cloudflare side

Go to your Cloudflare account and prepare your own domain, for example, exdomain.com

Creating an integration in PeerClick

1. Go to the Integrations section.

2. Click on the Cloudflare icon.

3. Enter your Cloudflare API key (token).

1. Go to your account settings.

2. Go to the My Profile section.

3. Go to the API Tokens section.

4. Click the Create token button.

5. Opposite the Edit zone DNS field, click the Use template button.

6. In the Zone Resources field, select All zones if you want to allow access to all DNS zones, or select Specific zone and specify the allowed DNS zones.

7. Save changes.

8. Click the Create Token button.

9. Copy your API key and paste it into the corresponding PeerClick settings field.

4. Save changes.

Adding a custom domain to PeerClick

1. Go to the Settings section.

2. Go to the Domains section.

3. Click the Add domain button. The settings window will appear:

4. Select a domain that has already been added on the provider side.

5. Specify the subdomain that will be added to the domain.

6. Save the changes.

The new domain record with the subdomain will appear in the list of domains on the Cloudflare side and in the tracker's list of domains.

Did this answer your question?