diff --git a/src/_includes/content/snippet-helper.md b/src/_includes/content/snippet-helper.md new file mode 100644 index 0000000000..8a631e1f79 --- /dev/null +++ b/src/_includes/content/snippet-helper.md @@ -0,0 +1,108 @@ +{% codeexample %} +{% codeexampletab Minified %} +```js + +``` +{% endcodeexampletab %} + +{% codeexampletab Non-minified %} +```js + +``` +{% endcodeexampletab %} + +{% endcodeexample %} diff --git a/src/connections/sources/catalog/libraries/website/javascript/quickstart.md b/src/connections/sources/catalog/libraries/website/javascript/quickstart.md index 29b3568221..356398cad3 100644 --- a/src/connections/sources/catalog/libraries/website/javascript/quickstart.md +++ b/src/connections/sources/catalog/libraries/website/javascript/quickstart.md @@ -15,7 +15,7 @@ If you want to dive deeper at any point, check out the [Analytics.js reference]( Installing Segment is easy, just paste this snippet into the head of your site: -{% comment %} {{{snippet-example 'YOUR_WRITE_KEY'}}}{% endcomment %} +{% include content/snippet-helper.md %} When you paste it, you'll need to replace `YOUR_WRITE_KEY` with your Segment project's **Write Key**, which you can find in your project setup guide or settings.