Sorry, but that is not the way to it. It already works in the regular tracking as you can use the contacts ID directly in your tracking.
Please refer to your API to see how the email can be picked directly from an URL as part of HubSpot tracking.:
https://legacydocs.hubspot.com/docs/methods/tracking_code_api/identify_visitor