Skip to content

Setting up 1P Domain Tracking

Once you have subscribed to 1P Domain Tracking, you need to configure your domain settings depending on where your website is hosted.

  1. Go to the account for which you’ve subscribed to 1P Domain Tracking.
  2. Navigate to Settings → 1P domain tracking and click on + Add domain.
Add domain
  1. Add a Naked Domain by entering the domain name without http://, https://, or www and choose whether your website is a,
  • Shopify hosted website
  • Non-shopify hosted website
Add domain
  1. Click Next.

Depending on your website platform, choose the appropriate setup procedure below.


If your website/domain is hosted on the Shopify, follow these steps:

  1. After the naked domain is added, the subdomain is auto-populated with other necessary details.
Add domain
  1. Log in to your DNS (Domain Name System) provider, Verify the CNAME and SSL certificates.
  1. After the CNAME and SSL Certificate are added to your DNS provider, return to CustomerLabs and click Verify DNS to verify the domain.
Add domain
  1. After successful DNS verification, go back to the home screen.
  2. Click on the 1P Domain Tracking Code tab, and click on the Shopify card.
Add domain
  1. Continue with the steps mentioned in the Shopify installation to complete the set up.

Non-Shopify Websites (Custom-built or other platforms)

Section titled “Non-Shopify Websites (Custom-built or other platforms)”

If your website/domain is self-hosted, on WordPress, or any platform other than Shopify, follow these steps:

  1. After adding the naked domain, choose Non-Shopify.
  2. Click Next.
Add domain
  1. Add sub-domain for the CDN for the domain and click Next.
Add domain

This CDN can be managed in one of two ways:

  1. Managed Service – Cloudflare account managed by CustomerLabs (Recommended)
  2. Adding your own Cloudflare account

If you choose to use the Managed Service, you first have to verify that you are the owner of the domain before proceeding with the DNS migration to our Cloudflare network. (Note: Verification must be done within 7 days)

Add domain
  1. After verifying ownership of the domain in your DNS provider, click Verify DNS in CustomerLabs.
Add domain
  1. Once DNS verification is done, you will be prompted to enter an email address to provide access to the Cloudflare account. (Note: You can only choose an admin user’s email address from the drop-down)
  2. Click Save.
Add domain
  1. You will be sent an invite from CustomerLabs to access your Cloudflare account (If you don’t receive an email within 24 hours, please contact support@customerlabs.co)
  2. After accepting the Cloudflare invite, map the assigned name servers in your domain registrar.
Add domain
  1. Once the name servers are mapped, go back to the 1P Domain Tracking dashboard in CustomerLabs and click Verify now against the domain you recently added.
Add domain
  1. Finally, go to the CustomerLabs home screen, click the 1P Domain Tracking Code tab, and reinstall the tracking script on your website.
Add domain

Option B: Adding your own Cloudflare Account

Section titled “Option B: Adding your own Cloudflare Account”
  1. Click on the “Add your own Cloudflare” hyperlink during the setup.
Add domain
  1. You will be asked to enter your Cloudflare Account ID and API Token.
Add domain
  1. Log in to your Cloudflare account.
  2. Go to Websites → Choose your domain.
Add domain
  1. Click Overview from left sidebar. The Account ID can be found in the right-sidebar (as shown on screenshot below).
Add domain
  1. Copy the Account ID from the right sidebar and paste it into the Cloudflare Account ID field in CustomerLabs.

To allow CustomerLabs to manage Workers and DNS records on your Cloudflare zone, generate an API token with the correct permissions:

  1. Under the Overview tab, click on “Get your API token” on the right sidebar.
Add domain
  1. Click “Create Token” button.
Add domain
  1. From the list of templates, find “Edit Cloudflare Workers” and click “Use template”.
Add domain
  1. Click ”+ Add more” to add an additional Zone permission.
Add domain
  1. For the Zone permission, set DNS → Edit (required to create DNS records that link the Worker to your domain).
Add domain
  1. Under Account Resources, set Include → select the Cloudflare account you want to link.
  2. Under Zone Resources, set Include → Specific Zone → select the domain you are adding.
Add domain
  1. Click “Continue to Summary” to review the permissions.
Add domain
  1. Confirm the summary and click “Create Token”.
Add domain
  1. Copy the generated API token.
Add domain
  1. Paste the API token into the Cloudflare API Token field in CustomerLabs and click Save. You will be redirected to the 1P Domain Tracking dashboard.
Add domain
  1. After integrating your Cloudflare account, go back to the CustomerLabs home screen.
  2. Click the 1P Domain Tracking Code tab, copy the updated tracking code, and reinstall it on your website.
Add domain

You can check the “Verified” status in the 1P Domain Tracking dashboard in CustomerLabs to ensure that your DNS records are active and correctly mapped.

Add domain

To verify that 1P Domain Tracking is successfully installed and functioning, inspect the cookies set in your browser’s developer tools:

  • Before 1P Domain Tracking: The CustomerLabs cookie is set from the default tracking domain — io.v2.customerlabs.co — even for your own domain (e.g., example.com).
  • After 1P Domain Tracking: The CustomerLabs cookie will now be set directly from your own domain (e.g., www.example.com), confirming that all data collection is happening first-party.

You can verify this by:

  1. Opening your website in Chrome.
  2. Opening Website InspectNetwork tab.
  3. In the filter search bar, type /cl.
  4. Perform the activities and you will be able to see the events in the network tab.
  5. Under the headers, the request URL will be in the format of https://<sub-domain>.<your-domain>.com/<tracking-id>/cl instead of https://io.v2.customerlabs.co/cl.
Add domain