How can I use Google Analytics with Swiftype?

I want to set up Google Analytics to track Swiftype search queries as site search. How do I do this?

With some configuration updates in the Google Analytics dashboard, it’s possible to pass Swiftype search query data. Once set up and with Google Analytics installed on your page, the Swiftype search code will ping Google Analytics with the search terms used.

To enable site search tracking in GA, you can refer to our Google Analytics tutorial.