如何在GA4跟踪“AIO+精选摘要+PAA”报告

On this page

示例

AIO示例

1742597100 image

PAA示例

1742597512 image

精选摘要示例

1742597597 image

设置GTM

没有安装过GTM的先看GTM的安装

1742598966 image
1742599079 image

重命名(建议按照我的命名,方便后续统一操作)并粘贴代码

function() {
  var entries = decodeURIComponent(performance.getEntries()[0].name.match("#:~:text=(.*)")[1]);
  var frag = entries.replace(/, /g, "*").replace(/,/g, "...").replace(/\*/g, ", ");
  var splitArray = frag.split("...");
  return splitArray[0];
}

1742599208 image

重复再创建一个,粘贴“结束代码”

function() {
  var entries = decodeURIComponent(performance.getEntries()[0].name.match("#:~:text=(.*)")[1]);
  var frag = entries.replace(/, /g, "*").replace(/,/g, "...").replace(/\*/g, ", ");
  var splitArray = frag.split("...");
  return splitArray.slice(1).join("...");
}
1742599369 image

创建GA4事件

1742599616 image
1742599647 image
1742599654 image

ID在GA4中可以找到

1742599828 image
1742599784 image
1742600153 image

触发器选择All Pages

1742600851 image

回到GA4

1742600569 image

重复创建一个

1742600652 image

回到GTM

1742600900 image
1742601035 image
1742601086 image
1742601134 image
1742601140 image
1742601453 image
1742601518 image

设置完成,之后你可以连接到looker studio或者GA4创建受众来查看.