Ad

Tiếng AnhTiếng PhápTiếng Tây Ban Nha

Biên tập trực tuyến miễn phí | DOC > | XLS > | PPT >


Biểu tượng yêu thích của OffiDocs

Google Tag Manager Blocker in Chrome với OffiDocs

Google Tag Manager Blocker  screen for extension Chrome web store in OffiDocs Chromium

Ad


MÔ TẢ


This extension allows you to block internal traffic from triggering a connection to Google Tag Manager, hence allowing you to avoid corrupting the analytics and events data generated by your website.

See the GitHub page here: https://github.

com/tommyrharper/gtm-disabler-chrome In order to install this on your on your website you will need to: Insert the following tag into your HTML header: ```HTML <meta name="GTM-Blocker" content="disabled" /> ``` Now you can use this piece of code wherever you connect to Google Tag Manager on the FE of your application using the following Logic: ```JavaScript const GTMBlocker = document.

querySelector('meta[name="GTM-Blocker"]'); const GTMBlockerEnabled = GTMBlocker.

content === 'enabled' if (GTMBlockerEnabled) // DO NOT CONNECT TO GOOGLE TAG MANAGER else // CONNECT TO GOOGLE TAG MANAGER ``` Now when you visit your own webpage, with Google Tag Manager Blocker enabled on you, will no longer connect to GTM, and no false events will be triggered.

Thông tin thêm:


- Offered by thomasharperdev
- Đánh giá trung bình : 5 sao (thích nó)
- Nhà phát triển Địa chỉ email này đã được bảo vệ từ spam bots. Bạn cần kích hoạt Javascript để xem nó.

Google Tag Manager Blocker web extension tích hợp với OffiDocs Chromium Trực tuyến


chạy Chrome Extensions

Ad