Paste this code between the <head> and </head> on all the pages where you want to show the survey.
Next in your application, as early as possible, initialize Gradian