Skip to content

Call tracking

Call tracking tells a workspace which visits lead to phone calls. It gives each kind of traffic its own pool of Twilio numbers, and on a Digize site it swaps the business’s printed number for one from the pool of the visit’s channel. A call to that number is then tied to the visit: its channel, its landing page and campaign, and the visitor’s other visits. Nothing needs to be installed on the site.

In CRM › Settings › Call tracking, the workspace:

  1. Tags each tracking number with a source, such as “Google Ads” or “Yard signs”. A number used offline, on a flyer say, is tracked by its source alone and never shown on a site.
  2. Puts numbers in a channel’s pool to show them on its sites: paid, search, social, AI, email, referral or direct, the same channels the Analytics pages use.
  3. Names the business numbers printed on its sites, which the pool’s numbers replace.

Calls to every tracked number are reported by source, with the visit behind each one when there is one.

Once a workspace has a pool and a number to replace, every HTML page of its sites with full tracking gets a small inline script in its <head>, carrying the page’s CSP nonce when the page’s policy has one. Once a visit, the script asks Digize for a number, and then:

  • Text. Wherever the business’s number appears in the page’s text, its digits are swapped one by one for the tracking number’s, so the page’s own formatting stays: (512) 555-0100, 512-555-0100, 512.555.0100, 5125550100 and +1 512 555 0100 all keep their look. A North American number matches with or without its leading 1, and other countries’ numbers match in full or written with a national 0 in place of the country code (020 7946 0000 for +44 20 7946 0000). Text in <script>, <style>, <textarea>, <noscript> and <template> is left alone.
  • Links. tel: links that dial the business’s number dial the tracking number instead.
  • Content added later. Numbers a page renders after it loads, such as a footer a client-side app draws, are swapped as they appear during the page’s first 15 seconds.

Where nothing matches, nothing changes, and a page whose visit gets no number (its channel has no pool, say) shows the business’s own.

The visit keeps its number in sessionStorage under digize:n, and Digize keeps it for that visit for 30 minutes after the last page that asked, so the number stays the same from page to page. A page opened with less than 10 minutes left asks again to keep it.

The script asks with POST /_platform/calls/number on the site’s own hostname, sending the page’s address and its referrer as JSON. Digize works out the visit’s channel the way the Analytics pages do (UTM tags first, then ad click ids, then the referring host), reads the visitor and session ids from the site’s first-party cookies, and answers with the number and when its hold on it lapses, or null:

{ "number": "+15125550177", "until": 1793462400000 }

The path takes requests only from the site’s own pages, is rate limited per address like the analytics beacon, and is answered by Digize before the site’s Worker runs, so a site can’t define a route of its own there.

  • A visitor’s browser. A browser that sends Global Privacy Control, or that has localStorage["digize:ignore"] = "1" (the opt-out the tracker honours too), keeps the page’s own number and asks for nothing.
  • A page. Answer with the header x-digize-tracking: off, which also keeps the tracker and the visitor cookie off that page.
  • A site. Set its tracking to Requests only or Off in Analytics › Settings; only sites with full tracking get the script.
  • The workspace. Take every number out of the pools, or clear the printed numbers, in CRM › Settings › Call tracking.