# post data hosting migration setup

**URL:** <https://community.hubspot.com/t/post-data-hosting-migration-setup/121092>\
**Category:** Account & Settings\
**Tags:** ctas, crm, analytics-tools\
**Created:** [November 21, 2024, 3:09pm UTC](https://community.hubspot.com/t/post-data-hosting-migration-setup/121092 "2024-11-21T15:09:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lstepany](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lstepany/32/54675_2.png) [@lstepany](https://community.hubspot.com/u/lstepany)\
**Post date:** [November 21, 2024, 3:09pm UTC](https://community.hubspot.com/t/post-data-hosting-migration-setup/121092/1 "2024-11-21T15:09:31Z")

</div>

Hi, we have implemented a data hosting migration from US to EU and now there are incomplete fields in the HubSpot data hosting section.  
In the section “update the HS-script embed code” there are several fields with an option to copy. I do understand that the HubSpots tracking code must be pased to the external websites.  
1. Do I understand it right that all CTAs and Forms need to be updated (the embed codes) there are more then 100 CTAs and forms?  
2. How about other sections: Analytics, Collected forms, Feedback Conversations, Data privacy and consent, Ads, and Lead flows. How these need to be handled?  
3. And lastely what are the “copy” fields for? Where to past the copied values?

 ![1073121_1_HS-script embed code.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/c/4cdb6a544f578f8ebb0d94b8b89c6cf446694c35.png)

Any advice would be higly appreciated! ))

 ![1073121_1_HS-script embed code.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/c/4cdb6a544f578f8ebb0d94b8b89c6cf446694c35.png)

---

<div class="post-metadata">

**Author:** ![TomM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomm2/32/70887_2.png) [@TomM2](https://community.hubspot.com/u/TomM2)\
**Post date:** [November 21, 2024, 3:29pm UTC](https://community.hubspot.com/t/post-data-hosting-migration-setup/121092/2 "2024-11-21T15:29:43Z")

</div>

Hey @lstepany this would only be for any hardcoded embed codes.

So your main embed code, Form embed codes, CTA embed codes, meeting link embeds, feedback embeds etc.

I’m not sure why collectedforms (non-HubSpot forms) is displayed here as this is done through the main embed code/script loader.

As these are hardcoded within your website you need to manually update these as HubSpot could not reach into your website and change the HTML. The copy fields are to copy the code into your clipboard for pasting into your site.

If you’ve already migrated, just take your main HubSpot embed code from your portal and replace the one currently on your website with that, that will resolve the scriploader items, such as leadflows (pop-up forms) and collected forms (non-HubSpot forms).

Everything else you will need to review any other items you have directly embedded into your website such as forms, CTAs, meeting links etc. And then manually replace your embed codes for these with the new embed code. You can just replace the urls calling the main scripts with the updated ones, or if your migration is finished you can just replace the entire embed code.

---

<div class="post-metadata">

**Author:** ![lstepany](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lstepany/32/54675_2.png) [@lstepany](https://community.hubspot.com/u/lstepany)\
**Post date:** [November 21, 2024, 3:53pm UTC](https://community.hubspot.com/t/post-data-hosting-migration-setup/121092/3 "2024-11-21T15:53:17Z")

</div>

Thanks for fast replay @TomM2 . I really appreciate it!  
Is tracing code used in Google ads as well?

The copy fields I refered in my questin is about these fields in the screenshot bellow, that doesn’t seem to be embed code, they look more like urls.

 ![lstepany_0-1732204161487.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/2/027c2be65a306ded887d7c777ea5a6e428f9bbf6.png)

embed code is located elsewhare within HubSpot (Tracing & analytics → Tracing code).  
Did I get you correct?  
The migratin has already completed but what do you mean by: “You can just replace the urls calling the main scripts with the updated ones”.

---

<div class="post-metadata">

**Author:** ![TomM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tomm2/32/70887_2.png) [@TomM2](https://community.hubspot.com/u/TomM2)\
**Post date:** [November 22, 2024, 3:42pm UTC](https://community.hubspot.com/t/post-data-hosting-migration-setup/121092/4 "2024-11-22T15:42:01Z")

</div>

Hey @lstepany

when you migrate servers the URL HubSpot calls upon changes. For example [hs-analytics.net](http://hs-analytics.net) changes to something like [eu.hs-analytics.net](http://eu.hs-analytics.net). So if you have embedded content, such as forms, [js.hsforms.net/v2.js](http://js.hsforms.net/v2.js) would change to something like [js-eu.hsforms.net/v2.js](http://js-eu.hsforms.net/v2.js). If you’ve hard coded an embed code on your site you’ll need to update this. If it’s not hardcoded then it will be handled by the HubSpot scriptloader.

If you’re unsure about what HS elements are hard coded on your site I’d definitely recomend reaching out to your web developer or your HubSpot partner agency to find out how these were implemented for more information!

---

<div class="post-metadata">

**Author:** ![lstepany](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lstepany/32/54675_2.png) [@lstepany](https://community.hubspot.com/u/lstepany)\
**Post date:** [November 26, 2024, 8:03am UTC](https://community.hubspot.com/t/post-data-hosting-migration-setup/121092/5 "2024-11-26T08:03:03Z")

</div>

Thanks @TomM2 !
