google-analytics - Google Signals/Remarketing - check if it's enabled?
问题描述
We are trying to use Google Signals (https://support.google.com/analytics/answer/7532985?hl=en) for remarketing purposes but we are unsure if it is correctly enabled. We are using the following code for our implementation:
<script async
src="https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
if (!cookieManager.googleRemarketing) {
gtag('set', 'allow_google_signals', false);
}
gtag('js', new Date());
gtag('config', 'XXX', {
'anonymize_ip': true,
'optimize_id': 'XXX'
});
</script>
We are not using any additional google ads/remarketing code, but we have enabled "Tracking-Information" => "Data collection" => "Data collection for Google Signals" (the translations might vary, because we don't use analytics in English) in Google Analytics.
It seems like there is no cookie with the name "IDE" set, like it was before when we used the normal Google Remarketing Code. Did that cookie got removed/replaced in google signals? If so, how can we check if google signals is working correctly?
The Tag Assistant Plugin for Chrome just shows the following:
Thank you!
解决方案
在您的代码段中,您有:
gtag('set', 'allow_google_signals', false );
因此它会禁用所有广告功能。
https://developers.google.com/analytics/devguides/collection/gtagjs/display-features
因此,您看不到任何 IDE cookie。
推荐阅读
- node.js - 语法或异步问题
- php - Laravel TDD 断言数组具有键“id”失败
- c++ - 将 float32 转换为 ushort 时丢失图像数据
- python - 在 djagon 模板中迭代 json 时出现非类型错误
- sql - 无法在 SQL Server“SSMS 18 已停止工作”中打开图表?
- elasticsearch - 带有过滤器的弹性搜索聚合无法过滤聚合
- java - 如何在 2 个不同类型的列表中查找元素匹配并使用 java 8 流加入它们?
- c# - 公式说明
- ros - 使用“catkin build”时如何限制“cc1plus”的数量
- html - 如何在页脚中创建此联系人部分?