> For the complete documentation index, see [llms.txt](https://developers.getgeoflow.com/geoflow-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.getgeoflow.com/geoflow-docs/feature/script-extensions/marketing-parameters.md).

# Marketing Parameters

Automatically capture and log every URL parameter related to marketing within each form on your page.

### How Does It Work?

This script extension will check the current URL for any marketing-related parameter and if one is found, an input field (set to hidden) will be generated with the parameter's name and value; the field will be added to every form on the page. When the form is submitted, the value(s) for the parameter(s) will be accessible alongside anything else included in the submission.&#x20;

The URL parameters noted in the table below are the ones that will be recorded if found. The names and values will not be accessible through the 'geoflow' object.

<table data-full-width="false"><thead><tr><th width="255">URL Parameter Name</th><th width="220">URL Parameter Variable</th></tr></thead><tbody><tr><td>Ref</td><td><mark style="color:yellow;"><code>ref</code></mark></td></tr><tr><td>Referrer</td><td><mark style="color:yellow;"><code>referrer</code></mark></td></tr><tr><td>Source</td><td><mark style="color:yellow;"><code>source</code></mark></td></tr><tr><td>UTM_Source</td><td><mark style="color:yellow;"><code>utm_source</code></mark></td></tr><tr><td>UTM_Medium</td><td><mark style="color:yellow;"><code>utm_medium</code></mark></td></tr><tr><td>UTM_Campaign</td><td><mark style="color:yellow;"><code>utm_campaign</code></mark></td></tr><tr><td>UTM_Term</td><td><mark style="color:yellow;"><code>utm_term</code></mark></td></tr><tr><td>UTM_Content</td><td><mark style="color:yellow;"><code>utm_content</code></mark></td></tr><tr><td>UTM_ID</td><td><mark style="color:yellow;"><code>utm_id</code></mark></td></tr></tbody></table>

### How To Implement

| Attribute Name  | Attribute Value  | Which Page Element?       |
| --------------- | ---------------- | ------------------------- |
| data-extensions | marketing-params | \<script> Tag for Geoflow |

### Example

```html
<script data-extensions="marketing-params" src="https://cdn.getgeoflow.com/beta/script.min.js" crossorigin="anonymous" fetchpriority="auto"></script>
```
