import { Vector2 } from '../types/Vector2'; import { Vector3 } from '../types/Vector3'; import { Vector4 } from '../types/Vector4'; import { Color } from '../types/Color'; import { createFromHandle } from '../types/HandleRegistry'; import { inv, rai, raf, ras, rav, pvi, pvf, pvv, pvii, pvfi, _h, f, int, uint, float, Hash, u8, u16, u32, u64, i8, i16, i32, i64 } from '../types/NativeAliases'; export class GoogleAnalytics { /** * @param pageName */ static pushPage(pageName: string): void { inv('0xD43A616AE3AC4EF6', pageName); } /** * @returns */ static endEvent(): boolean { return !!inv('0x87BBCC4360A9BDE3', rai()); } /** * @param pageName */ static popPage(pageName: string): void { inv('0xC6DE040378364798', pageName); } /** * @param eventCategory * @param eventAction * @param eventLabel * @param eventValue * @returns */ static startEvent(eventCategory: string, eventAction: string, eventLabel: string, eventValue: int): boolean { return !!inv('0x1C54F031D7C0F7AC', eventCategory, eventAction, eventLabel, eventValue, rai()); } }