They host a script, and provide an code to place on your website. You'll need to learn basic Javascript before you get to the point where you have a script that changes based on a user ID.
Hellobar (and a service I am working on) provide variable content based on an ID by requesting a "configuration" file from a server with the provided ID.