# Site search on different URL

**URL:** <https://community.piwik.pro/t/site-search-on-different-url/1287>\
**Category:** Data collection and tags\
**Created:** [November 23, 2022, 12:58pm UTC](https://community.piwik.pro/t/site-search-on-different-url/1287 "2022-11-23T12:58:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thpe](https://avatars.discourse-cdn.com/v4/letter/t/13edae/32.png) [@thpe](https://community.piwik.pro/u/thpe)\
**Post date:** [November 23, 2022, 12:58pm UTC](https://community.piwik.pro/t/site-search-on-different-url/1287/1 "2022-11-23T12:58:56Z")

</div>

Hi

I have a question about site search setup i Piwik Pro.

If our domain is “[domain.xy.com](http://domain.xy.com)” but our site search leads to “[sitesearchdomain.xy.com?k=searchterm](http://sitesearchdomain.xy.com?k=searchterm)”, will this work in Piwik Pro?

We seem to have some issues with the search terms not showing up, so we were wondering if they need to be aggregated into one - and that would fix it?

Thanks!

---

<div class="post-metadata">

**Author:** ![rmastop](https://dub1.discourse-cdn.com/flex005/user_avatar/community.piwik.pro/rmastop/32/29_2.png) [@rmastop](https://community.piwik.pro/u/rmastop)\
**Post date:** [November 23, 2022, 4:38pm UTC](https://community.piwik.pro/t/site-search-on-different-url/1287/2 "2022-11-23T16:38:17Z")

</div>

Hi @thpe,

Indeed merging the two sites would do, as documented here:

> **[How can I recognize a visitor across subdomains? | Piwik PRO help center](https://help.piwik.pro/support/questions/recognize-visitor-across-subdomains/)**
>
> If you collect data from a few subdomains using the same tracking code, you can turn on recognizing a visitor across subdomains (aka cross-domain tracking). Then the visitor who goes from one subdomain to the other will be recognized as the same...

In your case you would add both `https://domain.xy.com` and `https://sitesearchdomain.xy.com` in the edit field of Site or app address  
In Tag Manager navigate to the Piwik PRO tag and enable the switch Recognize a visitor across subsites  
Store cookie on this domain would have the value of `.xy.com`

Last thing to do is adding the `k` to the `Keywords from your internal search engine`, as documented here: [About site or app settings | Piwik PRO help center](https://help.piwik.pro/support/getting-started/about-site-or-app-settings/)

Or add the `k` to the global level as documented here: [About global site & app settings | Piwik PRO help center](https://help.piwik.pro/support/getting-started/about-global-settings/)

Cheers,  
Richard
