Integration of Google Lighthouse with Sitecore
Sitecore 8+
Project is build following Helix principles, but you can use it in any Sitecore project.
- Download Sitecore update package: a) from Github releases if you want stable version; b) from AppVeyor if you want latest version
- Install it using update installation wizard /sitecore/admin/UpdateInstallationWizard.aspx
- You need to inherit your pages templates from "/sitecore/templates/Foundation/Lighthouse/Partial/_Lighthouse". It is required to provide ability for tool to save service information to page item.
After installation of Sitecore update package, you will get new ribbon in Content Editor:
Buttons on Ribbon allows you run, run for all pages and sites, view chart statistics, view latest report.
It will execute Google Lighthouse for current page and save results to Lighthouse section of item.
After running it, you will be able to see latest report or chart for this page.
It will start background process to run Google Lighthouse for all websites and pages that are inherited from "_Lighthouse" template. Be patient, it takes some time to finish it for all pages on your websites.
You are able to see history of main parameters changes after running report preparation for selected item.
You are able to see latest report by clicking Latest button.
If you want to find some previous report, you can find it on disc, where your Sitecore is installed in folder App_Data\Lighthouse\Reports.
Your website summary of Google Lighthouse report is saved under /sitecore/system/Modules/Lighthouse in master database. You are able to navigate to website you are interested in and see chart statistics for it, items with worst performace, items with best performance and logs. If for some page tool was not able to gather data then path for these items and reason will be present in logs.