Since installing Cloudflare I have had a lot of trouble getting Google to index my site - I keep getting “Duplicate, submitted URL not selected as canonical” errors as Google is selecting the non www as canonical and is VERY slow to recognise the rel=canonical www version. It has been almost a month and only a few pages have been moved to valid.
The other major problem that is related to this is my sitemap - I had 104 URLs discovered in search console - which is the total of 3 categories - pages, posts and portfolios. The suddenly 2 days ago it dropped to 64 URLs. I noticed that only pages and portfolios have been discovered and posts have disappeared - even though posts are on the site map. I have submitted the posts sitemap separately and it was successful. Someone in the Google support community suggested this might have something to do with Cloudflare? Any ideas?