Making analytics custom variables work on the report page