🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@aidc/log

Package Overview
Dependencies
Maintainers
3
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aidc/log

## 快速开始

latest
npmnpm
Version
0.1.83
Version published
Weekly downloads
155
-43.01%
Maintainers
3
Weekly downloads
 
Created
Source

前端日志(埋点 + 监控)

快速开始

import { initLog, EventType } from '@aidc/log';

// 初始化
initLog({
  // AEM 配置项
  aesConfig: {
    autoPV: true,
  },
  // GTM 配置项 (todo)
  gtmConfig: {
    autoPV: true,
  },
});

// 发送事件
sendEvent('click-xxx', {
  type: EventType.click,
  data: {
    // 自定义字段
    // 需要使用aem预留字段比如c1, c2...
  },
});

相关文档

AEM(阿里内部)

  • 底层依赖 Aplus SDK
  • 体验平台 AEM SDK

GTM

  • todo

FAQs

Package last updated on 22 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts