Compare commits

...

2 Commits

Author SHA1 Message Date
Arik Chakma
7e83371e97 fix: remove varify 2025-09-05 03:54:28 +06:00
Arik Chakma
cc2e75c812 chore: remove varify 2025-09-05 00:06:41 +06:00
4 changed files with 1 additions and 24 deletions

View File

@@ -4,7 +4,6 @@ import { getPageTrackingData } from '../../lib/browser';
declare global {
interface Window {
gtag: any;
varify: any;
fireEvent: (props: {
action: string;
category: string;
@@ -68,7 +67,7 @@ window.fireEvent = (props) => {
}
const trackingData = getPageTrackingData();
window.gtag('event', action, {
event_category: category,
event_label: label,

View File

@@ -42,7 +42,6 @@ export interface Props {
jsonLd?: Record<string, unknown>[];
resourceId?: string;
resourceType?: ResourceType;
hasVarify?: boolean;
}
const {
@@ -61,7 +60,6 @@ const {
initialLoadingMessage = '',
resourceId,
resourceType,
hasVarify = false,
} = Astro.props;
// Remove trailing slashes to consider the page as canonical
@@ -162,23 +160,6 @@ const gaPageIdentifier = Astro.url.pathname
<link rel='preconnect' href='https://www.google-analytics.com/' />
<link rel='preconnect' href='https://api.roadmap.sh/' />
{
hasVarify && (
<Fragment>
<style is:inline>.varify-antiflicker{opacity:0 !important}</style>
<script is:inline>
window.setTimeout(() => {
document.querySelectorAll('.varify-antiflicker').forEach((el) => {
el.classList.remove('varify-antiflicker');
});
}, 4000);
window.varify = window.varify || {};
window.varify.iid = 4013;
</script>
<script is:inline src='https://app.varify.io/varify.js' />
</Fragment>
)
}
<!-- Google Tag Manager Start -->
<script is:inline>
(function (w, d, s, l, i) {

View File

@@ -8,7 +8,6 @@ import SkeletonLayout from '../../layouts/SkeletonLayout.astro';
briefTitle='Learn SQL from the ground up'
ogImageUrl='https://assets.roadmap.sh/guest/sql-course-bjc53.png'
description='Learn SQL from the ground up. This SQL programming class is designed to help you go from beginner to expert through hands-on practice with real-world scenarios, mastering everything from basic to complex queries.'
hasVarify={true}
keywords={[
'sql',
'database',

View File

@@ -5,7 +5,6 @@ import SkeletonLayout from '../../layouts/SkeletonLayout.astro';
---
<SkeletonLayout
htmlClassName='varify-antiflicker'
title='Master SQL'
briefTitle='Learn SQL from the ground up'
ogImageUrl='https://assets.roadmap.sh/guest/sql-course-bjc53.png'
@@ -17,7 +16,6 @@ import SkeletonLayout from '../../layouts/SkeletonLayout.astro';
'database administration',
]}
canonicalUrl='/courses/sql'
hasVarify={true}
jsonLd={[
{
'@context': 'https://schema.org',