📜  如何获取 Google 分析客户端 ID - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:02.676000             🧑  作者: Mango

代码示例1
// Queues a tracker object for creation.
ga('create', 'UA-XXXXX-Y', 'auto');

// Once the tracker has been created, log the
// client ID to the console.
ga(function(tracker) {
  console.log(tracker.get('clientId'));
  /* Your other code here */
});