# How to track forms, with undefined FormID, ClassID, FormURL or other Piwik Pro Trackable "events"

**URL:** <https://community.piwik.pro/t/how-to-track-forms-with-undefined-formid-classid-formurl-or-other-piwik-pro-trackable-events/2796>\
**Category:** Data collection and tags\
**Created:** [August 29, 2023, 7:45am UTC](https://community.piwik.pro/t/how-to-track-forms-with-undefined-formid-classid-formurl-or-other-piwik-pro-trackable-events/2796 "2023-08-29T07:45:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian\_Christense](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/christian_christense/32/2297_2.png) [@Christian\_Christense](https://community.piwik.pro/u/Christian_Christense)\
**Post date:** [August 29, 2023, 7:45am UTC](https://community.piwik.pro/t/how-to-track-forms-with-undefined-formid-classid-formurl-or-other-piwik-pro-trackable-events/2796/1 "2023-08-29T07:45:48Z")

</div>

I have to different types of forms, ninja forms and getsitecontrol and both have undefined classes. I have set up tracking i google tag manager, with tags, triggers and variables, but in the piwik pro debugger, all the trigger trackable events are undefined.

---

<div class="post-metadata">

**Author:** ![sararekowska](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/sararekowska/32/1582_2.png) [@sararekowska](https://community.piwik.pro/u/sararekowska)\
**Post date:** [August 29, 2023, 8:15am UTC](https://community.piwik.pro/t/how-to-track-forms-with-undefined-formid-classid-formurl-or-other-piwik-pro-trackable-events/2796/2 "2023-08-29T08:15:28Z")

</div>

Hi there!

Could you share the URL of the website you’re reffering to? You can send it to me via private message or here in the thread 😄

---

<div class="post-metadata">

**Author:** ![Christian\_Christense](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/christian_christense/32/2297_2.png) [@Christian\_Christense](https://community.piwik.pro/u/Christian_Christense)\
**Post date:** [August 29, 2023, 9:12am UTC](https://community.piwik.pro/t/how-to-track-forms-with-undefined-formid-classid-formurl-or-other-piwik-pro-trackable-events/2796/4 "2023-08-29T09:12:56Z")

</div>

> **[Forside - Freehand Coffee Company](https://freehandcoffee.dk/)**
>
> Hos Freehand Coffee Company er vi eksperter i kaffeløsninger til erhvervslivet. Vi har mange års erfaring med skræddersyet kaffeløsninger

---

<div class="post-metadata">

**Author:** ![sararekowska](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/sararekowska/32/1582_2.png) [@sararekowska](https://community.piwik.pro/u/sararekowska)\
**Post date:** [August 29, 2023, 9:32am UTC](https://community.piwik.pro/t/how-to-track-forms-with-undefined-formid-classid-formurl-or-other-piwik-pro-trackable-events/2796/5 "2023-08-29T09:32:42Z")

</div>

Can you explain your issue a bit more? I tested the forms on your website and both of them send a valid custom event that shows up in the tracker debugger.

---

<div class="post-metadata">

**Author:** ![Christian\_Christense](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/christian_christense/32/2297_2.png) [@Christian\_Christense](https://community.piwik.pro/u/Christian_Christense)\
**Post date:** [August 29, 2023, 9:48am UTC](https://community.piwik.pro/t/how-to-track-forms-with-undefined-formid-classid-formurl-or-other-piwik-pro-trackable-events/2796/7 "2023-08-29T09:48:17Z")

</div>

When i try to set a trigger in piwik tag manager, i select form submission, and then choose “when all conditions are met” - from here i cant track anything. i’ve tried setting the from id as the action, but to no avail. I cant seem to get the custom event to be tracked? The tag is not fired in the debugger

In the debug mode, the formID is undefined, so is the form url, form path and all of the drop down options in the form submission in tag manager trigger.

How can i track the forms?

---

<div class="post-metadata">

**Author:** ![Christian\_Christense](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/christian_christense/32/2297_2.png) [@Christian\_Christense](https://community.piwik.pro/u/Christian_Christense)\
**Post date:** [August 29, 2023, 11:51am UTC](https://community.piwik.pro/t/how-to-track-forms-with-undefined-formid-classid-formurl-or-other-piwik-pro-trackable-events/2796/8 "2023-08-29T11:51:07Z")

</div>

I think i figured it out - After setting the event as a data layer event, the conversions and tag is now triggering.
