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.

Screen_Shot_2020-02-17_at_17.44.17.png

 

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

Screen_Shot_2020-02-18_at_11.08.42.png

 

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).

Screen_Shot_2020-02-18_at_11.43.33.png

 

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.

Screen_Shot_2020-02-18_at_19.19.39.png

 

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

Screen_Shot_2020-02-18_at_19.10.47.png

 

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.

Screen_Shot_2020-02-18_at_19.27.41.png

 

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 support@snapcall.io.