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.