Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@ const config: Config = {
onBrokenMarkdownLinks: "throw",
},
},
headTags: [
// Added to headTags instead of scripts to keep the script and noscript tags together
// Start meta tag for Facebook Pixel DR-371
{
tagName: "script",
attributes: {},
innerHTML: `!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '4294970040755652');
fbq('track', 'PageView');`,
},
// End meta tag for Facebook Pixel
],
scripts: [
{
src: "https://widget.kapa.ai/kapa-widget.bundle.js",
Expand Down