Gyokeres, who is on a season-long loan with the Hamburg-based club, came off the bench to slot home the only goal six minutes from time in the Bundesliga’s second tier. Albion team-mate Leo Ostigard played the full 90 minutes for St Pauli.
The celebrations were somewhat different as St Pauli usually play in front of 25,000 fans at the Millerntor.
Gyokeres, who was the second of five substitutions due to the new regulations, said: "Nuremberg had a good chance in the first half. But we worked hard and they didn't create too many other chances.
“We got into the game in the second half and I was pleased to get my goal. I'm happy that I was able to help the team get three points.”
St Pauli coach Jos Luhukay said: “The atmosphere was difficult but I thought the players adapted well. We played a strong opponent who caused us problems but Viktor’s was a good individual goal and finish.”
Former Albion Markus Suttner and Uwe Huenemeier were also in action as Suttner's Dusseldorf and Huenemeier's Panderborn contested a 0-0 draw.
“We feel really comfortable with all the restrictions and really comfortable with the German league’s plan." said Huenemeier.
“We felt quite happy to play and we had waited a long time for that."
A message from the Editor, Gary Shipton: In order for us to continue to provide high quality and trusted local news, I am asking you to please purchase a copy of our newspapers.
With the coronavirus lockdown having a major impact on many of our local valued advertisers - and consequently the advertising that we receive - we are more reliant than ever on you helping us to provide you with news and information by buying a copy of our newspapers.
Our journalists are highly trained and our content is independently regulated by IPSO to some of the most rigorous standards in the world. But being your eyes and ears comes at a price. So we need your support more than ever to buy our newspapers during this crisis.
Stay safe, and best wishes.