Skip to content

Commit

Permalink
feat(track): Delay sending track messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoli committed Dec 14, 2018
1 parent d2d41b8 commit f29aab6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/helpers/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ const track = (options) => {
image.src = `${BASE_URL}?${params}`;
};

export default track;
export default (options) => {
setTimeout(() => {
track(options);
}, 1000);
};

0 comments on commit f29aab6

Please sign in to comment.