Generally, you shouldn't be sending your hits/beacons via code, if you're using the extension. That applies to the Analytics extension too.
With the Web SDK extension, you would still use its "Send Event" action. You would also need to rethink your process for sending the data. Despite how complicat...