github.com/hairyhenderson/gomplate/v4@v4.0.0-pre-2.0.20240520121557-362f058f0c93/docs/layouts/partials/custom-footer.html (about) 1 {{ template "_internal/google_analytics.html" . }} 2 <script> 3 (function () { 4 var webSdkScript = document.createElement("script"); 5 webSdkScript.src = "https://unpkg.com/@grafana/faro-web-sdk@^1.0.0/dist/bundle/faro-web-sdk.iife.js"; 6 webSdkScript.onload = () => { 7 window.GrafanaFaroWebSdk.initializeFaro({ 8 url: "https://faro-collector-prod-us-central-0.grafana.net/collect/d8b5652f5dd57fb1cfec9a1c32970fe0", 9 app: { 10 name: "docs.gomplate.ca", 11 version: "1.0.0", 12 environment: "production", 13 }, 14 }); 15 16 // Load instrumentations at the onLoad event of the web-SDK and after the above configuration. 17 // This is important because we need to ensure that the Web-SDK has been loaded and initialized before we add further instruments! 18 var webTracingScript = document.createElement("script"); 19 20 webTracingScript.src = "https://unpkg.com/@grafana/faro-web-tracing@^1.0.0/dist/bundle/faro-web-tracing.iife.js"; 21 22 // Initialize, configure (if necessary) and add the the new instrumentation to the already loaded and configured Web-SDK. 23 webTracingScript.onload = () => { 24 window.GrafanaFaroWebSdk.faro.instrumentations.add( 25 new window.GrafanaFaroWebTracing.TracingInstrumentation() 26 ); 27 }; 28 29 // Append the Web Tracing script script tag to the HTML page 30 document.head.appendChild(webTracingScript); 31 }; 32 33 // Append the Web-SDK script script tag to the HTML page 34 document.head.appendChild(webSdkScript); 35 })(); 36 </script>