I have solved it now! And it was a stupid mistake, just that I had not swapped out the client ID in the template from a placeholder to my own.