Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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} */
Expand Down
7 changes: 6 additions & 1 deletion quickstarts/_partials/run-vantage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,22 @@
To paste into Gnome Terminal press <kbd>SHIFT+CTRL+V</kbd>.
:::

<div className="emits-gtm-events" id="pdestate">
```bash
watch pdestate -a
```
</div>

You want to wait till you see the following message:

<div className="emits-gtm-events" id="pdestaterun">
```bash
PDE state is RUN/STARTED.
DBS state is 5: Logons are enabled - The system is quiescent
```
</div>

<div className="emits-gtm-events" id="pde-details">
<details>

<summary>See examples of messages that <code>pdestate</code> returns when the database is still initializing.</summary>
Expand Down Expand Up @@ -66,7 +71,7 @@ PDE state is RUN/STARTED.
</pre>

</details>

</div>
- 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)
Expand Down
2 changes: 2 additions & 0 deletions src/config/baseHeadTags.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
18 changes: 18 additions & 0 deletions static/js/gtm-events.js
Original file line number Diff line number Diff line change
@@ -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",
});
}
});

Loading