# Tracking code on multiple sites

**URL:** <https://community.hubspot.com/t/tracking-code-on-multiple-sites/91841>\
**Category:** Lead Capture Tools\
**Tags:** professional\
**Created:** [October 14, 2023, 9:12pm UTC](https://community.hubspot.com/t/tracking-code-on-multiple-sites/91841 "2023-10-14T21:12:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![dwightbailey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dwightbailey/32/29368_2.png) [@dwightbailey](https://community.hubspot.com/u/dwightbailey)\
**Post date:** [October 14, 2023, 9:12pm UTC](https://community.hubspot.com/t/tracking-code-on-multiple-sites/91841/1 "2023-10-14T21:12:56Z")

</div>

Is it possible to transfer hubspot tracking code into a different site? We have a new website under a new domain and I want to ensure we can continue tracking existing web visitors etc in our hubspot crm.

---

<div class="post-metadata">

**Author:** ![johnelmer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/johnelmer/32/55984_2.png) [@johnelmer](https://community.hubspot.com/u/johnelmer)\
**Post date:** [October 14, 2023, 11:00pm UTC](https://community.hubspot.com/t/tracking-code-on-multiple-sites/91841/2 "2023-10-14T23:00:51Z")

</div>

@dwightbailey The short answer is “yes”.

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [October 15, 2023, 2:21pm UTC](https://community.hubspot.com/t/tracking-code-on-multiple-sites/91841/3 "2023-10-15T14:21:13Z")

</div>

@dwightbailey yes, you can transfer the tracking code to your new domain.

The historic data from your previous site will remain in HubSpot and the new site will start adding data as soon as the code is added.

If you’re using WordPress, you can only connect one WordPress account to HubSpot via the integration, but you can add the tracking code to as many WordPress sites as needed via the HubSpot plugin in WP.

If you’re using another CMS and have added the code manually, I recommend removing it from your old site before adding it to your new site so there’s no overlap.

---

<div class="post-metadata">

**Author:** ![AJ\_Kakrot](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@AJ\_Kakrot](https://community.hubspot.com/u/AJ_Kakrot)\
**Post date:** [April 30, 2024, 7:29pm UTC](https://community.hubspot.com/t/tracking-code-on-multiple-sites/91841/4 "2024-04-30T19:29:32Z")

</div>

@Jnix284 i have a question here, we have two website created in WordPress in this case we want to use HubSpot forms and tracking code to be added. Is that doable for both the website? Do i need to install plugin for both WordPress account?

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [April 30, 2024, 11:34pm UTC](https://community.hubspot.com/t/tracking-code-on-multiple-sites/91841/5 "2024-04-30T23:34:02Z")

</div>

Hi [@AJ\_Kakrot](https://community.hubspot.com/t5/user/viewprofilepage/user-id/724085) yes, you can add the tracking code to multiple wordpress websites. You’ll also need to [update your settings in HubSpot here](https://knowledge.hubspot.com/reports/set-up-sources-tracking#add-site-domains) to ensure everything works as expected.

---

<div class="post-metadata">

**Author:** ![AJ\_Kakrot](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@AJ\_Kakrot](https://community.hubspot.com/u/AJ_Kakrot)\
**Post date:** [May 1, 2024, 3:04am UTC](https://community.hubspot.com/t/tracking-code-on-multiple-sites/91841/6 "2024-05-01T03:04:43Z")

</div>

@Jnix284 thanks, so i need to add the domain of other sites too, right? And form embedding form do i need to install WordPress plugin for each WordPress account or can i directly add the tracking code and HubSpot forms?

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [May 1, 2024, 12:56pm UTC](https://community.hubspot.com/t/tracking-code-on-multiple-sites/91841/7 "2024-05-01T12:56:00Z")

</div>

[@AJ\_Kakrot](https://community.hubspot.com/t5/user/viewprofilepage/user-id/724085) yes, you’ll add each domain for each wordpress site that you want to track with Hubspot.

It’s up to you - if you want to use the plugin and keep your existing forms (like if you have multi-step forms) or if you want to replace your forms with HubSpot forms and use the tracking code. You’ll need to decide for each account what’s best.

---

<div class="post-metadata">

**Author:** ![AJ\_Kakrot](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@AJ\_Kakrot](https://community.hubspot.com/u/AJ_Kakrot)\
**Post date:** [May 1, 2024, 5:33pm UTC](https://community.hubspot.com/t/tracking-code-on-multiple-sites/91841/8 "2024-05-01T17:33:16Z")

</div>

@Jnix284 thanks again, so what if I do not want to use plugin. Can I directly embed HubSpot forms on WordPress and apply styling making sure the WordPress page/website has the HS tracking code will that work?

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [May 1, 2024, 11:21pm UTC](https://community.hubspot.com/t/tracking-code-on-multiple-sites/91841/9 "2024-05-01T23:21:24Z")

</div>

Yes [@AJ\_Kakrot](https://community.hubspot.com/t5/user/viewprofilepage/user-id/724085) if you replace the forms with HubSpot forms and have the tracking code configured, your data should come through without the plugin (you’ll need to test to confirm everything is working properly). You can add the styling to the form via CSS as needed.
