From Science Center:
...you find that the anoli, a lizard relative of the gecko, does indeed have a functioning gene for the sweet taste receptor T1R2. Therefore, the geckos in the video can likely taste the sugar, and aren't just making repetitive licking motions.