This article is for Master Account holders.
Do you have a store locator on your website, and you would like to track calls there as well?
No problem, it can be done with Kaisa and the getNumber function available in our JavaScript.
So what needs to happen for the tracking to work in the map?
First of all, you will need to trigger the getNumber function when the infobox on the map opens. Then it is just a matter of passing in the correct data to the function.
__fs_dncs_instance.getNumber(
function(ref,res) {
ref.innerHTML=res.local;
},
phone,
phone.innerHTML,
'YourAPItag',
null,
'&custnr='+storeId+'&custname='+storeName,
null
);
The parameters that you will need to pass to the function are:
phone - This is the HTML element that contains the number.
'YourAPItag' - The API tag for your Master Account.
'&custnr='+storeId+'&custname='+storeName - This is where you will pass in the Account number and name of the particular store. The account number is the one you chose when creating the stores account in the Kaisa Dashboard.
Well done! You are now up and running, tracking calls coming in from your store locator map.
Comments
0 comments
Please sign in to leave a comment.