# Form Embedding on External Site

**URL:** <https://community.hubspot.com/t/form-embedding-on-external-site/102758>\
**Category:** Tips, Tricks & Best Practices\
**Tags:** professional\
**Created:** [March 16, 2024, 8:12pm UTC](https://community.hubspot.com/t/form-embedding-on-external-site/102758 "2024-03-16T20:12:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajinkyamurtey](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@ajinkyamurtey](https://community.hubspot.com/u/ajinkyamurtey)\
**Post date:** [March 16, 2024, 8:12pm UTC](https://community.hubspot.com/t/form-embedding-on-external-site/102758/1 "2024-03-16T20:12:25Z")

</div>

Hi,

Say if we have below two websites and both of them are created in WordPress.

[www.abc.com](http://www.abc.com)

[www.xyz.com](http://www.xyz.com)

In HubSpot I have added brand domain as [abc.com](http://abc.com)

So can I embed HubSpot forms on [xyz.com](http://xyz.com) so that those form records gets auto captured in HS.

If yes, please let me know steps to take for the same.

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [March 16, 2024, 8:40pm UTC](https://community.hubspot.com/t/form-embedding-on-external-site/102758/2 "2024-03-16T20:40:02Z")

</div>

Hi @ajinkyamurtey,

Yes, you can embed forms on pretty much any page by following these steps: [Set up and style a legacy form on an external site](https://knowledge.hubspot.com/forms/how-can-i-share-a-hubspot-form-if-im-using-an-external-site)

Best regards!

---

<div class="post-metadata">

**Author:** ![ajinkyamurtey](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@ajinkyamurtey](https://community.hubspot.com/u/ajinkyamurtey)\
**Post date:** [March 16, 2024, 8:49pm UTC](https://community.hubspot.com/t/form-embedding-on-external-site/102758/3 "2024-03-16T20:49:59Z")

</div>

@karstenkoehler thanks for your response so despite of the brand domain I connect I can embed HS forms on both website of ours, right.

And do I need to add tracking code on both website?

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [March 17, 2024, 5:46am UTC](https://community.hubspot.com/t/form-embedding-on-external-site/102758/4 "2024-03-17T05:46:38Z")

</div>

@ajinkyamurtey you don’t have to but it’ll increase the amount of data that are being captured and passed along with the form submission, such as first page seen, original source information etc.

---

<div class="post-metadata">

**Author:** ![ajinkyamurtey](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@ajinkyamurtey](https://community.hubspot.com/u/ajinkyamurtey)\
**Post date:** [March 17, 2024, 6:11am UTC](https://community.hubspot.com/t/form-embedding-on-external-site/102758/5 "2024-03-17T06:11:49Z")

</div>

@karstenkoehler, thanks again. I do want to capture these details. So would it be ideal to add tracking code on both websites? Please advise.

Because we do run paid search campaigns to acquire traffic on both websites.

---

<div class="post-metadata">

**Author:** ![karstenkoehler](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/karstenkoehler/32/68554_2.png) [@karstenkoehler](https://community.hubspot.com/u/karstenkoehler)\
**Post date:** [March 17, 2024, 6:24am UTC](https://community.hubspot.com/t/form-embedding-on-external-site/102758/6 "2024-03-17T06:24:08Z")

</div>

Yes it would be @ajinkyamurtey

---

<div class="post-metadata">

**Author:** ![ajinkyamurtey](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@ajinkyamurtey](https://community.hubspot.com/u/ajinkyamurtey)\
**Post date:** [March 23, 2024, 6:47am UTC](https://community.hubspot.com/t/form-embedding-on-external-site/102758/7 "2024-03-23T06:47:43Z")

</div>

@karstenkoehler , just a follow up question on this. We create multiple landing pages on WordPress through the agencies and on those I want to add hubspot forms instead of WP forms or contact 7 forms.

However, I know we can embed the HS forms through the codes. But I want to make sure the styling of landing page has to be applied on HS forms once embedded. So while creating a form if I set it as raw HTML code then will the developer able to apply styling on the form? Can you please advise here?

Thanks
