Tag integral theory