Generate different pages based on utm parameters


I have been searching for this requirement for a few days. Before I start building the site with Hugo, I like to make sure this can be done.

My current Wordpress site displays the different content based on utm parameters for the same pages/articles.

For example,

It is same article but some parts of the article will have different resources, advertisements, offers etc.
I know I can use javascript if they are just simple hyperlinks, but in this case, they are not just the links.

Please advise where I could find the information to achieve that.

Thank you.

You can also use Javascript to access the query string of the page (see a lot of examples here), which you can then use to load the different resources and advertisements you want.

Thank you.