Only AEM has integration with Analytics. If you were building your forms in AEM - this would be a supported use case.
AEM can be integrated with Adobe Analytics directly or via DTM.
As mentioned by Scott, See the article
// It covers integration of AEM with Analytics via DTM and integration of AEM with Adobe Target via
I am also moving this post to AEM "Forms" topic so that contextual experts can help you further.
Technically you could embed analytics into your XFA PDF, and trigger the calls using the events in the PDF and use the Net.HTTP.request libraries to send the requests to your analytics server.
However the user experience would not a be a good one. You would need a Reader Extended PDF to allow the Net libraries to actually send requests, but every time it tried to send analytics back to the server the user would be prompted to allow or deny the connection.