text: The visitors took the lead when a clever dummy from the impressive Oscar Dorley set up Maksim Maksimov to net.
  Defender Joe Shaughnessy headed home Liam Craig's corner to level but Trakai responded with a stunning long-range strike from Vaidotas Silenas.
  Craig and Graham Cummins wasted chances as Saints failed to find an equaliser.
  Trakai finished with 10 men as Silenas picked up a second yellow card with eight minutes left, but the visitors held on.
  St Johnstone made a positive start but Trakai carved out the first opening in the seventh minute. A cross found Aliaksandr Bychanok, but his diving header went wide.
  The Lithuanian side looked technically accomplished with 18-year-old Liberian Dorley causing Saints plenty of problems, and the visitors took the lead with a fine move in the 14th minute. A low cross into the box found Maksimov, who fired smartly past Zander Clark.
  The hosts should have equalised when Blair Alston broke through the centre of the FK Trakai defence but he fired straight at the keeper. The rebound fell to Cummins, who had his first shot blocked before blazing his second over the bar.
  Richard Foster's shot was diverted wide by Arunas Klimavicius, and from the resultant corner St Johnstone equalised, Shaughnessy heading home from close range into the corner.
  But the joy for the home fans was short-lived as FK Trakai took the lead for a second time. A fantastic strike from Silenas from range flashed past Clark. The noise levels inside McDiarmid Park dipped once more.
  At the start of the second half Dorley played in Alma Wakili down the left hand side but he fired his shot well wide of the post.
  Saints manager Tommy Wright brought on new signing Stefan Scougall in the hope of improving the levels of creativity from the home side.
  His ball from the flank presented Craig with a great chance to equalise, but the midfielder volleyed his shot high over the crossbar.
  Then an even better chance. From a poor Saints corner the ball fell fortuitously to the feet of Scougall. He lashed in a low shot which beat the keeper, but struck the post.
  FK Trakai remained a danger, Clark saving well from Maksimov, but St Johnstone had further opportunities.
  Alston burst through from midfield and engineered a chance at the edge of the box, but his shot was deflected wide.
  From the resultant corner Saints had the ball in the net from another Shaughnessy header, but the referee blew his whistle for a foul on the keeper.
  Silenas was sent off for a second bookable offence, but the home side could not capitalise.
  Alston again created an opening and as the ball flashed across goal, it fell straight to Cummins, but from five yards out the striker's shot was too close to Trakai keeper Ignas Plukas, who blocked the ball with his trailing foot.
  St Johnstone boss Tommy Wright: "Obviously, the result is disappointing. The second goal is criminal from us. It was a great finish but the ball should never get to him.
  "We were sloppy at times in possession but I thought we created enough chances to get back in the game. But we probably didn't do enough over the 90 minutes.
  "Every one of the teams in this competition are all probably technically better than us, that's why we can't allow them time on the ball. We didn't get in about them enough in the first half.
  "We will have to be better in the second leg and I think we will be better. The two away goals is a huge advantage for them but I wouldn't rule us out."
target: St Johnstone need to score at least twice in Lithuania next week after losing their Europa League first round qualifying home tie with FK Trakai.