{"version":"1.0","type":"rich","title":"Updated version of googleAnalitics script to track users in ServiceNow native UI","description":"This example tracks user activity in ServiceNow’s native UI by sending Google Analytics pageviews whenever the parent page’s title changes. The code uses the Google Analytics tracking snippet (`ga('create', …)` and `ga('send', …)`) and a `MutationObserver` to watch the `window.top.document.querySelector(\"title\")` element for attribute, character data, or child list changes. On each mutation, it fires a pageview hit with the updated title and current `location.href`. The approach relies on the browser’s native MutationObserver API rather than a custom event system.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-2b6b7fa11f4f061107d1ec158d080b43?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}