Connect Cloudflare and create a webspace
- Open Landings → Create, choose Hosted, then click Connect Cloudflare.
- Authorize access in the Cloudflare window, return to the landing editor and choose Cloudflare account.
- Select a Webspace, or enter Webspace name and click Create webspace. If you already have webspaces, choose + Create webspace first.
- Wait for setup to finish. If Cloudflare asks you to activate R2 storage, enable it in that account and click Retry setup.
/. A custom domain can belong to only one webspace.
If Metricanic loses access to Cloudflare, click Reconnect and authorize the same accounts again, including every account that has webspaces. Your webspaces, domains and landings are kept.
Cloudflare bills hosting usage to your account, and protected pages count toward your Workers usage. Check Cloudflare’s billing and limitations before sending campaign traffic.
Prepare and upload a page
Upload one.html or .htm file, or a ZIP with index.html at its root. Include the page’s local styles, scripts, images and fonts. Text files must use UTF-8.
_worker.js, _redirects and _headers are not. ZIP files must be unencrypted. File paths can use Latin letters, numbers, spaces, underscores, hyphens and periods. Hidden files and paths that differ only by case are rejected.
Before uploading:
- Use relative links for local files, such as
images/product.webp. URLs built in JavaScript are not adjusted to the landing’s path. - Remove
<base href>and Content Security Policy meta tags. - Remove
integrityfrom local stylesheets, including style preloads, or they will not load. Keep it for CDN files.
Connect offer buttons
Use/click for an offer button:
/click links to your offers. Without it, the page is published without tracking and /click does not work. Do not add another Metricanic script to the uploaded files.
For buttons created by JavaScript, events sent from the page and other custom code, see Tracking script functions.
Send traffic through the campaign’s Tracking link, or its Traffic URL for Direct Script Mode. The page address alone does not identify a campaign.
Choose an address and publish
- Choose Landing domain and enter a Path, such as
/summer/. - To use your own hostname, click Connect domain, enter an unused Subdomain, choose its Zone, then click Connect domain. Wait for it to appear in Landing domain.
- Set up Landing protection and Block known bots if needed, then click Publish & Save.
- After publication completes, select the landing in a campaign’s Landers & Offers path and add an offer.
- Open the campaign’s Tracking link and check the visit and offer click in your reports.
/summer/ opens the same page on each of them. Paths in one webspace cannot overlap. A landing at / takes the whole webspace, and /summer/details/ is unavailable while /summer/ is used. Your hosting hostname must differ from your tracking hostname.
The Path cannot be changed after the first publication. To use another path, select the landing in Landings, click Duplicate, set the new path and click Publish & Save.
Change or disconnect a domain
To move campaign traffic to another domain, select a connected Landing domain and click Save. Campaigns using the landing switch to the new address without republishing, and the landing keeps its statistics. The old domain keeps serving the page until you disconnect it with the trash icon in Landing domain. A domain cannot be disconnected while saved landings use it, including unpublished ones. The error lists those landings. Restore archived landings before changing their domain. Theworkers.dev address cannot be removed.
Deployment conflicts
Manage hosted landings only in Metricanic. Changes made to the hosting Worker in Cloudflare cause a deployment conflict. If an error reports one, expand Resolve deployment conflict and follow its steps.Landing protection
Turn on Landing protection for a landing reached through 302 Redirect Mode. The page then opens only through your campaign’s tracking link. No PHP file is needed. Without a valid key the page returns404. A landing address copied from the browser also returns 404 after 10 minutes or in another browser. Every HTML page needs the key in its URL, so plain links between HTML pages of a protected landing return 404. Images, scripts and styles stay accessible.
Leave it off for the first page of Direct Script Mode. See Landing protection for what this check covers.
Changing Profile → Security → LP protection key also updates your webspaces. While the editor shows Landing protection key update pending, protected pages may reject new tracking links. Fix the reported problem, then click Retry protection update. If the error asks you to republish, click Publish & Save for a landing in that webspace.
Block known bots
Block known bots blocks bots verified by Cloudflare, such as search engines, link previews and ad platform crawlers. Other automated traffic is not blocked. Ad platforms that cannot check the landing may reject its ads. Turn it on and click Save. No republishing is needed. The block covers the landing on all custom domains of its webspace. It is unavailable when Landing domain is theworkers.dev address.
If Save asks you to reconnect, click Reconnect, allow access to security rules, then click Save again.
Metricanic adds custom rules named Metricanic: Block known bots to the Cloudflare zone of each custom domain. They count toward the zone’s custom rule limit together with your own rules, and the Free plan allows 5. If no rule is available, the change is rejected. Delete an unused rule in Cloudflare or turn the setting off for some landings.
Disconnecting Cloudflare does not remove these rules. Turn off Block known bots first, or delete the rules in Cloudflare afterwards.
Edit and restore
Use the arrow beside the main button to switch between Save and Publish & Save.- Save applies changes to Name, Country, Landing domain and Block known bots without republishing. An unpublished landing stays unpublished.
- Publish & Save publishes changes to files, Add Direct Tracking, Tracking domain and Landing protection.
Unpublish or archive
Click Unpublish at the bottom of the landing editor and confirm. The page goes offline, its files and history are kept, and another landing can use its path. Click Publish & Save to publish it again. A landing cannot be unpublished while a campaign or rotator uses it, including disabled paths and archived rotators. Remove it from them first. To archive a hosted landing, unpublish it first, then choose Archive in Landings. Restoring an archived landing does not publish it.Limits
File sizes include the tracking script and link changes added during publishing. Unpublished and archived landings do not count toward the webspace limits. When a webspace is full, create another Webspace for new landings.