Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

use DOCS_CAPTCHA_URL url

Blue Mousec52587204768
diff --git a/public/locales/en.json b/public/locales/en.json
index 690176ee4..86e194a51 100644
--- a/public/locales/en.json
+++ b/public/locales/en.json
@@ -522,6 +522,7 @@
"trendlineUnique": "Unique visitors trendline",
"trendlineTotal": "Pageviews trendline",
"noEvContent": "No events have been captured for the specified timeframe.\nIf you haven't tracked any events yet, you can check out our <url>Docs</url> to easily integrate tracking into your app.",
+ "noCaptchaEv": "No events have been captured for the specified timeframe.\nIf you haven't set up CAPTCHA yet, you can check out our <url>Docs</url> to easily integrate it into your app.",
"mapping": {
"cc": "Country",
"pg": "Page",
diff --git a/src/pages/Captcha/View/components/NoEvents.jsx b/src/pages/Captcha/View/components/NoEvents.jsx
index fdf8d110c..554696c07 100644
--- a/src/pages/Captcha/View/components/NoEvents.jsx
+++ b/src/pages/Captcha/View/components/NoEvents.jsx
@@ -6,7 +6,7 @@ import _isEmpty from 'lodash/isEmpty'
import PropTypes from 'prop-types'
import Button from 'ui/Button'
-import { DOCS_URL } from 'redux/constants'
+import { DOCS_CAPTCHA_URL } from 'redux/constants'
/**
* This component is used to display text if the data is not available.
@@ -30,10 +30,10 @@ const NoEvents = ({
<h2 className='text-2xl mb-8 text-center leading-snug'>
<Trans
t={t}
- i18nKey='project.noEvContent'
+ i18nKey='project.noCaptchaEv'
components={{
// eslint-disable-next-line jsx-a11y/anchor-has-content
- url: <a href={DOCS_URL} className='hover:underline text-blue-600' target='_blank' rel='noreferrer noopener' />,
+ url: <a href={DOCS_CAPTCHA_URL} className='hover:underline text-blue-600' target='_blank' rel='noreferrer noopener' />,
}}
/>
</h2>
diff --git a/src/redux/constants/index.js b/src/redux/constants/index.js
index 6df533b94..1eadfbb55 100644
--- a/src/redux/constants/index.js
+++ b/src/redux/constants/index.js
@@ -132,6 +132,7 @@ export const BLOG_URL = 'https://blog.swetrix.com'
export const UTM_GENERATOR_URL = 'https://url.swetrix.com'
export const MARKETPLACE_URL = 'https://marketplace.swetrix.com'
export const DOCS_URL = 'https://docs.swetrix.com'
+export const DOCS_CAPTCHA_URL = `${DOCS_URL}/captcha/introduction`
export const CDN_URL = process.env.REACT_APP_CDN_URL
// Swetrix vs ...