Our comprehensive analytics solution provides powerful insights into your website's performance, user behavior, and feedback. Here's what you can do with our platform:
Ready to unlock the power of data-driven decision making?
<head> section of your HTML page:<script defer data-domain="your-website.com"
src="https://feedlytic.vercel.app/tracking-script.js"></script>To track traffic sources, append ?utm=source to your URLs.
Example: https://your-website.com/?utm=facebook
const apiURL = "https://feedlytic.vercel.app/api/events";
const headers = {
"Content-Type": "application/json",
Authorization: "Bearer {apiKey}",
};
const eventData = {
eventName: "", // required
domain: "", // required
eventDescription: "", // optional
};
// using axios
const sendRequest = async () => {
axios
.post(apiURL, eventData, { headers })
.then()
.catch((error) => {
console.error("Error:", error);
});
};
// using fetch
const response = await fetch(apiURL, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer {apiKEY}",
body: JSON.stringify(eventData),
});Collect feedback using event tracking with a specific event name:
const apiURL = "https://feedlytic.vercel.app/api/events";
const headers = {
"Content-Type": "application/json",
Authorization: "Bearer {apiKey}",
};
const feedbackData = {
userName: "", // required
domain: "", // required
feedback: "", // required
rating: "",
};
// using axios
const sendRequest = async () => {
axios
.post(apiURL, feedbackData, { headers })
.then()
.catch((error) => {
console.error("Error:", error);
});
};
// using fetch
const response = await fetch(apiURL, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: "Bearer {apiKEY}",
body: JSON.stringify(feedbackData),
});Implement this code in your feedback form submission handler.