> For the complete documentation index, see [llms.txt](https://developers.doku.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.doku.com/accept-payments/doku-checkout/additional-feature/track-campaign-source-on-google-analytics.md).

# Track Campaign Source on Google Analytics

By leveraging this feature, you can:

* Identify which campaigns drive conversions
* Improve marketing strategy based on performance data
* Track customer behavior through your Google Analytics account

***

### How it Works ?

When generating a checkout order, you can pass Google Analytics UTM parameters in the request. These parameters will be stored and sent during the transaction process, enabling you to track attribution data in your analytics tools.

#### Request sample :&#x20;

<pre class="language-json"><code class="lang-json"><strong>"additional_info": {
</strong>        "google_config": {
            "campaign_name": "test_name_2",
            "campaign_source": "test_source_2",
            "campaign_medium": "test_medium_2",
            "debug_mode": true
        },
    }
</code></pre>

| Body Paramater                  | Type    | Mandatory | Description                                                                                                 |
| ------------------------------- | ------- | --------- | ----------------------------------------------------------------------------------------------------------- |
| `google_config.campaign_name`   | String  | Optional  | The name of the marketing campaign (e.g., `"ramadhan_sale"`). Used to group campaign results.               |
| `google_config.campaign_source` | String  | Optional  | The source of the traffic (e.g., `"google"`, `"instagram"`). Identifies where the user came from.           |
| `google_config.campaign_medium` | String  | Optional  | The medium used in the campaign (e.g., `"cpc"`, `"email"`, `"referral"`).                                   |
| `google_config.debug_mode`      | Boolean | Optional  | Set to `true` to enable debug mode, which will log campaign tracking behavior for troubleshooting purposes. |
