Skip to Content Skip to Menu

πŸŽ‰ Black Friday Sale! Great savings on Professional and Developer Memberships! Get 25% off now with codeΒ BLACK-FRIDAY-2026!

Event tracking & JS hooks for multi-step registration funnel (CBSubs + Matomo)

2 weeks 3 hours ago #344792 by okp-medezide
Hello,
We are using Community Builder with CB Paid Subscriptions (CBSubs) on Joomla to run a 4-step tabbed registration flow (Subscription β†’ Contact Info β†’ Organization β†’ User Status).

Currently, we track completed registrations in Matomo via the page transition from /cb-registration to /cb-profile/saveregisters/.
As we scale our external acquisition campaigns, we want to build a step-by-step conversion funnel in Matomo to better understand user progression across the registration tabs prior to final submission.

Specifically, we are looking for the cleanest, most update-safe way to capture:
- Step transitions: Firing an event whenever a user advances to the next tab (Subscription, Contact Info, Organization, User Status) or navigates backward.
- Client-side validation triggers: Detecting when a required field or formatting rule (such as password complexity or email format) blocks progression so we can refine our field hints.
- Field-level interaction time: Measuring how long visitors spend on each step before moving forward or exiting.

Does Community Builder or CBSubs expose native JavaScript events/callbacks for step changes and jQuery validation errors, or can CB Auto Actions be used to output custom Matomo tracking triggers on the registration view?

I have attached screenshots of our four registration steps for context. Any guidance on recommended hooks or selectors would be greatly appreciated.

Best regards,
Oliver
Attachments:

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 50838
  • Thanks: 8711
  • Karma: 1475
1 week 6 days ago #344797 by krileon

- Step transitions: Firing an event whenever a user advances to the next tab (Subscription, Contact Info, Organization, User Status) or navigates backward.

You'll need to bind to the CBTabs jQuery events for that. There's specific events for step by step registration. The below should work.
Code:
$( '.cbRegistration .cbTabsStepByStep' ).on( 'cbtabs.previous', function( event, cbtabs, currentTab, nextTab ) { console.log( 'navigated left' ); }); $( '.cbRegistration .cbTabsStepByStep' ).on( 'cbtabs.next', function( event, cbtabs, currentTab, nextTab ) { console.log( 'navigated right' ); });

You can then do a fetch call during these or Matomo API call if you included the SDK as needed.

- Client-side validation triggers: Detecting when a required field or formatting rule (such as password complexity or email format) blocks progression so we can refine our field hints.

You'll need to bind go the CBValidation jQuery events for that. The below should work fine.
Code:
$( '.cbRegistration .cbValidation' ).on( 'cbvalidate.validate', function( cbvalidate, valid ) { console.log( 'is registration valid? ' + ( valid ? 'yes' : 'no' ) ); });

There's a few other more specific events as well and have listed them below.
Code:
$( '.cbRegistration .cbValidation' ).on( 'cbvalidate.success', function( cbvalidate, label, element ) { console.log( element ); }); $( '.cbRegistration .cbValidation' ).on( 'cbvalidate.showerrors', function( cbvalidate, errorMap, errorList ) { console.log( errorMap ); });

- Field-level interaction time: Measuring how long visitors spend on each step before moving forward or exiting.

We do not track that in any way. You'll need to implement your own JavaScript for that.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: okp-medezide

Please Log in or Create an account to join the conversation.

Moderators: beat, nant, krileon
Powered by Kunena Forum