diff --git a/docusaurus.config.js b/docusaurus.config.js index 5d079a5e63..b828056179 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -55,6 +55,14 @@ const trackingScripts = [ async: 'true', }, }, + { + tagName: 'script', + attributes: { + type: 'text/javascript', + src: '/js/gtm-events.js', + async: 'true', + }, + }, ]; /** @type {import('@docusaurus/types').Config} */ diff --git a/quickstarts/_partials/run-vantage.mdx b/quickstarts/_partials/run-vantage.mdx index d39394ecf0..7bffeddb64 100644 --- a/quickstarts/_partials/run-vantage.mdx +++ b/quickstarts/_partials/run-vantage.mdx @@ -28,17 +28,22 @@ To paste into Gnome Terminal press SHIFT+CTRL+V. ::: +
```bash watch pdestate -a ``` +
You want to wait till you see the following message: +
```bash PDE state is RUN/STARTED. DBS state is 5: Logons are enabled - The system is quiescent ``` +
+
See examples of messages that pdestate returns when the database is still initializing. @@ -66,7 +71,7 @@ PDE state is RUN/STARTED.
- +
- Now that the database is up, go back to the virtual desktop and launch `Teradata Studio Express` ![Start Teradata Studio Express](../images/run-vantage/start-teradata-studio-express.png) diff --git a/src/config/baseHeadTags.js b/src/config/baseHeadTags.js index 809d436eea..601e426f68 100644 --- a/src/config/baseHeadTags.js +++ b/src/config/baseHeadTags.js @@ -13,6 +13,8 @@ const allowedUrls = [ 'https://td.doubleclick.net/', 'https://www.youtube.com/', 'https://*.algolia.net/', + 'https://region1.analytics.google.com', + 'https://stats.g.doubleclick.net' ]; const baseHeadTags = [ diff --git a/static/js/gtm-events.js b/static/js/gtm-events.js new file mode 100644 index 0000000000..f4c75f96a5 --- /dev/null +++ b/static/js/gtm-events.js @@ -0,0 +1,18 @@ + + document.addEventListener("click", function (event) { + const target = event.target; + + if (target.closest(".emits-gtm-events")) { + const id = target.closest(".emits-gtm-events").id; + window.dataLayer.push({ + event: id, + }); + } + + if (target.closest("cv-code-snippet")) { + window.dataLayer.push({ + event: "copy_code", + }); + } + }); + \ No newline at end of file