Skip to main content
Closed for Voting

Search term in autocomplete results for Google Analytics

Related products:Freshdesk
  • June 30, 2016
  • 3 replies
  • 19 views

Autocomplete search on the customer portal is a great feature however using this can stop data from being passed to Google Analytics.


We need the autocomplete results to include the search term within the link URL.


Example:

 

Current HTML
<li class="article-item ui-menu-item" id="ui-id-32" tabindex="-1"><a href="/support/solutions/articles/14000027079-sales-"><span class="match">Sales</span> </a> <span class="label label-small label-light">Reporting</span></li>

Updated HTML
<li class="article-item ui-menu-item" id="ui-id-32" tabindex="-1"><a href="/support/solutions/articles/14000027079-sales-?term=sales"><span class="match">Sales</span> </a> <span class="label label-small label-light">Reporting</span></li>

 

3 replies

  • Community Debut
  • May 21, 2019

Yes, i second this request. Search terms are only tracked if the user clicks the search button. Unfortunately, search terms are not tracked if the user clicks from the list of selected articles instead of the search button. How do we capture search terms in Google Analytics for the second scenario listed above?


  • Author
  • Contributor
  • May 22, 2019

Carlos! Thank you for backing this.


I requested this 3 years ago and after chasing for months i gave up, along with all my other ideas and fixes...


Apparently its not important to understand the search terms your customers are using.


  • Community Debut
  • May 22, 2019

Absolutely! We currently can an incomplete picture of what customers are searching for. I need the full view of search to identify needs, fill gaps in content, and inform our product team of potential areas for more investment. The current functionality serves to only reinforce what we already have available.