# Custom UTM parameter with WordPress plugin

**URL:** <https://community.piwik.pro/t/custom-utm-parameter-with-wordpress-plugin/3014>\
**Category:** Data collection and tags\
**Created:** [October 9, 2023, 7:04pm UTC](https://community.piwik.pro/t/custom-utm-parameter-with-wordpress-plugin/3014 "2023-10-09T19:04:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonatetr](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jasonatetr](https://community.piwik.pro/u/jasonatetr)\
**Post date:** [October 9, 2023, 7:04pm UTC](https://community.piwik.pro/t/custom-utm-parameter-with-wordpress-plugin/3014/1 "2023-10-09T19:04:39Z")

</div>

We want to manually create a custom UTM: utm\_creative

Reviewing the [documentation](https://help.piwik.pro/support/questions/how-can-i-customize-piwik-pro-campaign-parameters/?pk_vid=1696365526633d15#manual-setup), it states we can target the `trackPageView()` call in the tracking code. Is this possible when using the WordPress plugin?

---

<div class="post-metadata">

**Author:** ![anthonybartczak](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anthonybartczak/32/2430_2.png) [@anthonybartczak](https://community.piwik.pro/u/anthonybartczak)\
**Post date:** [October 10, 2023, 4:57am UTC](https://community.piwik.pro/t/custom-utm-parameter-with-wordpress-plugin/3014/2 "2023-10-10T04:57:37Z")

</div>

Hi @jasonatetr!

Once you define the custom parameter (`utm_creative`) in the administration settings it should be picked up from the URL automatically - there’s no need to call `setCampaignNameKey` and `setCampaignKeywordKey` as these are for the older version of our product.

---

<div class="post-metadata">

**Author:** ![jasonatetr](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jasonatetr](https://community.piwik.pro/u/jasonatetr)\
**Post date:** [October 10, 2023, 8:23am UTC](https://community.piwik.pro/t/custom-utm-parameter-with-wordpress-plugin/3014/3 "2023-10-10T08:23:27Z")

</div>

Thank you @anthonybartczak!

I had suggested the “manual setup” from the documentation because I was trying to avoid mapping the new UTM to any existing fields. We will be using almost all of them (utm\_content, utm\_medium, etc) as part of the campaign as well. If I were to use the Campaign ID field, for example, wouldn’t the new utm\_creative parameter be mapped to Campaign ID in the Piwik Reports?

---

<div class="post-metadata">

**Author:** ![anthonybartczak](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/anthonybartczak/32/2430_2.png) [@anthonybartczak](https://community.piwik.pro/u/anthonybartczak)\
**Post date:** [October 10, 2023, 8:48am UTC](https://community.piwik.pro/t/custom-utm-parameter-with-wordpress-plugin/3014/4 "2023-10-10T08:48:16Z")

</div>

> If I were to use the Campaign ID field, for example, wouldn’t the new utm\_creative parameter be mapped to Campaign ID in the Piwik Reports?

Yes, that is correct. If you were to define `utm_creative` under the Campaign ID section then the data will be pushed to the campaign ID dimension.

Perhaps if you don’t want to include this parameter under an existing campaign parameter then you could simply use a [custom dimension](https://help.piwik.pro/support/reports/custom-dimension/)?

---

<div class="post-metadata">

**Author:** ![jasonatetr](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@jasonatetr](https://community.piwik.pro/u/jasonatetr)\
**Post date:** [October 10, 2023, 3:45pm UTC](https://community.piwik.pro/t/custom-utm-parameter-with-wordpress-plugin/3014/5 "2023-10-10T15:45:28Z")

</div>

That’s a great idea, thank you @anthonybartczak! I will set up a custom dimension and attempt to track that alongside the standard UTMs for the campaign.
