Load Visitor API
Copy and paste the following code snippet to your web pages which requires the visitor data.
Call Visitor API
You can then call Visitor API with the syntax below:
The function accepts three parameters:
Below is a full example of loading VisitoAPI and calling the API to output the visitor data in the console when the API call is successful, or to output the error code and error message when the API call returns an error.