From 5ecd32a83f185327973794ff9808aa184a0f750e Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 15 Nov 2019 17:30:05 +0800 Subject: [PATCH] site: :memo: Add GA event for opening in stackblitz --- site/theme/template/Content/Demo.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/site/theme/template/Content/Demo.jsx b/site/theme/template/Content/Demo.jsx index 322d3cfc1d..26051f59e1 100644 --- a/site/theme/template/Content/Demo.jsx +++ b/site/theme/template/Content/Demo.jsx @@ -293,6 +293,7 @@ ${sourceCode.replace('mountNode', "document.getElementById('container')")} { + this.track({ type: 'stackblitz', demo: meta.id }); stackblitzSdk.openProject(stackblitzPrefillConfig); }} >