删除巨量埋点

This commit is contained in:
yezian 2025-02-18 18:42:37 +08:00
parent e82191a79a
commit 7ee00d18ee
1 changed files with 21 additions and 21 deletions

View File

@ -30,27 +30,27 @@ export default function Pay() {
}, []);
//
useEffect(() => {
const handleEvent = async () => {
const clickId = getCookie("clickid");
await fetch("/event/v2/conversion", {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
event_type: "in_app_detail_uv",
context: {
ad: {
callback: clickId,
},
},
timestamp: new Date().getTime(),
}),
});
};
handleEvent();
}, []);
// useEffect(() => {
// const handleEvent = async () => {
// const clickId = getCookie("clickid");
// await fetch("/event/v2/conversion", {
// method: "POST",
// headers: {
// "Content-Type": "application/json",
// },
// body: JSON.stringify({
// event_type: "in_app_detail_uv",
// context: {
// ad: {
// callback: clickId,
// },
// },
// timestamp: new Date().getTime(),
// }),
// });
// };
// handleEvent();
// }, []);
const [time, setTime] = useState(30 * 60 * 100);