modified external click counter to only count clicks exiting from app (using token)