Adding consent is an important step, but since consent is being tracked as an event, the process is no different from adding any other regular event.
To add consent, follow the Add event documentation and define the event as consent with the parameters outlined in our Tracking consent documentation.