Using CRM variables to personalize dynamic pages

Dear all,
we are using Sharpspring and Pardot as Marketing Automation Tools. While we are now able to track our visitors accordingly, we would like to get on step further and personalized our Webpages based on the Information from the CRM component.
We are told to use the tracking script and include an additional script. I got this working in General with the HTML script (so ist works with an alert), but I would like to include a TextBox saying “Hello Julia” and Show Pictures based on preferences.
How can we achieve this?
Perfect would be including somewhere a reference and then be able to use this in the database Collection as well as in HTML

Kind regards,
Julia

Here is an example of the Code we would like to use:
Example

Hi There,