implementing mongodb to record article clicks