diff --git a/website/src/components/DocsSidebar.js b/website/src/components/DocsSidebar.js index 7f0edbf464..5d1a5c08d1 100644 --- a/website/src/components/DocsSidebar.js +++ b/website/src/components/DocsSidebar.js @@ -50,7 +50,17 @@ export default class DocsSidebar extends Component { { + if (window.ga) { + window.ga('send', { + hitType: 'event', + eventCategory: 'DocsSidebar', + eventAction: 'valueChanged', + eventLabel: prop, + }); + } + props.onChange(property, value); + }} />, element, ); diff --git a/website/src/components/Playground/URLShortener.js b/website/src/components/Playground/URLShortener.js index ea4356f517..c827b68b1d 100644 --- a/website/src/components/Playground/URLShortener.js +++ b/website/src/components/Playground/URLShortener.js @@ -45,6 +45,14 @@ export default class URLShortener extends Component<{}, State> { loading: true, }, () => { + if (window.ga) { + window.ga('send', { + hitType: 'event', + eventCategory: 'URLShortener', + eventAction: 'created' + }); + } + fetch(`https://www.googleapis.com/urlshortener/v1/url?key=${API_KEY}`, { method: 'POST', headers: {