首页 > 解决方案 > 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: enter image description here

Thank you!

标签: google-analytics

解决方案


在您的代码段中,您有:

gtag('set', 'allow_google_signals', false );

因此它会禁用所有广告功能。

https://developers.google.com/analytics/devguides/collection/gtagjs/display-features

因此,您看不到任何 IDE cookie。


推荐阅读