calculates metrics per url