added link click counting infrastructure