A method, comprising: providing, to a client device, configuration data specifying a set of whitelisted views of a publisher, each whitelisted view being a view from which content is eligible to be collected and transmitted from the client device; receiving, from the client device and for a user session in which a user interacted with one or more user interfaces of the publisher presented by an application, user interface data including view data specifying, for each user interface of the one or more user interfaces, a hierarchical structure of views used to generate a respective user interface of the one or more user interfaces presented during the user session, user interaction data specifying user interactions with the one or more user interfaces, and content of one or more first presented user interface elements that i) were presented by the one or more user interfaces, ii) were generated from a view that matches a whitelisted view specified by the configuration data, and iii) were generated from a view of a respective user interface, wherein the view was not completely obstructed by other views in the respective user interface, wherein the application does not provide content of one or more second presented user interface elements that were generated from a view that does not match a whitelisted view specified by the configuration data; and generating, based on the user interface data, playback of the user session that presents the one or more user interfaces, the content of the one or more first presented user interface elements, the user interactions with the one or more user interfaces, and, for content of the one or more second presented user interface elements, a masking element that represents the content of the one or more second presented user interface elements while masking actual content of the one or more second presented user interface elements. providing, to a client device, configuration data specifying a set of whitelisted views of a publisher, each whitelisted view being a view from which content is eligible to be collected and transmitted from the client device; receiving, from the client device and for a user session in which a user interacted with one or more user interfaces of the publisher presented by an application, user interface data including view data specifying, for each user interface of the one or more user interfaces, a hierarchical structure of views used to generate a respective user interface of the one or more user interfaces presented during the user session, user interaction data specifying user interactions with the one or more user interfaces, and content of one or more first presented user interface elements that i) were presented by the one or more user interfaces, ii) were generated from a view that matches a whitelisted view specified by the configuration data, and iii) were generated from a view of a respective user interface, wherein the view was not completely obstructed by other views in the respective user interface, wherein the application does not provide content of one or more second presented user interface elements that were generated from a view that does not match a whitelisted view specified by the configuration data; and view data specifying, for each user interface of the one or more user interfaces, a hierarchical structure of views used to generate a respective user interface of the one or more user interfaces presented during the user session, user interaction data specifying user interactions with the one or more user interfaces, and content of one or more first presented user interface elements that i) were presented by the one or more user interfaces, ii) were generated from a view that matches a whitelisted view specified by the configuration data, and iii) were generated from a view of a respective user interface, wherein the view was not completely obstructed by other views in the respective user interface, wherein the application does not provide content of one or more second presented user interface elements that were generated from a view that does not match a whitelisted view specified by the configuration data; and generating, based on the user interface data, playback of the user session that presents the one or more user interfaces, the content of the one or more first presented user interface elements, the user interactions with the one or more user interfaces, and, for content of the one or more second presented user interface elements, a masking element that represents the content of the one or more second presented user interface elements while masking actual content of the one or more second presented user interface elements.