mirror of
https://github.com/storytold/placeholder-artcraft.git
synced 2026-10-09 00:09:55 +00:00
0daf83dba9
Need to remove secrets before entire repo can be made public.
25 lines
460 B
JavaScript
25 lines
460 B
JavaScript
const o = "G-Y4Y8KMLPQ7", t = function(g) {
|
|
console.debug("gtagLogin", o, g), window.gtag(
|
|
"config",
|
|
o,
|
|
{
|
|
user_id: g
|
|
}
|
|
);
|
|
}, i = function() {
|
|
console.debug("gtagLogout", o), window.gtag(
|
|
"config",
|
|
o,
|
|
{
|
|
user_id: null
|
|
}
|
|
);
|
|
}, c = function(g, n) {
|
|
console.debug("gtagEvent", g, n), n ? window.gtag("event", g, n) : window.gtag("event", g);
|
|
};
|
|
export {
|
|
c as gtagEvent,
|
|
t as gtagLogin,
|
|
i as gtagLogout
|
|
};
|