sách gpt4 ai đã đi

google-analytics - Google Universal Analytics Google-浏览量

In lại 作者:行者123 更新时间:2023-12-03 16:21:49 30 4
mua khóa gpt4 Nike

我正在尝试记录每个博客站点作者的点击率。

ga('send', 'pageview'); (in the header with the ga code to track each page)
ga('send', 'pageview', { 'dimension1': 'William' }); (only on blog pages, I want to record the hits of each author)


不幸的是,由于该网站的模板,我不能只使用 ga set然后发送综合浏览量。

每次加载页面时,我都会获得2次匹配,因此在Google Analytics(分析)中显示错误数据吗?

1 Câu trả lời

是的,您将获得不正确的双页面浏览量。但是,您可以将代码置于其他模式吗?

if(currentPage != 'blogpage') //put your conditions identifying if it's blog or not
{
ga('send', 'pageview'); (in the header with the ga code to track each page)
}else
{
ga('send', 'pageview', { 'dimension1': 'William' }); (only on blog pages, I want to record the hits of each author)
}

关于google-analytics - Google Universal Analytics Google-浏览量,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23489640/

30 4 0
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com