Analytics acquistion

Hi I have an issue that Google Analytics is not identifying correct acquisition method (cpc) if I enable cloudflare. As soon as I bypass cache, Analytics is correctly identifying page views from cpc sources. I don’t understand why this would be? I also tried ‘no query string’ but this doesnt help.