# Multiple conditions for goal

**URL:** <https://community.piwik.pro/t/multiple-conditions-for-goal/632>\
**Category:** Reports and working with data\
**Created:** [April 29, 2022, 11:16am UTC](https://community.piwik.pro/t/multiple-conditions-for-goal/632 "2022-04-29T11:16:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![WWNL](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/wwnl/32/292_2.png) [@WWNL](https://community.piwik.pro/u/WWNL)\
**Post date:** [April 29, 2022, 11:16am UTC](https://community.piwik.pro/t/multiple-conditions-for-goal/632/1 "2022-04-29T11:16:56Z")

</div>

Hi,

Is it true the goals in Piwik can only be set by one condition at the moment? If so, is this something that’s on the roadmap to change? I would like to be able built goals when several pararameters of an event has been hit.

For example:

Goal 1  
category = steps registration  
event = step 1

Goal 2:  
category = buying process  
event = step 1

---

<div class="post-metadata">

**Author:** ![maciej](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/maciej/32/9_2.png) [@maciej](https://community.piwik.pro/u/maciej)\
**Post date:** [April 29, 2022, 11:34am UTC](https://community.piwik.pro/t/multiple-conditions-for-goal/632/2 "2022-04-29T11:34:38Z")

</div>

You can use multiple conditions. The way to do it is use a ‘Goal conversion’ tag in the Tag Manager and assign it a trigger with the multiple conditions, see an example:

![trigger conditions](https://europe1.discourse-cdn.com/flex005/uploads/piwikpro/original/1X/4a085b8be5514cc05a2013d5392eb90dfd071e57.png)

You may need to add [Tag manager’s custom variable](https://help.piwik.pro/support/tag-manager/create-variable/)s to read additional data from the data layer.

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [April 29, 2022, 1:03pm UTC](https://community.piwik.pro/t/multiple-conditions-for-goal/632/3 "2022-04-29T13:03:39Z")

</div>

To give you some additional context: the bottomline is to trigger goal via tag manager instead of using just the conditions available while creating a goal. In this case, while creating a new goal, you pick the option to trigger the goal manually. Check also [this guide](https://help.piwik.pro/support/tag-manager/piwik-pro-goal-conversion/). 🙂

---

<div class="post-metadata">

**Author:** ![WWNL](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/wwnl/32/292_2.png) [@WWNL](https://community.piwik.pro/u/WWNL)\
**Post date:** [May 9, 2022, 2:40pm UTC](https://community.piwik.pro/t/multiple-conditions-for-goal/632/4 "2022-05-09T14:40:02Z")

</div>

Thanks for sharing this with me. I do wonder why the distiction? At this moment we are testing Piwik on two of our websites. One through GTM and one with the PTM. So basically when you want to use GTM or any other tag management system for that matter you can’t do this?

---

<div class="post-metadata">

**Author:** ![Admin](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Admin](https://community.piwik.pro/u/Admin)\
**Post date:** [May 10, 2022, 2:39pm UTC](https://community.piwik.pro/t/multiple-conditions-for-goal/632/5 "2022-05-10T14:39:28Z")

</div>

You can. In general, any tag management solution adds more flexibility in this context.

If you want to go with GTM, you should mark the goal to be triggered manually and trigger it via this code: [trackGoal](https://developers.piwik.pro/en/latest/data_collection/web/javascript_tracking_client/api.html#trackGoal) (as a custom html tag).

The other thing is that you can also install PTM via GTM (custom html tag). Then you have access to all Piwik PRO features (including consent management and tag templates for instance).
