-
You need to export opportunities from https://linkstorm.io/projects
-
You need to rename the exported opportunities to
opportunities.csv
- You can deploy this repository, by clicking and following instructions.
- Once deployed, you can replace the
opportunities.csv
file into thedata/
directory of your repository.
- Clone the repository
- Place your
opportunities.csv
file into thedata/
directory of this repository - Install the project dependencies with a package manager of your choice:
npm install
- Deploy the project! Follow instructions.
rpm run deploy
That's it! Your link injection worker should now be live.
The linkstrom injection script you have installed, need a little addition. A custome server URL, to fetch opportunity from, which is the URL of above deployed cloudflare worker.
Replace
<script defer src="https://linkstorm.io/linkstorm_site_linker.js?projectId=PROJECT_ID&websiteId=WEBSITE_ID">
</script>
to
<script defer src="https://linkstorm.io/linkstorm_site_linker.js?projectId=PROJECT_ID&websiteId=WEBSITE_ID&serverDomain=YOUR_CLOUDFLARE_WORKER_URL";">
</script>
where YOUR_CLOUDFLARE_WORKER_URL is a full URL (includes https://) like https://YOUR-CUSTOM-END-POINT.workers.dev