# User's location via API

**URL:** <https://community.swiftype.com/t/users-location-via-api/304>\
**Category:** General\
**Created:** [January 17, 2017, 7:50pm UTC](https://community.swiftype.com/t/users-location-via-api/304 "2017-01-17T19:50:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthewcrist](https://sea1.discourse-cdn.com/flex019/user_avatar/community.swiftype.com/matthewcrist/32/78_2.png) [@matthewcrist](https://community.swiftype.com/u/matthewcrist)\
**Post date:** [January 17, 2017, 7:50pm UTC](https://community.swiftype.com/t/users-location-via-api/304/1 "2017-01-17T19:50:56Z")

</div>

We’re primarily using the API to search our site. This means that in the analytics, all of our users are coming from the same location (the server we’re hosting the search on). Is there a way to work around this?

---

<div class="post-metadata">

**Author:** ![cpatton](https://avatars.discourse-cdn.com/v4/letter/c/f04885/32.png) [@cpatton](https://community.swiftype.com/u/cpatton)\
**Post date:** [January 18, 2017, 11:52pm UTC](https://community.swiftype.com/t/users-location-via-api/304/2 "2017-01-18T23:52:53Z")

</div>

Unfortunately, there isn’t a workaround for the Live Analytics available in the dashboard. You would have to use a client-side search implementation, instead of hosting search on the server.

You may be able to use [Google Analytics site search with Swiftype](https://swiftype.com/documentation/tutorials/ga) to track user searches by location.
