Kaisa Dynamic Numbers is a javascript (fs.js) for site owners who want to enable click-to-call analytics beyond the click. The javascript uses the URL and/or Referrer information to dynamically create and display phone numbers on a landing page.
Preferred method: Automatic number detection
With the automatic number detection method, you do not need to embed numbers in span tags or change your markup. If the automatic number detection fails to detect phone numbers on your page (which could happen in rare special cases), you may have to tag the number with a span tag. In that case, please refer to the section Tag your phone number under Alternative method: Manual number tagging below.
Copy and paste the code snippet
For this step, you will need access to the source code for your website. The code snippet will look just like the example below. Copy and paste your provided code into your web page, just before the closing </body> tag:
<script type="text/javascript">
var __fs_conf = __fs_conf || [];
__fs_conf.push(['setAdv',{'id':'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'}]);
</script>
<script type="text/javascript" src="//url/js/external/fs.js"></script>
Alternative method: Manual number tagging
With the manual number tagging method, you will need to embed your phone numbers in <span> tags.
Copy and paste the code snippet
For this step, you will need access to the source code for your website. The code snippet will look just like the example below. Copy and paste your provided code into your web page, just before the closing </body> tag:
<script type="text/javascript">
var __fs_conf = __fs_conf || [];
__fs_conf.push(['setAdv',{'id':'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'}]);
__fs_conf.push(['numberDetection', false]);
</script>
<script type="text/javascript" src="//url/js/external/fs.js"></script>
Tag your phone number
For the script to work, you must identify your phone number in the code on your site. This is done by adding a <span> tag with a specific class around your phone number. Use the below example to tag your phone number:
Call us now: <span class="fs-dynamic-number">0770-35 00 35</span>
Advanced features
All advanced features can be found in our tips and tricks section.
Number replacement in links and forms
Please see this article.
User defined span class name
Please see this article.
Event listeners
Please see this article.
Custom phone number formatting
Please see this article.
Phone numbers in images
Please see this article.
Force script load
Please see this article.
Connect to another phone number
Please see this article.
Disable automatic number detection
Please see this article.
Comments
1 comment
Hej Nils
jag har lite frågor ang dynamic number. Har du möjligheter att ringa till mig på 070-xxxxxxx.
Många tack på förhand
Hälsn Lena / Eniro
Article is closed for comments.