get_tracking_snippet
Generate the gtag.js HTML tracking snippet to add Google Analytics 4 tracking to your website. Paste the output directly into your site's HTML.
Instructions
Generate the gtag.js HTML tracking snippet ready to paste into your website.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| measurement_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |