Need help with multiple form

Hi Team,

I have a form with 2 separate sections on 2 separate pages.
Now I am pushing the information using jquery via custom variable to the piwik and can see details under Visitor logs section.
For 1st form-1st page it pushes information to piwik but in case of 2nd form it doesn’t work.
So how can I achieve this, do I need to create an object on 1st page and pass it to 2nd page or need to use any other method/function.
Final expected result would be the details of both section under same visitor in ‘Visitor Log’ section.

Feedback appreciated.