To track calls on a WordPress, Squarespace or Shopify website, get tracking numbers from a call tracking tool and add its number swapping script to every page: with a plugin on WordPress, through Code Injection on Squarespace, and in the theme code on Shopify. The script shows each visitor a tracking number, so every call is tied to its source.
Call tracking for WordPress does not have to be complicated. A call tracking plugin does it in three steps and you never touch the theme.
This guide walks through the Nimbata WordPress call tracking plugin, then shows the manual setup for Squarespace and Shopify, which have no plugin. On all three, the result is the same: the phone number on your site is swapped when a visitor arrives, and you see which marketing sources drive calls and texts.
Before you start: get a tracking number
You need a call tracking tool first. This tutorial assumes you have a call tracking number from Nimbata or another system.
No tracking number yet?
You can get one by signing up with Nimbata for free. The video below shows how to pick a phone number with a local prefix that you can use straight away.
How to set up call tracking in WordPress with the Nimbata plugin
Install the plugin, connect it to your Nimbata account by pasting your DNI ID, and you are done.
Step 1: Install and activate the Nimbata plugin
Install the Nimbata Call Tracking plugin from your WordPress plugins directory:
- Click Plugins, then Add New.
- Search for Nimbata.
- Click Install Now.
- Click Activate.
Step 2: Copy your DNI ID from Nimbata
- In your Nimbata account, go to Lead Tracking, then Dynamic Number insertion.
- Copy the green part of the code at the top of the screen. That is your unique DNI ID.

Step 3: Paste your DNI ID in the plugin
- Paste the ID into the plugin’s field.
- Click Save Changes.
The plugin places the script just above the closing </body> tag, which is the ideal place for it.

What the plugin does: the number swapping script
The plugin adds one script to your site. It reads how each visitor arrived, then replaces the phone number on the page with a tracking number, either one per source or one per visit from a pool.
Squarespace and Shopify use the same script. Only the place where you add it changes:
How to track calls in Squarespace
Squarespace has no Nimbata plugin, so you add the number swapping script to the site yourself through Code Injection. As with WordPress, you first need a call tracking number from Nimbata or another call tracking tool.
Step 1: Open Code Injection
- In the Squarespace home menu, click Settings.
- Click Advanced.
- Click Code Injection.
Step 2: Copy your swapping script
- In your Nimbata account, go to Lead Tracking, then Dynamic Number insertion.
- Copy the code shown at the top of the screen.
Step 3: Paste the script in the footer field
- Paste the code into the Code Injection field for the footer.
- Save the change.
The footer field places the script just above the closing body tag, which is the ideal place for it. Once it is saved, calls from your Squarespace site are tracked with source numbers or a website pool, depending on how you set up your numbers in Nimbata.
How to track calls in Shopify
Shopify has no Nimbata plugin either. You add the number swapping script by editing your theme code, which takes three steps. You need a call tracking number from Nimbata or another call tracking tool before you start.
Step 1: Open your theme code
- From your Shopify admin, go to Online Store, then Themes.
- Click the three dots (…) and choose Edit code.
Step 2: Open the theme.liquid file
In the list of theme files, open theme.liquid.
Step 3: Add the swapping script
- In your Nimbata account, go to Lead Tracking, then Dynamic Number insertion.
- Copy the code shown at the top of the screen.
- Paste the code directly under the closing head element in theme.liquid.
- Click Save.
Your store is now ready to track calls. If you make a mistake while editing the theme, Shopify lets you roll back the changes you made to the code.
What you see once the script is live
From here on, every call from the site arrives in your call tracking account with the source behind it. A report like this one replaces “the phone rang 110 times last month”:
Takeaway
The setup in short:
- WordPress: install the Nimbata plugin and paste your DNI ID. No code to edit.
- Squarespace: paste the script in the footer field of Code Injection.
- Shopify: paste the script in theme.liquid and save.
More advanced users may prefer to add call tracking through Google Tag Manager. On WordPress, the plugin gets you the same result in fewer clicks.
FAQ: track calls in WordPress
What is call tracking for WordPress?
Call tracking for WordPress shows visitors to a WordPress site a tracking number in place of the business’s phone number, so each call is logged with the marketing source that brought the visitor. It tells you which channels, campaigns and keywords make the phone ring.
Why should I track calls on my WordPress website?
Without call tracking, phone leads from your site look the same whatever brought them. Tracking calls shows which channels, campaigns and keywords produce calls, lets you work out the return on each campaign, tells you how long calls last and where callers are, and lets you count calls as conversions next to form fills.
Can I use a call tracking WordPress plugin instead of code?
Yes. WordPress site owners can use the Nimbata Call Tracking plugin, with no need to place code in the footer by hand or use Google Tag Manager.
What can I do with the Nimbata Call Tracking plugin for WordPress?
The plugin adds Nimbata’s dynamic number insertion (DNI) script to your site. The script swaps your site’s phone number for one of your Nimbata tracking numbers, and when a visitor calls, Nimbata ties the call to the source, session or campaign you set up in the app. Setup takes a few minutes, and you need an active Nimbata account.





