Articles on: Dynamic Number Insertion (DNI)

How do I set up Swap Groups?

Mastering Dynamic Number Insertion with Swap Groups


To get the most accurate insights from your marketing, Nimbata needs to know exactly which phone numbers on your website should be replaced with tracking numbers. This is where Swap Groups come in.


A Swap Group tells the Nimbata JavaScript snippet precisely which "target" number to look for on your site and which tracking pool to swap it with. This is particularly useful if you have multiple departments (like Sales and Support) or different regional offices on the same page and want to track their performance independently rather than lumping all your data together.


How it works


When you set up a Swap Group, Nimbata’s code automatically detects your original number in various formats, such as (555) 123-4567, 555.123.4567, or 555-123-4567, and dynamically swaps it for a tracking number the moment a visitor lands on your site.


Follow the guide below to learn how to acquire your numbers and configure your first Swap Group in Nimbata.



Getting your tracking number


It is pretty easy to acquire tracking numbers, in fact it will only take you a few minutes. Just follow the steps bellow:


Step 1. Go to Tracking > Numbers and select the channel type of channel(s) you wish to track:



Step 2. Select your preferred number type (Toll Free or Local & National) and calculate the amount of numbers you need.



Step 3. On the pop-up window, insert the number of peak visitors on your website and let the calculator generate the size of your tracking number pool. Click on 'Use pool'.



Step 4. Make sure the recommended tracking number pool is displayed next to 'Quantity'. Then, fill out the rest of your number preferences and click on 'Finish'.



Setting up a swap group


**Step 1. **If you haven’t done it already, go to Tracking > Call Flows, click on '+ Add' and create one call flow for each phone number that appears on your website.




Is this your first time creating a call flow? Then, follow our step-by-step guide on call flows: https://help.nimbata.com/en/article/using-the-call-flow-builder-1731pv5/


Example of what a call flow may look like:



Step 2. When you are done, go back to Tracking > Numbers and assign your numbers to the corresponding call flows.



Step 3. Go to Tracking > Tracking Code. Click the button that says '+ Add swap group' and create as many groups as you need.


Step 4. Then add each number that appears on your website to each group and assign at least one tracking number to each one. Hit 'Save & Publish'.




Step 5. All you need to do now is copy the tracking code generated above and add it to your website.



And there you have it. Swap number groups ready to go. This is the end result on our own website. As you can see in the images below, the original numbers have been replaced by the call tracking ones.

Updated on: 09/03/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!