docsify
Version:
A magical documentation generator.
9 lines (8 loc) • 896 B
JavaScript
/*!
* Docsify Plugin: gtag v5.0.0
* https://docsify.js.org
* (c) 2017-2026
* MIT license
*/
!function(){"use strict";const t=globalThis;function a(a){!function(t){const a=document.createElement("script");a.async=!0,a.src="https://www.googletagmanager.com/gtag/js?id="+t,document.body.appendChild(a)}(a),t.dataLayer=t.dataLayer||[],t.gtag=t.gtag||function(){t.dataLayer.push(arguments)},t.gtag("js",new Date),t.gtag("config",a)}function o(o){Array.isArray(o)?(a(o[0]),o.forEach(((a,o)=>{o>0&&function(a){t.gtag("config",a)}(a)}))):a(o)}function n(){t.gtag||o(t.$docsify.gtag),t.gtag("event","page_view",{page_title:document.title,page_location:location.href,page_path:location.pathname})}t.$docsify=t.$docsify||{},t.$docsify.plugins=[function(a){t.$docsify.gtag?a.beforeEach(n):console.error("[Docsify] gtag is required.")},...t.$docsify.plugins||[]]}();
//# sourceMappingURL=gtag.min.js.map