상세 컨텐츠

본문 제목

[GTM] How to Check Google Tags on a Webpage (feat.payload)

GA4 & GTM

by datamaster23 2023. 6. 21. 22:53

본문

To check the Google tags implemented on a webpage, you can follow these steps:

 

Dev Tool > Network > Payload > "collect"

  1. Open the webpage you want to inspect in a web browser.
  2. Right-click anywhere on the page and select "Inspect" or "Inspect Element" from the context menu. This will open the browser's developer tools.
  3. In the developer tools, navigate to the "Network" tab.
  4. Refresh the webpage to capture the network requests made by the page. (Press F5)
  5. Look for requests with a domain related to Google Analytics, such as "google-analytics.com" or "googletagmanager.com". These requests indicate that Google tags are implemented on the page.You can filter the requests by typing "google" in the filter/search bar of the developer tools' network tab (or filter the network requests using the keyword "collect" to see Google tags implemented on a web page. The term "collect" is commonly used in the request path or payload of Google Analytics tags.)
  6. Click on the request related to Google Analytics or Google Tag Manager to view its details.
  7. In the request details, look for parameters like "tid" (Tracking ID) or "t" (hit type) to identify the specific Google Analytics tags and their configurations.

Please note that some tags may load asynchronously or be triggered by specific events, so you may need to interact with the page (e.g., click a button, submit a form) to trigger the loading of certain tags.

Inspecting the network requests in the browser's developer tools allows you to see the requests made by the webpage, including those related to Google tags. By examining the request parameters, you can gain insights into the tags implemented on the page and their configurations.

 

Keep in mind that this method assumes that the tags are implemented directly on the webpage and not loaded dynamically or via an iframe from another source. In some cases, the tags may be managed through Google Tag Manager, in which case you might not see the tag requests directly in the network tab but rather within the Tag Manager container.

 

+ How to Decipher Payload in Network (w/ e.g.)

  • v: 2: Indicates the version of the measurement protocol being used.
  • tid: G-#########: Represents the Google Analytics Measurement ID or Tracking ID associated with the property.
  • gtm: #########: Refers to the Google Tag Manager container ID.
  • _p: ######6: Represents a unique value associated with the current pageview hit.
  • cid: 70#####.16######: Represents the client ID, a unique identifier assigned to the user or device visiting the website.
  • ul: ko-kr: Indicates the user's language and region, in this case, Korean (Korea).
  • sr: 1536x864: Represents the screen resolution of the user's device.
  • uaa: x86: Specifies the architecture of the user's device, in this case, x86.
  • uab: 64: Indicates the number of bits in the user's device architecture (64 bits in this case).
  • uafvl: Not.A%2FBrand;8.0.0.0|Chromium;1##.#.####.###|Google%20Chrome; 1##.#.####.###: Represents the user agent string, providing information about the user's browser and operating system.
  • uamb: 0: Indicates the user agent minor version.
  • uam:: Represents the user agent major version.
  • uap: Windows: Specifies the user's operating system, in this case, Windows.
  • uapv: 10.0.0: Indicates the user's operating system version.
  • uaw: 0: Indicates whether the user's browser is running in a web environment.
  • ngs: 1: Represents a non-interaction hit, indicating that the hit does not affect bounce rate calculations.
  • _s: 1: Indicates a start hit, signifying the beginning of a session.
  • sid: 1687354718: Represents the session ID, a unique identifier for the current session.
  • sct: 3: Indicates the session count, representing the number of sessions for the client.
  • seg: 1: Specifies a segment ID, indicating that the hit is associated with a specific segment.
  • dl: https://master-data-marketing.tistory.com/3: Refers to the document location URL, the current page URL.
  • dr: https://master-data-marketing.tistory.com/: Represents the document referrer URL, the previous page URL that led the user to the current page.
  • dt: [dataLayer] How to Configure a dataLayer (e.g.): Represents the document title, the title of the current page.
  • en: page_view: Indicates the event name or hit type, in this case, a page_view event.

++Another e.g.

  v: 1: This indicates the version of the Google Analytics Measurement Protocol being used.

·        a: 2123071514: This is the anonymized ID of the user or client.

·        t: pageview: This indicates that it's a pageview hit type, representing a view of a particular page.

·        ni: 0: This specifies whether the hit is non-interactive (0) or interactive (1). Non-interactive hits don't affect bounce rate calculations.

·        dl: https%3A%2F%2Fwww.******.com%************%2F: This is the URL of the page that was viewed. It's URL-encoded, and the actual decoded URL is "*****".

·        dp: %2************%2F: This is the document path or page path of the viewed page. It's URL-encoded, and the actual decoded path is "/************/".

·        ul: ko-kr: This indicates the user's language preference, which is set to Korean (Korea).

·        de: UTF-8: This specifies the character encoding used for the page.

·        dt: %E3%83%9B**************%E3%80%91: This is the document title of the page. It's URL-encoded, and the actual decoded title is "********".

·        sd: 24-bit: This indicates the color depth of the user's screen.

·        sr: 1055x882: This specifies the screen resolution of the user's device.

·        vp: 1055x882: This indicates the viewport size or the visible area of the page.

·        je: 0: This specifies whether JavaScript is enabled (0 for disabled, 1 for enabled).

·        _u: SCCACUALBAAAACANK~: This could be a unique user identifier or session identifier.

·        jid, gjid: These seem to be placeholders or empty values for job ID and group job ID.

·        cid: 884654338.1687232195: This is the client ID, a unique identifier for the user.

·        tid: UA-162****-**: This is the Google Analytics tracking ID associated with the website or application.

·        gtm: 45He36e2n71T*****: This indicates the Google Tag Manager ID or container ID used for managing tags and analytics on the website.

·        pa: detail: This indicates the type of page or the specific page category, in this case, "detail."

·        pr1br: Aa: This represents a product-related variable or parameter, indicating the brand of the product as " Aa."

·        pr1id: 8400: This represents a product-related variable or parameter, indicating the ID of the product as "8400."

·        pr1nm: 8400: This represents a product-related variable or parameter, indicating the name of the product as "8400."

·        pr1cd11, pr1cd12, pr1cd13, pr1cd14, pr1cd15, pr1cd16, pr1cd17, pr1cd20: These represent product-related custom dimensions or variables capturing specific values related to the product.

·        pr1cm1, pr1cm2, pr1cm3, pr1cm4: These represent product-related custom metrics capturing specific values related to the product.

 

Note: without additional context or documentation specific to the implementation of the tracking system or analytics tool, it can be challenging to decipher the exact meaning or purpose of each custom dimension or variable in the payload.

 

관련글 더보기