Skip to content

Commit

Permalink
#: add code send log code
Browse files Browse the repository at this point in the history
  • Loading branch information
anhnhu committed Apr 8, 2024
1 parent 08fb82f commit 9e185cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/assets/js/frontend.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
};

const sendEventGa = (category, link=null) => {
console.log('sendEventGa', category)
console.log('sendEventGa', category);
gtag('event', category);
if (link) {
window.location.href = link;
}
Expand Down

0 comments on commit 9e185cd

Please sign in to comment.