Thursday, February 7, 2019

Google analytics integration to google search appliance GA to GSA



How to integrate Google Analytics to Google Search Appliance

What is a Google Search Appliance (GSA) ? 

Google Search Appliance combines the search expertise of Google with features that meet today’s business requirement

What is google analytics ( GA) ?

The Google Analytics Platform lets you measure user interactions with your business across various devices and  environments, at Google speed and scale.Gain new insights and optimize the
performance of your business
Details.
At the basic level of integration, the GA tracking script is added to all pages served from a specific GSA front end. In GA, you can see the number of visits, page views, average time on page, and specific pages that were viewed. The Site Search tab is also enabled within GA, providing reports on top search terms as well as search engagement. With this data, you are able to provide simple, elegant, and free analytics. This, coupled with Advanced Search Reporting and search logs can demonstrate ROI and assist in quantifying the business value of search.

Integration

If you have already created  XSLT
Then just put your account Id so you will be able to get tracking of your search appliances in Google analytics account

  <!-- *** analytics information *** -->
  <xsl:variable name="analytics_account">Update your Account ID here</xsl:variable>

  <!-- **********************************************************************
 Analytics script (do not customize)
     ********************************************************************** -->
  <xsl:template name="analytics">
    <xsl:if test="string-length($analytics_account) != 0">
      <script type="text/javascript" src="{$analytics_script_url}"></script>
      <script type="text/javascript">
        var pageTracker = _gat._getTracker("<xsl:value-of select='$analytics_account'/>");
        pageTracker._trackPageview();
      </script>
    </xsl:if>
  </xsl:template>



Benefits.
What Result We will Get by integrating of Google analytics to Google Search Appliances.

After integration we are able to generate graphs and reports in GA panel for the following aspects:

● Most relevant search terms for new visitors and returning visitors
● Percentage of visitors on your external website that perform searches
● The pages on your external site where these searches originate
● Percentage of search refinements and search depth ratio 

In the attached screen shots we can see what result we will get 









 

 

 

 

 

 

 

Technical implementation

1. Create a Google Analytics account, or obtain admin access to an existing account for your
domain.

Once you add a web property to an account, Analytics creates the first profile for the property.

2. Create a different profile for each front end that you would like to gather data from.

3. In Google Analytics, go to the Admin console of your profile and open the Tracking Code tab.

4. In the Admin Console of the GSA, go to Search Search Features > Front Ends (Previous to Version 7.2: Serving > Front Ends) and edit the front end you would like to track. In the Page
Layout Helper, expand the Global Attributes section and paste your analytics Tracking ID into
the Analytics Account field.

5. For more information on granting other users access to GA reports, see Add/modify/delete users.

6. Enable Site Search Tracking, as described in Set up and configure Site Search.

You may want to familiarize yourself with the various GSA Request Parameters that you can use
when setting up site search tracking. The default query parameter is q . 

Best of Luck!:)

Hope it helps some one.

Feel free to ask any question.





















No comments:

Post a Comment