Affiliate referral link not working with Cloudflare caching

When Cloudflare caching is enabled in my Woocommerce site, I think the affiliate referral string is being stripped off. For example, “” shows the referral string. If I disable caching, the referral string is recognized by the affiliate plugin as a click. Is there a setting that I’m missing?