How can we test production script on local environnement ?

Hello,

We are integrating the visitor identification on the live chat. It works fine on local environnement with our dev-sandbox project tracking code.

If I use the tracking code from our production project in our local environnement, it doesn’t work. The script is not working, the chat live is not loaded. We also use the production Hubspot token on back-end side. The token for the visitor identification is weel generated, and we can see the request in our production log in Hubspot.

Do you know how can we test production tracking code on local environnement ?