# How to insert current campaign ID into an email?

**URL:** https://forum.mautic.org/t/how-to-insert-current-campaign-id-into-an-email/25641
**Category:** Product Support
**Tags:** mautic-4
**Created:** [October 11, 2022, 11:46am UTC](https://forum.mautic.org/t/how-to-insert-current-campaign-id-into-an-email/25641 "2022-10-11T11:46:37Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lukas-sander](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/lukas-sander/32/6510_2.png) [@lukas-sander](https://forum.mautic.org/u/lukas-sander)
#### Post date: [October 11, 2022, 11:46am UTC](https://forum.mautic.org/t/how-to-insert-current-campaign-id-into-an-email/25641/1 "2022-10-11T11:46:37Z")

</div>

**Your software**  
My Mautic version is: 4.4.2  
My PHP version is: 7.4.30  
My Database type and version is: MySQL 8.0.30

**Your problem**  
In order to create a service to unsubscribe from a single campaign, i want to link to a specific url containing the campaign id as a parameter. Is there a way to insert the ID of the current campaign in an email? for example {campaignfield=id}

---

<div class="post-metadata">

### Author: ![mikew](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mikew/32/5156_2.png) [@mikew](https://forum.mautic.org/u/mikew)
#### Post date: [October 12, 2022, 10:07am UTC](https://forum.mautic.org/t/how-to-insert-current-campaign-id-into-an-email/25641/2 "2022-10-12T10:07:22Z")

</div>

I am not sure how to exactly do what you are wanting to do, however you can create your own landing page that is an unsubscribe center and you can provide the liftoff campaigns the person wishes to unsubscribe from.

---

<div class="post-metadata">

### Author: ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)
#### Post date: [October 17, 2022, 6:49am UTC](https://forum.mautic.org/t/how-to-insert-current-campaign-id-into-an-email/25641/3 "2022-10-17T06:49:13Z")

</div>

Hi, you can also make it this way:

1. create a landing, like Mike mentioned.
2. create a segment called “unsubbed from nurture campaign”
3. Create a separate campaign (called Watch for Campaign Unsub)  
in this campaign the source is the segment above and the only step is to unsub someone from the campaign.
