删除巨量埋点
This commit is contained in:
parent
e82191a79a
commit
7ee00d18ee
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue