Skip to content
loomark

How to set up a tracking subdomain and campaign parameters in Loomark

Point go.yoursite.com to Loomark with a CNAME, create a tracking campaign, fill the parameter table with presets and Sub IDs, and pass values with macros.

Published 10 min read

How to set up a tracking subdomain and campaign parameters in Loomark

Clicks in Loomark go through a subdomain of your own website, not through a shared tracker domain. The click is recorded, gets its own id, and the visitor continues to the landing page. This guide covers the subdomain, the campaign and the parameters that make the report useful.

It is a hands-on guide: what to click, what to paste into the ad account, and how to check each step before real money goes through it. Plan for about an hour for the first brand, most of it waiting for DNS. Every next campaign takes a few minutes.

Why a subdomain of your own website

  • It looks like your brand. A person who hovers over the link, or a reviewer at the ad platform, sees go.example.com, not an unknown tracker address.
  • It is first-party. The click is recorded on your own domain, and if you ever decide to switch on the optional mk_cid cookie, it is set on your website’s domain, not a third party’s.
  • It keeps brands apart. Each website gets its own tracking subdomain, so campaigns, clicks and reports of one brand never share an address with another.
  • It survives a change of vendor. The links in your ads belong to your domain. If you point the subdomain elsewhere one day, you change one DNS record, not every ad.

1. Connect the tracking subdomain

Pick a subdomain of the website the ads lead to, for example go.example.com for example.com. It has to share the root domain with the website, and it can be connected only once.

  1. Step 1Tracking → Domains → Connect domain. Enter the subdomain and choose the website.
  2. Step 2At your domain registrar, create a CNAME record for the subdomain with the value shown in the DNS setup block.
  3. Step 3Wait for the certificate: it is issued automatically. On your own server Loomark issues it on the first request to the subdomain.
  4. Step 4Press Check. Loomark opens https://<subdomain>/.well-known/markom-tracking; when the answer matches, the status changes from “Waiting for DNS” to “Connected”.

The subdomain serves campaign links at /<slug>, events at /e, visits without a redirect at /v and a CRM postback at /postback. The root and any unknown address redirect to your website, so a mistyped link never ends on an error page.

When the check fails

  • The CNAME is on the wrong name. Most DNS panels want only go in the name field, not go.example.com — otherwise you get go.example.com.example.com.
  • The subdomain already has an A record or another CNAME. A name can have only one CNAME and nothing else; remove the old record first.
  • DNS has not spread yet. Changes usually show up within minutes, but can take longer with a high TTL. Wait and press Check again.
  • A proxy in front of the domain answers instead of Loomark. If your DNS provider proxies traffic, make sure requests to the subdomain reach the CNAME target and the check path is not blocked.

If the check fails, the last error is shown next to the domain. More details are in Tracking domain.

2. Create a tracking campaign

  1. Step 1Tracking → Campaigns → New campaign. Choose the brand, the tracking domain and the traffic source: Google Ads, Meta, TikTok, LinkedIn, Microsoft Ads, ChatGPT Ads, email, SMS, affiliate or other.
  2. Step 2Enter a name and a slug — Latin letters, digits and hyphens, 3 to 64 characters. The slug becomes part of the link: go.example.com/<slug>.
  3. Step 3Choose the mode and the default landing page (https, on one of your website domains).
  4. Step 4Save and copy the lines Loomark generates for the ad account.

If your ad accounts are already synced, “From ad campaigns” creates tracking campaigns for the ad campaigns that have none, with slugs from their names and a link to the ad campaign. A slug can be changed later without breaking live ads — the old one keeps working.

Which mode to choose

ModeWhen to use it
RedirectMeta, TikTok, LinkedIn, Microsoft Ads and others. The click goes through the subdomain, a flow picks the landing page, the website receives mk_cid
Parallel trackingGoogle Ads. The visitor goes straight to the website, Google calls the tracking template in the background. Works with Shopping without touching the feed
RedirectlessCatalogue and shopping ads, or wherever a redirect is not allowed: the ad links to the website with mk_c=<slug>, and the website registers the click

Google does not allow a tracker redirect as the final URL, so Loomark does not offer the redirect mode for Google Ads. In parallel mode the background call is sent only to {lpurl}, the landing page from the ad, and flows are not used.

A naming scheme for several brands

Slugs are unique within your organisation, and they end up in every report. A simple pattern saves a lot of filtering later: brand, channel, purpose, market. A made-up example for three brands:

SlugWhat it is
novaline-search-deNovaline, Google search, Germany
novaline-pmax-deNovaline, Performance Max, Germany
orbitex-meta-prospectingOrbitex, Meta, new audiences
velora-tiktok-launchVelora, TikTok, product launch
Loomark tracking campaign: Google Ads tracking template, Final URL suffix and linked ad campaign cost
The lines to paste into Google Ads, generated for the campaign

3. Fill the parameter table

The parameter table says what each link parameter means. Each row has a meaning (keyword, ad campaign ID, ad group ID, ad ID, placement, click cost, currency, source click ID or a Sub ID), the name of the parameter in the link, and a token — a platform macro or a fixed value. Loomark builds the ad account lines from this table and fills the report from the clicks.

When you create a campaign, the table is pre-filled with a preset for its traffic source:

SourcePreset fills
Google Ads{keyword}, {campaignid}, {adgroupid}, {creative}, {network}; Sub IDs {matchtype}, {device}, {placement}, {targetid}
Meta{{campaign.id}}, {{adset.id}}, {{ad.id}}, {{site_source_name}}; Sub IDs {{placement}} and campaign, ad set and ad names
TikTok__CAMPAIGN_ID__, __AID__, __CID__, __PLACEMENT__ and names
LinkedInCampaign group, campaign and creative ids, account id
Microsoft Ads{keyword}, {CampaignId}, {AdGroupId}, {AdId}, {Network}, {MatchType}, {Device}
Affiliate{clickid} as the source click ID, {source}, {cost}, {sub1}…{sub3}
  • Add up to 30 Sub IDs of your own and give them names that make sense in reports, such as “Placement” or “Audience”.
  • An empty token keeps the parameter out of the generated link, but it is still accepted if the platform sends it.
  • Sub IDs are available in the report as dimensions.

A note on LinkedIn: what LinkedIn calls a “campaign” is an ad set elsewhere, and the campaign group plays the role of the campaign. The preset maps them that way, so LinkedIn reports line up with Google and Meta.

What to put into the ad account

After saving, Loomark shows ready lines for the platform. For Google Ads in parallel mode there are two: a tracking template and a final URL suffix. The template carries {lpurl} and the click ids, followed by the parameters from your table:

Tracking template
https://go.example.com/novaline-search-de?lpurl={lpurl}&gclid={gclid}&gbraid={gbraid}&wbraid={wbraid}&…
Final URL suffix
mk_c=novaline-search-de&utm_source=google&utm_medium=cpc&utm_id={campaignid}

Paste both at campaign level, or at account level if one tracking campaign covers the whole account. For Meta in redirect mode the ad gets the link https://go.example.com/<slug> as the website URL and a separate line for the URL parameters field, with UTM tags and the campaign, ad set and ad ids. Affiliate traffic gets a link with the network’s click id and a hint for the postback.

4. Pass values to the landing page with macros

The landing page address can contain macros that Loomark fills on the click. For example, to hand the click id and the keyword to a form on the landing page:

Landing page URL
https://example.com/offer?sub_id={subid}&kw={keyword}&geo={country}
MacroValue
{subid}, {sub_id}, {mk_cid}, {click_id}The Loomark click id
{campaign_id}, {campaign_slug}, {flow_id}, {landing_id}The tracking campaign, flow and landing page
{keyword}, {external_id}, {ad_campaign_id}, {ad_group_id}, {creative_id}, {source}Values from the parameter table
{sub_id_1} … {sub_id_30}Your Sub IDs
{country}, {device}, {os}, {browser}, {language}What Loomark detected for the click

Values are URL-encoded. Unknown names in braces are left as they are, because real addresses sometimes contain braces.

Macros are useful when the landing page needs to change something on the fly — show a country-specific phone number, prefill a hidden field, or pass the click id to a form builder that does not read the address itself. You do not need a macro for mk_cid in redirect mode: Loomark adds it to the landing page address anyway, together with the original parameters of the click.

Where the cost in the report comes from

Clicks and conversions are only half of the picture. Each tracking campaign has a cost setting:

SettingWhere cost comes from
From the ad accountDaily spend of the linked ad account campaigns from the Advertising sync, split between the human clicks of that day
Cost modelCPC, CPuC (per unique click), CPM, CPA, CPS or RevShare (% of revenue) with your rate
From the linkThe platform passes the click cost in the “Click cost” parameter
Don’t calculateCost and ROI are not shown

For paid social and search, “From the ad account” is usually the right choice. Link the ad campaign in the tracking campaign’s card; Loomark also suggests ad campaigns it found in clicks by the campaign id in the link. If cost comes from the ad account but nothing is linked, cost stays zero — the card warns about it. Spend in another currency is converted at the ECB rate of the day.

5. Check and go live

  1. Step 1Open the campaign link yourself and look at the Clicks tab: the click, its mk_cid, the platform click id, geo and device.
  2. Step 2Make sure the website keeps mk_cid with the lead or order — see Passing mk_cid to the order.
  3. Step 3Send a test event from an event source and find it on the Events tab marked “test”.

From there the Report tab groups clicks, leads, sales, revenue, cost and ROI by up to three dimensions — campaign, flow, landing page, keyword, Sub ID, country and more. See also Tracking campaigns and slugs and Flows and landing page A/B tests.

Loomark tracking report: clicks, leads, sales, revenue, cost, profit and ROI per campaign
Tracking report: clicks, leads, sales, revenue, cost, profit and ROI per campaign

A short pre-launch checklist that catches most problems:

  • The domain shows “Connected”, and the campaign link opens the right landing page over https.
  • For Google: auto-tagging is on, and both the tracking template and the final URL suffix are saved at the level where the ads will use them.
  • A test click shows the platform click id. A click opened by hand will not have one — that is expected; use the ad preview or a real click to see it.
  • The landing page keeps the parameters. Some websites redirect http to https or add a trailing slash and drop the query string on the way; mk_cid must survive that.
  • The website saves mk_cid with the order or lead, and a test event shows up on the Events tab.

Common mistakes

  • The tracking subdomain belongs to a different root domain than the website. It will not connect.
  • The landing page is on another domain than the website the tracking domain was connected for. Loomark only redirects to https pages on your organisation’s website domains.
  • The Google tracking template is pasted, but the final URL suffix is not, so the website never sees mk_c.
  • A redirect link is used for Google Ads as the final URL. Google rejects it; use parallel tracking.
  • Bots are expected to get a different page. They do not: bots and platform crawlers get the same landing page as people and are only marked in statistics. Anything else would look like cloaking to Google and Meta.

Questions we get a lot

Can several brands use one tracking subdomain?
A tracking subdomain is connected for one website, and the website belongs to a brand. Give each brand’s website its own subdomain, such as go.novaline.example and go.orbitex.example, and each brand’s clicks and reports stay separate.
Can I rename a slug after the ads are live?
Yes. The old slug keeps working, so live ads do not break.
What happens if I delete a tracking campaign?
Its link stops recording clicks but still leads to the website, so nobody lands on an error page.
Does the tracking domain set cookies?
Not by default. A first-party mk_cid cookie can be switched on per domain; in parallel tracking mode it is never set.
Do I need a macro for the click id?
Not in redirect mode: Loomark adds mk_cid to the landing page address itself. Macros are for when a form or script on the page needs the value under another name.
Where do I see Sub IDs?
In the Report tab as dimensions, under the names you gave them in the parameter table.

Next: Why send conversions to ad platforms server-to-server →

More articles

All articles

See it on your own campaigns

Request a demo and we will walk through the route from brief to ROAS with demo data.