You can easily integrate Google Consent Mode V2 with Cookie Consent. Create the gtag function and set the consent states as denied, load the Google script and then use the callbacks from Cookie Consent to update the consent states based on user acceptance.