Files
Eric Tuvesson 656e5fc8d2 chore: Upgrade Docusaurus from v2 to v3 (#52)
* chore: Upgrade Docusaurus from v2 to v3

* chore: Update "Test build" GH workflow

* fix: build

All markdown is processed as MDX

* fix: Broken links
2024-01-12 16:53:22 +01:00

35 lines
2.0 KiB
Markdown

---
title: Send Google Analytics Data
hide_title: true
---
{/*##head##*/}
# Send Google Analytics Data
This node is used to send custom data to Google Analytics. It works similarily to the [gtag](https://support.google.com/analytics/answer/11147304) function provided by Google.
<div className="ndl-image-with-background l">
![](/library/modules/google-analytics/screenshot.png)
</div>
{/*##head##*/}
## Inputs
| Data | Description |
| ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <span className="ndl-data">Gtag Tracking Data</span> | The data that should be sent to Google Analytics. <br/><br/>For the code `gtag("event", "search", {"term": "Noodl"})` you would send `"event", "search", {"term": "Noodl"}` to this input. |
| Signal | Description |
| -------------------------------------- | ------------------------------------------------------------------ |
| <span className="ndl-signal">Do</span> | Send a signal to this input to track the data in Google Analytics. |
## Outputs
| Signal | Description |
| --------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| <span className="ndl-signal">Data Sent</span> | Sends a signal when the data has been sent to Google Analytics. Useful for clearing user inputs after submission. |