Skip to content
Snippets Groups Projects
MatomoOptOut.tsx 868 B
Newer Older
  • Learn to ignore specific revisions
  • import { useI18n } from 'cozy-ui/transpiled/react/providers/I18n'
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    import React from 'react'
    
    import '../OptionsView.scss'
    
    
    declare let __PIWIK_TRACKER_URL__: string
    
    
    Bastien DUMONT's avatar
    Bastien DUMONT committed
    const MatomoOptOut = () => {
    
      const { t } = useI18n()
      const baseUrl = __PIWIK_TRACKER_URL__
    
      return (
    
        <div className="styled-card-root">
          <div className="styled-card-content">
            <div className="styled-card-header text-16-normal-uppercase">
    
              {t('matomo.matomo_title')}
            </div>
            <iframe
    
              sandbox="allow-popups allow-scripts"
    
              style={{ height: '250px' }}
    
              className="matomo-content"
    
              src={`${baseUrl}index.php?module=CoreAdminHome&action=optOut&language=fr&backgroundColor=121212&fontColor=e0e0e0&fontSize=&fontFamily=sans-serif`}
    
    
    export default MatomoOptOut