A method, computer program product and computer system to track and test custom webpage components is provided. A processor retrieves a production webpage. A processor determines a custom component of the production webpage. A processor retrieves component metadata associated with the custom component. A processor generates a hidden element in the production webpage including the component metadata, wherein the production webpage is configured to make the hidden element visible in response to an event.