Tehmoor Hussain, 24, suffered serious stomach injuries when a sawn-off shotgun was fired at the Katz Kutz barbershop in Wolverhampton Road, Birchills, Walsall, on May 19, 2019.
Uzair Shahid is on trial at Wolverhampton Crown Court accused of attempting to murder Mr Hussain.
Yesterday the jury was told that at the time of the incident one of the defendants Shahid, 21, was subject to an electronic ankle tag curfew which meant he had to be at his registered address between the hours of 6pm and 6am.
Giving evidence, expert witness Kate Parton said she had conducted a search of the home monitoring unit database which showed that Shahid arrived at his home in Lichfield Street, Rushall, at 6.05pm.
Miss Parton said: "He remained at home for the rest of the night, but left a little earlier than his curfew time the next day."
The jury previously heard that Shahid's tag pinged off other monitoring units – owned by others who wore tags.
The court heard that there were no operational units in the vicinity of the barbershop at the time. The prosecution alleges that there was a correlation between the defendant’s location and the location of a black BMW said to be used by the defendants on the day of the shooting.
The BMW 4x4 was allegedly found burnt out around an hour and a half after the shooting at 6.37pm in Avion Close, in Walsall.
Miss Parton told the court that the data showed that Shahid was not at that location at 6.05pm.
Shahid, denies attempted murder, causing grievous bodily harm with possession of a firearm intent with intent to endanger life.
Toyub Ali, 19, of no fixed abode, denies possession of a firearm with intent to cause fear or violence.
The trial continues.