Need to configure or record in custom db from which web page the user is interacting or the chat is escalated to live agent

I have a use case, can anyone Help:

Need to configure or record in custom db from which web page the user is interacting or the chat is escalated to live agent. There are multiple support sites of the client where the bot is hosted now we need to check from which webpage(support site) the customer interacted with bot and transferred chat to live agent.

I can see in events, there is one event named “page-url-based-trigger” will this help or do we have any other feature.

In studio, you can use the variable node and set the url using {{pageUrl}}
Then you can insert it into a db along with other details either before creation or after ticket resolution

Thank You so much, let me configure it.