# Need to install a service worker in the root dierctory

**URL:** <https://forum.wixstudio.com/t/need-to-install-a-service-worker-in-the-root-dierctory/9894>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [August 30, 2018, 5:11pm UTC](https://forum.wixstudio.com/t/need-to-install-a-service-worker-in-the-root-dierctory/9894 "2018-08-30T17:11:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![doc](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/doc/32/6079_2.png) [@doc](https://forum.wixstudio.com/u/doc)\
**Post date:** [August 30, 2018, 5:11pm UTC](https://forum.wixstudio.com/t/need-to-install-a-service-worker-in-the-root-dierctory/9894/1 "2018-08-30T17:11:44Z")

</div>

I have the code written and its been tested but in order to use it in the https I need to install it in the root directory of my website… its in javascript btw, I am not familiar with WIX coding structure enough to feel confident and am looking for someone to give me a nice step by step walkthrough to properly place this code. Thanks

---

<div class="post-metadata">

**Author:** ![admin-23](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/admin-23/32/708_2.png) [@admin-23](https://forum.wixstudio.com/u/admin-23)\
**Post date:** [September 2, 2018, 3:39pm UTC](https://forum.wixstudio.com/t/need-to-install-a-service-worker-in-the-root-dierctory/9894/2 "2018-09-02T15:39:14Z")

</div>

Hi Michele,

It is not possible to upload files directly to the root directory of your Wix site.  
These files are generated and managed automatically by Wix.

To learn more about Wix Code please see below

> **[About Velo by Wix | Help Center | Wix.com](https://support.wix.com/en/article/about-velo-by-wix)**
>
> Visit the Velo by Wix website to onboard and continue learning.Velo is an open development platform that accelerates the way you build web applications.Work in

---

<div class="post-metadata">

**Author:** ![julianalealnunez](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@julianalealnunez](https://forum.wixstudio.com/u/julianalealnunez)\
**Post date:** [February 11, 2020, 5:02pm UTC](https://forum.wixstudio.com/t/need-to-install-a-service-worker-in-the-root-dierctory/9894/3 "2020-02-11T17:02:04Z")

</div>

is this still the case? there are lead generation tools like subscribers.com that i can’t use if i can’t upload to the root directory.

Please advise, thank you.

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [February 11, 2020, 7:50pm UTC](https://forum.wixstudio.com/t/need-to-install-a-service-worker-in-the-root-dierctory/9894/4 "2020-02-11T19:50:27Z")

</div>

This is an old post from 2018 and as Ido has said, you can’t get to the root of your Wix site.

You can however, add your html code from a third party to a new custom tool in Tracking and Analytics that you can put in your head, body or end section.  
[https://support.wix.com/en/article/embedding-custom-code-to-your-site](https://support.wix.com/en/article/embedding-custom-code-to-your-site)  
[https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site](https://support.wix.com/en/article/using-iframes-to-display-visible-content-on-your-site)

Or, if the third party has a API (preferably REST), then you can expose your Wix site to their API.  
[https://www.wix.com/corvid/reference/wix-fetch.html](https://www.wix.com/corvid/reference/wix-fetch.html)  
[https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api](https://support.wix.com/en/article/corvid-accessing-third-party-services-with-the-fetch-api)  
[https://www.wix.com/corvid/reference/wix-http-functions.html](https://www.wix.com/corvid/reference/wix-http-functions.html)  
[https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions](https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions)  
Example:  
[https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-myapi-and-myapiclient](https://www.wix.com/corvid/forum/corvid-tips-and-updates/example-myapi-and-myapiclient)

Finally, check third parties own websites, like with [Subscribers.com](http://Subscribers.com)…  
[https://subscribers.freshdesk.com/support/home](https://subscribers.freshdesk.com/support/home)  
It is amazing what you can find there already…  
[https://subscribers.freshdesk.com/support/solutions/articles/35000119671-wix-installation](https://subscribers.freshdesk.com/support/solutions/articles/35000119671-wix-installation)

Please add a new post if you still require help with this issue
