GTM Sonar

Debug your page template to see if it works with Google Tag Manager's auto-event listeners.

GTM Sonar là gì?

GTM Sonar là một tiện ích mở rộng Chrome được phát triển bởi https://www.simoahava.com, và tính năng chính của nó là "Debug your page template to see if it works with Google Tag Manager's auto-event listeners.".

Ảnh Chụp Màn Hình của Tiện Ích Mở Rộng

screenshot
screenshot
screenshot
screenshot

Tải xuống tệp CRX của tiện ích mở rộng GTM Sonar

Tải xuống các tệp mở rộng GTM Sonar dưới định dạng crx, cài đặt các tiện ích mở rộng Chrome bằng tay trong trình duyệt hoặc chia sẻ các tệp crx với bạn bè để dễ dàng cài đặt các tiện ích mở rộng Chrome.

Hướng Dẫn Sử Dụng Tiện Ích Mở Rộng

                        The GTM Sonar can be used to debug the page template and its compatibility with Google Tag Manager's listeners.

TABLE OF CONTENTS
1. OVERVIEW
2. HOW TO USE IT
3. TO-DO
4. VERSION HISTORY 

--------------------

1. OVERVIEW

Once you install the extension (and reload your page), clicking the red target in the extension pane will open a pop-up.

In this pop-up, you can choose which listener to activate on the page. 

Click Listener: Halts default action of all clicks on the document node, pushes gtm.click and other data into debugDL upon clicking on the page.

Link Click Listener: Halts default action of all clicks on the document node, pushes gtm.linkClick and other data into debugDL upon clicking any link element on the page.

Form Submit Listener: Halts default action of all form submissions, pushes gtm.formSubmit and other data into debugDL upon submitting a form.

By choosing the listener and clicking "Switch On" you set up the listener on the page. By opening the pop-up and clicking "Switch Off", you cancel all extension actions.

Once an event is pushed into the debugDL array, a small badge icon in the Browser Action increases in count, signifying the number of items in the array. To view contents of the array, open the JavaScript console in your Chrome browser and type "debugDL" (without quotes).

If your page has jQuery available, you can kill all jQuery binds by clicking the respective button. This is to test if jQuery is interfering with GTM listeners.

The debugger is tab-specific, so actions in a tab are for that tab only. Once you browse away from the page, debugDL will not be available any more.

Note that canceling the default action of clicks and submits is not 100 % accurate. You might have interfering scripts which make it so that redirection or submission happens anyway.

2. HOW TO USE IT

The idea is that you can test how different elements perform with these three GTM listeners without actually setting up a real GTM listener. This is good for debugging, as you can now test freely with your markup before setting up listener tags in GTM. This is also very useful if you want to debug a site where you don't have access to the container or a preview version.

3. TO-DO

1) Make more stable and robust

4. VERSION HISTORY

v1.4 - May 13, 2020
- Fixed Click Listener to be properly removed when extension is inactive.
- Switched to using just the activeTab permission.

v1.3 - June 5, 2015
- Changed Click Listener to use Capture
- Changed Link Click Listener to climb through DOM tree until a link is found

v1.2 - June 1, 2014
- Added a badge icon which increases in count every time an event is pushed into debugDL
- Improved the pop-up instructions
- If the extension doesn't work, an error message will be displayed in the pop-up
- Changed the name of the extension to GTM Sonar (thanks Paul Gailey for the idea!)

v1.1 - May 26, 2014
- Added a popup to control debugger functions
- Added a switch to kill all jQuery binds
- Added the choice of Click Listener, Link Click Listener and Form Submit Listener

v1.0 - May 23, 2014
- First release version
- Clicking the Browser Action halts all click events and sets up the debugDL object
- Clicking anywhere on the page stores the gtm.click event in debugDL
- Clicking the Browser Action again removes all scripts and event handlers injected by this extension                    

Thông Tin Cơ Bản về Tiện Ích Mở Rộng

Tên GTM Sonar GTM Sonar
ID iiihoahkpncaheicjfemhjkkfamcahcd
URL Chính Thức https://chromewebstore.google.com/detail/gtm-sonar/iiihoahkpncaheicjfemhjkkfamcahcd
Mô tả Debug your page template to see if it works with Google Tag Manager's auto-event listeners.
Kích Thước Tệp 15.94 KB
Số Lần Cài Đặt 14,737
Phiên Bản Hiện Tại 1.4
Cập Nhật Lần Cuối 2020-05-17
Ngày Phát Hành 2020-05-16
Đánh Giá 5.00/5 Tổng số 14 Đánh Giá
Nhà Phát Triển https://www.simoahava.com
Loại Thanh Toán free
Trang Web Mở Rộng https://www.simoahava.com/analytics/gtm-sonar-v1-2/
Ngôn Ngữ Được Hỗ Trợ en
manifest.json
{
    "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx",
    "manifest_version": 2,
    "name": "GTM Sonar",
    "version": "1.4",
    "description": "Debug your page template to see if it works with Google Tag Manager's auto-event listeners.",
    "short_name": "GTM Sonar",
    "icons": {
        "16": "icon16.png",
        "48": "icon48.png",
        "128": "icon128.png"
    },
    "browser_action": {
        "default_icon": {
            "19": "icon19.png",
            "38": "icon38.png"
        },
        "default_popup": "popup.html"
    },
    "background": {
        "scripts": [
            "background.js"
        ]
    },
    "content_scripts": [
        {
            "matches": [
                ""
            ],
            "js": [
                "debugger.js"
            ],
            "run_at": "document_end"
        }
    ],
    "permissions": [
        "activeTab"
    ]
}