﻿.. include:: /Includes.rst.txt

.. _googleanalytics:

=================================
Statistics using Google Analytics
=================================

If you use Google Analytics on your website, you can use it to generate a report for search queries:

.. rst-class:: bignums-xxl

   #. Open the admin view

      .. figure:: /Images/Statistics/statistics-ga-1.png
         :alt: Admin view
         :class: with-border

   #. Activate site search

      Enable :guilabel:`Site search tracking` in Google Analytics and enter the search query `tx_kesearch_pi1[sword]`.
      Go to :guilabel:`Behaviour` > `Site search` to see the report.

      .. figure:: /Images/Statistics/statistics-ga-2.png
         :alt: Enable site search tracking
         :class: with-border

   #. Search queries will be reported under :guilabel:`Behaviour`

      .. figure:: /Images/Statistics/statistics-ga-3.png
         :alt: Site search overview
         :class: with-border
