Skip to main content

Call Tracking

Affilync call tracking gives you sub-100ms attribution on every inbound call so you know exactly which campaign, keyword, or affiliate drove it.

1. Purchase a Tracking Number

  1. Go to Settings > Numbers > Buy Number.
  2. Choose a local, toll-free, or vanity number.
  3. Assign a number pool name (e.g., "Google Ads Pool").

You can also port an existing number under Settings > Numbers > Port Request.

2. Install the DNI Widget

Dynamic Number Insertion (DNI) automatically swaps the phone number displayed on your website with a tracking number, so every inbound call is tied to the source that drove it.

Get your ready-to-paste snippet from Call Settings → DNI Widget (it pre-fills your IDs), then add it just before </body>:

<script
src="https://call.affilync.com/api/v1/dni/widget.js"
data-brand-id="YOUR_BRAND_ID"
data-campaign-id="YOUR_CAMPAIGN_ID"
data-auto-replace="true"
async
></script>

That's it — by default the widget automatically swaps every tel: link on the page, so you don't have to tag each number. A link labelled "Call us" keeps its text; only its dial target changes.

AttributeDescription
data-brand-idYour brand ID (pre-filled in the snippet from your dashboard) — tracks calls on your own site
data-campaign-idThe campaign to attribute calls to (calls forward to that campaign's destination number)
data-auto-replaceAuto-swap every tel: link (default true; set false to only swap tagged elements)
data-selectorCSS selector for display-only numbers shown as plain text, e.g. a <span> (default [data-affilync-phone])
data-formatDisplay format: us, international, or e164
data-country-codeISO country for number selection (default US)

Numbers shown as plain text (not inside a tel: link)? Add data-affilync-phone to that element so it gets swapped too:

<span data-affilync-phone>800-555-1234</span>

The same number is shown to every visitor for a campaign, and the source (UTM, Google/Facebook click ID, referrer, landing page) captured at swap time is attached to the call when it comes in.

Affiliates: if you run an affiliate program, your affiliates install the same widget on their landing pages with data-affiliate-id (from their own dashboard) so calls they drive are credited to them.

Other ways to install (no code)

You don't have to edit your site's HTML — pick whichever fits your platform. In every case you only need your Brand/Affiliate ID and Campaign ID from Call Settings → DNI Widget.

  • Google Tag Manager — in GTM, import the Affilync DNI custom template (Templates → Import), add a tag from it, paste your IDs, set the trigger to All Pages, and publish.
  • WordPress — install the Affilync DNI plugin, activate it, then go to Settings → Affilync DNI and paste your IDs.
  • Shopify — in your theme, go to Online Store → Themes → Customize → App embeds, turn on Affilync Call Tracking, and paste your IDs.

Verify it's working

After installing, open any page on your site once (so the widget loads), then check Call Settings → DNI Widget — it shows Installed ✓ with the last time we detected the widget. You can also open your browser console and run:

document.querySelector('a[href^="tel:"]').href

It should point to your Affilync tracking number.

3. Configure IVR Flows

IVR Templates define what happens when a tracking number is dialed. Build interactive call flows using a visual drag-and-drop editor.

  1. Navigate to Call Settings > IVR Builder.
  2. Click New Template or edit an existing one.
  3. Drag and drop steps to build your flow:
Step TypeDescription
GreetingPlay an audio file or text-to-speech message
MenuInteractive DTMF menu ("Press 1 for Sales, 2 for Support")
TransferRoute call to a phone number or agent softphone
VoicemailRecord a message and email it to your team
HangupEnd the call
ConditionBranch logic based on caller data or previous actions
  1. Click Compile to validate your flow.
  2. Click Publish to activate the template.
  3. Assign the template to one or more tracking numbers.

4. Call Recording & Transcription

Enable recording per number or per call flow:

  • Settings > Numbers > [Number] > Recording: toggle on.
  • Recordings appear in Call Tracking > Call Log within 60 seconds.
  • AI transcription, sentiment analysis, and lead scoring are automatic on Pro plans and above.

5. Agent Softphone & Call Center

Answer calls directly from your browser with the agent softphone:

  • Live call transcription as the conversation happens
  • AI agent-assist with recommended talking points
  • Disposition codes to classify call outcomes
  • Supervisor monitoring (listen, whisper, or barge-in modes)
  • Real-time call quality metrics and AI coaching

Softphone access is available on Professional plans and above.

6. AI Caller Receptionist

Hand off calls to the AI receptionist to qualify leads automatically:

  • Answers calls using a natural voice
  • Asks qualifying questions based on your business context
  • Scores calls as qualified leads
  • Transfers qualified calls to agents or voicemail
  • Transcribes and analyzes conversations

Configure the AI Caller under Call Settings > AI Caller.

7. Local Presence (Geo-DNI)

Serve callers a tracking number in their own area code (Business+ and Agency tiers only):

  • Shows a local number that matches the caller's region
  • Improves answer rates and caller confidence
  • Tracks call source by geography

Enable under Call Settings > Local Presence.

8. Attribution & Reporting

Every call is tagged with:

  • Source (Google Ads, Facebook, affiliate link, organic, etc.)
  • Campaign & affiliate ID
  • Keyword (if integrated with Google Ads)
  • Caller location (city, state, country)
  • Duration, outcome, recording link, and transcription
  • AI sentiment (positive/neutral/negative)
  • Lead score (qualification confidence)

View call data in Analytics > Calls or export via CSV/API.

Next Steps