Sign in

Welcome.
How can we help?

Using Freespee with a store locator

Topic: , Updated:

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 Freespee 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 Freespee Dashboard.

Well done! You are now up and running, tracking calls coming in from your store locator map.

 

Getting Started

Was this article helpful?
0 out of 0 found this helpful

Comments


Not the answer to your question?

Powered by Zendesk