mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-23 17:31:11 +01:00
12 lines
385 B
TypeScript
12 lines
385 B
TypeScript
export const sendPv = (page: any) => {
|
|
if (localStorage.getItem('useStats') !== '0') {
|
|
window._hmt?.push(['_trackPageview', page]);
|
|
}
|
|
};
|
|
|
|
export const sendEv = (category: string, eventName: string, optLabel: string, optValue: string) => {
|
|
if (localStorage.getItem('useStats') !== '0') {
|
|
window._hmt?.push(['_trackEvent', category, eventName, optLabel, optValue]);
|
|
}
|
|
};
|