deepfence / DocumentationWebsite

36 stars 3 forks source link

Support bigpicture #3

Open ogarrett opened 2 years ago

ogarrett commented 2 years ago

Hello BigPicture team,

We are an existing BigPicture client (Deepfence.io). I'm creating a documentation site using a single-page web app framework called Docusaurus (docusaurus.io). Do you have any advice on how to install the tracking javascript on this platform? Thank you


Hey Owen,

We just checked out Docusaurus as we weren't familiar with it. In looking through the docs, it doesn't seem there's an easy, straight forward way to install misc scripts.

Apart from creating a custom BigPicture plugin, the "easiest" way may be via Google Tag Manager (GTM). It appears there's already a plugin for that (https://www.npmjs.com/package/docusaurus-gtm-plugin). So you could install that, then load BP via GTM. That should work, but it may require some tweaking / testing to ensure it only fires in your prod environment.

ogarrett commented 2 years ago

Added with https://github.com/deepfence/DocumentationWebsite/commit/c4a9791b33a6d7d487826fce3125d210653443c5

ogarrett commented 2 years ago

Leaving open until we go live and prove that it's working