Skip to main content

Info: Dynamic Number Insertion (DNI)

What is DNI? How do I set this up? What does it do? Find answers to all of these questions and more on the next episode of Liine Ball Z!

Written by Josh Lamb
Updated today

Overview

Liine's Dynamic Number Insertion snippet will display our tracking numbers on top of the phone number that is hardcoded on your website.

Our mighty little snippet does way more than just display tracking numbers, though. We've combined a little bit of JavaScript with a whole lot of Liine magic to bring you some amazing Marketing Channel data for your phone calls and form submissions.

How does our DNI work?

Our DNI snippet allows us to provide you with the best possible marketing attribution in the multiverse (we've checked this). Every web visitor has session data (also known as cookies) that tracks the websites they've visited. Having our snippet on the website allows us to place a tracking number from our pool of website numbers, and sniff out a guests session data.

Once a visitor makes a call to one of our website tracking numbers or submits one of our forms, our DNI snippet works its magic to send us some helpful data.

We'll receive the page the visitor last visited before navigating to your website, as well as the page they landed on allowing us to assign accurate marketing attribution. We'll then display this information in a few easy to access sections of your Liine dashboard.

Installation

Liine's DNI can be installed by adding our snippet (example) to your website's HTML, or by adding it to Google Tag Manager. Our implementation team will send you a personalized version of the snippet for you to use.

HTML

  1. Copy your custom DNI Snippet and paste it before the closing </head> tag of your website's HTML.

  2. Sit back and watch the marketing data roll in!

Our snippet doesn't require much maintenance. Just make sure it's not removed inadvertently by any future website updates (and don't feed it after midnight).

Google Tag Manager

  1. Open Google Tag Manager and navigate to the container/domain for the site we will be adding our snippet to.

  2. Click the Add a new tag option.

  3. Name your tag Liine DNI, or something similar.

  4. Click on the Tag Configuration box, and then select Custom HTML from the sidebar that appears on the right (you may have to scroll).

  5. Copy your custom DNI Snippet and paste it into the HTML box within Google Tag Manager.

  6. Scroll down and click on the Triggering box, and set the script so it fires on all pages of your website.

Example DNI Snippet (DO NOT USE):

<script defer type="text/javascript" src="https://analytics.liine.com/v1/analytics.js"></script>
<script type="text/javascript" id="">
window.__liine_queue=window.__liine_queue||[];
window.__liine_queue.push(function(){
Liine.init("EXAMPLE_DNI_SNIPPET_DO_NOT_USE")
});
</script>

FAQ


We get it, building something special can be something completely new. That's why we've compiled a list of some of the most common questions below. Don't be worried if you don't see an answer to your question below. Message your customer success manager or our support team (support@liine.com) for help!

Why do the numbers keep changing?

Our number pools are designed to show each visitor a different phone number from our pools that corresponds to their unique web session. From a guests web session we gather information that allows us to assign accurate marketing information within your dashboard. Thus, giving your team the most accurate data possible!

How do I know if this is working?

The best way to tell if our DNI is working properly is to look for you practices main phone number on your website. If you see your number something isn't right! Our DNI should swap over your main phone number across the entire website. So how do you fix this? Send an email to our support team (support@liine.com), and we'll get you a solution as fast as possible!

Why do I see my main number before seeing a random number?

Our tracking code snippet is designed to swap over your main number with one of our numbers within a few seconds! Sometimes it happens so quick you don't even realize it happened. That said, the swap will happen as fast as your website lets it happen. If there are other resources/scripts prioritized on your site this can delay the swap speed. We recommend reaching out to your website team, and having them prioritize our snippet to be the first (or one of the first) scripts within the <head> tag of your website.


Did this answer your question?