How to use the idyll-components.Analytics function in idyll-components

To help you get started, we’ve selected a few idyll-components examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github idyll-lang / idyll / packages / idyll-docs / idyll-components / contents.js View on Github external
'Plays a video from YouTube. All of the parameters are optional except for id, which must be provided. See all available options at https://developers.google.com/youtube/player_parameters',
            liveExample: true
          }
        }
      ]
    }
  },
  {
    Helpers: {
      description:
        "These components don't affect the page content, but help with common tasks. The `Analytics` component makes it easy to add Google Analytics to your page.",
      components: [
        {
          Analytics: {
            thumbnail: 'analytics.png',
            component: COMPONENTS.Analytics,
            description:
              'This component makes it easy to insert a Google Analytics code on your page.',
            liveExample: false
          }
        },
        {
          Meta: {
            thumbnail: 'meta.png',
            component: COMPONENTS.Meta,
            description:
              'The meta component adds context to the page template when building your app for publication. The following variables are available and will be inserted as `` properties into the head of your HTML page if you define them:',
            liveExample: false,
            idyllProps: [
              {
                name: 'title',
                type: 'string',