Docusaurus
Steps to install snippet on a Docusaurus site
- Copy the JS snippet from Data Collection under settings into a JS file in your repo. Example:
<repo_home>/static/js/syft.js- To increase ID rates by up to 40% for US visitors, enable Include RB2B Visitor ID on that page and copy the updated snippet.
- Modify docusaurus.config.js and include the above file in scripts field.
docusaurus.config.js
const config = {
title: "Your App Name",
// other properties..
scripts: [
// other scripts..
{
src: "/js/syft.js",
async: false,
},
],
// other properties..
};