@teamsparta/cross-platform-logger
Version:
```typescript import * as CPL from "@teamsparta/cross-platform-logger";
22 lines • 925 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomData = void 0;
var utils_1 = require("./utils");
var utm_1 = require("./utm");
var CustomData = /** @class */ (function () {
function CustomData() {
var _a;
this.created_at = new Date(new Date().getTime() + (9 * 60 * 60 * 1000));
this.referrer = document.referrer;
this.utm_last = (0, utm_1.getUTMCookie)();
this.gclid = (0, utils_1.getCookie)("gclid");
this.url = document.location.href;
this.user_id = (0, utils_1.getCookie)("user_id");
this.device_id = (0, utils_1.getCookie)("device_id");
var ua = (_a = window.navigator.userAgent) === null || _a === void 0 ? void 0 : _a.toLowerCase();
this.platform = (0, utils_1.matchPlatform)(ua)[0] || "";
}
return CustomData;
}());
exports.CustomData = CustomData;
//# sourceMappingURL=events.js.map