I have created a function to inject gated content onto a page once a user signs up. The function works using the following flow: