To integrate Axeptio with Segment.io you’ll have to modify the segment script to work with Axeptio generated consents.

 <script>
  !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="<https://cdn.segment.com/analytics.js/v1/>" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="YOUR_WRITE_KEY";analytics.SNIPPET_VERSION="4.15.2";

   // Start of modification

  window._axcb = window._axcb || [];
  window._axcb.push(function(sdk){
    sdk.on('cookies:complete', function(choices){

      analytics.load("YOUR_WRITE_KEY", { integrations: { All: false, 'Google Analytics': choices.google_analytics, 'Segment.io': choices.segment}});

      // You'll have to complete with your various cookies, following the structure 'Google Analytics': choices.google_analytics,
      // generally : 'Name of vendor in segment': choices.nameOfCookieInAxeptio 

     
    });
  });
  
  // End of modification

  analytics.page();
  }}();
</script>

https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/#load-options