# Tracking lost between 2 domains

**URL:** <https://community.hubspot.com/t/tracking-lost-between-2-domains/79748>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, forms, timeline-and-extensions-apis\
**Created:** [April 20, 2023, 2:51pm UTC](https://community.hubspot.com/t/tracking-lost-between-2-domains/79748 "2023-04-20T14:51:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebdec](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Sebdec](https://community.hubspot.com/u/Sebdec)\
**Post date:** [April 20, 2023, 2:51pm UTC](https://community.hubspot.com/t/tracking-lost-between-2-domains/79748/1 "2023-04-20T14:51:00Z")

</div>

Hi,

My goal is to Keep all tracking of viewed pages when creating a contact after navigating on 2 domains

Domains

- **[11111.com](http://11111.com)**

- **[22222.com](http://22222.com)**

Use case:

- tracking enabled (script hubspot) on both domains

- user navigates on

- user clicks on a link redirecting to

- user navigates on

- user submits a form on

Result:

- ✅ contact created in hubspot

- ❌ Tracking of viewed pages on

- ✅ Tracking of viewed pages on

How is it possible to keep the tracking of the first domain?

it’s a use case that seems very classic so what am I missing?

Thanks in advance for your help 🙏

---

<div class="post-metadata">

**Author:** ![HunorSZ](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/hunorsz/32/31257_2.png) [@HunorSZ](https://community.hubspot.com/u/HunorSZ)\
**Post date:** [April 20, 2023, 4:10pm UTC](https://community.hubspot.com/t/tracking-lost-between-2-domains/79748/2 "2023-04-20T16:10:07Z")

</div>

Hi!

Once I had a similar scenario. I saved the UTM params coming from

**[11111.com](http://11111.com)**

to

**[22222.com](http://22222.com)**

in the browser (use session/local storage or indexeddb). I did that to be able to retrieve them later in case the user navigated somewhere else and came back later, but without UTM params this time. When the user uploaded the form, I added to it the UTM params too.

Hope this helps,

Hunor

---

<div class="post-metadata">

**Author:** ![Sebdec](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Sebdec](https://community.hubspot.com/u/Sebdec)\
**Post date:** [April 20, 2023, 5:03pm UTC](https://community.hubspot.com/t/tracking-lost-between-2-domains/79748/3 "2023-04-20T17:03:01Z")

</div>

Hi Hunor,

The problem is not to lose the utms but to lose the pages tracked by the navigation on

**[11111.com](http://11111.com)**

---

<div class="post-metadata">

**Author:** ![HunorSZ](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/hunorsz/32/31257_2.png) [@HunorSZ](https://community.hubspot.com/u/HunorSZ)\
**Post date:** [April 20, 2023, 5:20pm UTC](https://community.hubspot.com/t/tracking-lost-between-2-domains/79748/4 "2023-04-20T17:20:49Z")

</div>

I would suggest trying the behavior in an incognito window and checking if the cookie has the same value for both pages and if the tracking script is installed correctly and working when you navigate away.

I’ll keep you updated if I’ll have any better ideas.

---

<div class="post-metadata">

**Author:** ![Sebdec](https://avatars.discourse-cdn.com/v4/letter/s/c37758/32.png) [@Sebdec](https://community.hubspot.com/u/Sebdec)\
**Post date:** [April 21, 2023, 6:45am UTC](https://community.hubspot.com/t/tracking-lost-between-2-domains/79748/5 "2023-04-21T06:45:18Z")

</div>

Thanks for your answer Hunor

I confirm the cookie hubspotutk has the same value and the same script is added on both domains as well.
