His 87th-minute goal led El Salvador to a 3–1 win, and in doing so helped secure the national team a spot in the following round of qualification.
[6] He did not play for his country since an October 2008 FIFA World Cup qualification match against Suriname and was only over two years later called up for the 2011 Copa Centroamericana by then coach José Luis Rugamas.
With Rubén Israel as coach, Anaya was called up to take part at the 2011 CONCACAF Gold Cup where he earned 4 caps in 4 games.
In a friendly match against Venezuela, on 7 August 2011, Anaya was sent off with two yellow cards, because he complained and celebrated in front of the technical area of the Venezuelans.
On September 20, 2013, Anaya was one of 14 Salvadoran players banned for life due to their involvement with match fixing.