# Click tracking with resultView - any examples out there

**URL:** <https://discuss.elastic.co/t/click-tracking-with-resultview-any-examples-out-there/233239>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [May 19, 2020, 4:25am UTC](https://discuss.elastic.co/t/click-tracking-with-resultview-any-examples-out-there/233239 "2020-05-19T04:25:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![georgina](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@georgina](https://discuss.elastic.co/u/georgina)\
**Post date:** [May 19, 2020, 4:25am UTC](https://discuss.elastic.co/t/click-tracking-with-resultview-any-examples-out-there/233239/1 "2020-05-19T04:25:27Z")

</div>

Hi,

I'm using search-ui and am trying to enable link click tracking, using resultView as below.

```
<Results
titleField="title"
urlField="url"
shouldTrackClickThrough={true}
clickThroughTags={['Documents']}
resultView={ResultView}
/>

```

However, I am trouble getting started and wondered if there are any examples combining click tracking with resultView to assist getting started?

---

<div class="post-metadata">

**Author:** ![JasonStoltz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasonstoltz/32/49893_2.png) [@JasonStoltz](https://discuss.elastic.co/u/JasonStoltz)\
**Post date:** [June 5, 2020, 11:28am UTC](https://discuss.elastic.co/t/click-tracking-with-resultview-any-examples-out-there/233239/2 "2020-06-05T11:28:00Z")

</div>

Hey @georgina. All you should need to do is ensure that `onClickLink` is being called when the link is clicked. You can see the default view for an example: [https://github.com/elastic/search-ui/blob/master/packages/react-search-ui-views/src/Result.js#L78](https://github.com/elastic/search-ui/blob/master/packages/react-search-ui-views/src/Result.js#L78)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 3, 2020, 11:28am UTC](https://discuss.elastic.co/t/click-tracking-with-resultview-any-examples-out-there/233239/3 "2020-07-03T11:28:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
