Access google analytic api

Hello, i m very new to Wix. Every time a visitor enters to website, i want to send greeting message on live chat automatically which is already done without coding. However I want to include the city of visitor and search keyword in the greeting message. eg. Hi, blabla… how is (city)? I see you are looking for (keyword). Is that possible? so i think i need to code in wix and send request to GA api?

Hi,
You can use the Tracking Tools & Analytics . For further questions about this feature, please contact Wix Support team as they know best about it.

Have a good day,
Tal.