PageSourceSearch

https://dreamwiz.com/assets/js/analytics.js

js dreamwiz.com collected 2026-10-02 07:18:32 UTC 768 bytes, 15 lines download raw bytes

1// 홈 위젯별 클릭 트래킹 — 어느 섹션(뉴스/영상/소프트웨어 등)에서 클릭이 나갔는지
2// GA4 select_content 이벤트로 남긴다. gtag가 없으면(GA_MEASUREMENT_ID 미설정) 아무 일도
3// 안 한다. data-ga-section 속성이 있는 조상 요소 안의 <a> 클릭만 잡는다 — 헤더 nav나
4// 광고 슬롯처럼 태그 안 붙은 곳은 트래킹하지 않는다.
5document.addEventListener('click', function (e) {
6  if (typeof gtag !== 'function') return;
7  var link = e.target.closest('a[href]');
8  if (!link) return;
9  var section = link.closest('[data-ga-section]');
10  if (!section) return;
11  gtag('event', 'select_content', {
12    content_type: section.getAttribute('data-ga-section'),
13    item_id: link.href,
14  });
15});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.