I've had the problem of Confluence not being ranked well in Google, so I'm sharing the tool I've built, SEO Manager add-on for Confluence.
How to install
If you want the SEO Add-on to override your page title, please go to Confluence Administration -> Layouts -> Main Layout -> Edit and replace:
Write a sitemap.xml and robots.txt
For each page, define a description (to be displayed in the search engine) and an image
Available on the Atlassian Marketplace!