[英]How to stop tracking AdRoll Pixel?
我正在使用 cookie 同意橫幅在網站上啟動/停止跟蹤。 有 FB Pixel 和 Rakuten,但現在我需要將 AdRoll Pixel 添加到該列表中。
要開始跟蹤 FB Pixel 我需要
export const enableTracking = () => {
if (window.fbq) {
window.fbq('consent', 'grant');
}
};
export const disableTracking = () => {
if (window.fbq) {
window.fbq('consent', 'revoke');
}
};
對於樂天,我使用:
export const enableTracking = () => {
window.__rmcp = [1, 2, 3, 4, 5];
};
export const disableTracking = () => {
if (rakutenLoaded) {
window.__rmcp = [];
}
};`
但是我在 AdRoll 的文檔中找不到任何關於如何執行與我對 FB Pixel 和 Rakuten 執行的操作相同的操作的地方。
如果按照那里的步驟操作,尤其是第 3 步
- 如果您尚未選擇 cookie 同意工具,請選擇一個並單擊保存。
然后,您可以從包含 cookie constent 工具的生成代碼中讀取他們如何“使”同意“無效”。
您還可以滾動自己的實現,該實現在運行 adroll 代碼之前運行。
export const enableTracking = () => {
window.adroll_pix_id = "your pixel id"
};
export const disableTracking = () => {
delete window.adroll_pix_id;
};
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.