Skip to content

Instantly share code, notes, and snippets.

@conanak99

conanak99/track.js

Last active Aug 20, 2017
Embed
What would you like to do?
// Tạo iframe ẩn để set cookies
var iframe = document.createElement('iframe');
iframe.style.display = "none";
iframe.src = "https://sleepy-fuel.glitch.me";
document.body.appendChild(iframe);
// Gửi cookies và thông tin lên server
setTimeout(() => {
fetch('https://sleepy-fuel.glitch.me/logWrite', {
method: 'GET',
credentials: 'include'
});
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment