def _add_tracking_summary_to_resource_dict(resource_dict, model):
    """Add page-view tracking summary data to the given resource dict.

    """
    tracking_summary = model.TrackingSummary.get_for_resource(resource_dict
        ['url'])
    resource_dict['tracking_summary'] = tracking_summary
