# Problems with Google Analytics Site Search Tracking

**URL:** <https://community.swiftype.com/t/problems-with-google-analytics-site-search-tracking/620>\
**Category:** General\
**Tags:** analytics\
**Created:** [March 19, 2018, 8:15pm UTC](https://community.swiftype.com/t/problems-with-google-analytics-site-search-tracking/620 "2018-03-19T20:15:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mike](https://sea1.discourse-cdn.com/flex019/user_avatar/community.swiftype.com/mike/32/37_2.png) [@mike](https://community.swiftype.com/u/mike)\
**Post date:** [March 22, 2018, 12:12am UTC](https://community.swiftype.com/t/problems-with-google-analytics-site-search-tracking/620/3 "2018-03-22T00:12:04Z")

</div>

Hi there,

Here is a related thread with a workaround:

> [@How to add query parameter before #stq= fragment](https://community.swiftype.com/t/how-to-add-query-parameter-before-stq-fragment/468):
>
> Google Analytics doesn’t track HTML fragments (the portion of the url after the #). However the Swiftype search url looks like [www.example.org/search/](http://www.example.org/search/)#stq=test&stp=1. The Google Analytics tutorial here: [How to use Swiftype with Google Analytics | Swiftype Documentation](https://swiftype.com/documentation/tutorials/ga) says to use the stq query parameter. Is this out of date since the stq is a fragment instead of a query parameter? How can I add the search query parameter so that it can be tracked? Something like: [www.example.org/search/](http://www.example.org/search/)?stq=…

---

_[View the full topic](https://community.swiftype.com/t/problems-with-google-analytics-site-search-tracking/620)._
