Revert "Removes pageTypes from metadata."

This reverts commit 91d7dab040b0f4fe7ee9e393a489403eb3c87b92.