To track users on your website just send post request with your apiKey in request body to the following url: https://tracker-back-flax.vercel.app/record
example:
axios.post("https://tracker-back-flax.vercel.app/record", {
apiKey: //YOUR API KEY HERE
})
Here is example react code
const Track = async () => {
try {
const response = await axios.post("https://tracker-back-flax.vercel.app/record", {
apiKey: "vsZ+DDa5aoAcT3FZH2Z6wsStTcStkNG1lLNnugJnjgs="
});
return response;
} catch (error) {
console.error(error);
throw error;
}
};
useEffect(() => {
try {
Track();
} catch (error) {
console.log(error);
}
}, []);