Skip to main content

Dynamic Number Insertion (DNI)

Josh Lamb avatar
Written by Josh Lamb
Updated over a year ago

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.

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>

Did this answer your question?