How to set up a test for receiving context data?


Using SnapCall with your PBX? You can still have customers' data collected and displayed in your SnapCall dashboard. 😉

To receive information like the customers' first and last name, their email address, phone number, or any other additional information, the extraContext function has to be added to your code. Here’s a link to our documentation, explaining how to receive customer’s data in your SnapCall dashboard.


However, you might want to test how it works first. Here's a step by step guide how to do it:

1. To run a quick test, you'll only need a Google Chrome extension called Custom JavaScript for websites. This tool allows you to inject and run custom javascript on any website. This way, you can run a test without making any changes to the actual code of your website.

Download this extension here by pressing Add to Chrome.



2. Once the CJS extension is installed, it should appear near your other extensions close to the URL bar.



3. Go to SnapCall's documentation on how to receive context in your calls and copy the code provided on the right (keep in mind all the cotextual information is just an example and you can change the values of id, fn, ln, e).



4. Go to your website and click on the CJS extension. Paste the JavaScript code snippet that you just copied from the documentation, delete the symbols as shown in the picture below and click Save.



5. Launch a call from the button on your website.



6. Once the call is finished, you will it in the dashboard's Calls section, under History. When you click on the call that you just launched from your website, you'll see the contextual information in the EXTRA field below the recording.



That's it! 👍If you put extraContext function into the source code of your website, you'll be able to find information, such as customer ID, their first and last name, email address or phone number directly in your SnapCall dashboard.


How do I start with SnapCall?

SnapCall provides you an opportunity to try our technology entirely free for 14 days. Create an account and start your free trial. In case you need any assistance, reach out to our team via