analytics script for RFC 6749 & 6750