Skip to content

Commit a7e3015

Browse files
small fix
1 parent df187ec commit a7e3015

1 file changed

Lines changed: 33 additions & 33 deletions

File tree

src/components/seo.jsx

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ import Helmet from 'react-helmet';
1111
import { useStaticQuery, graphql } from 'gatsby';
1212
import favicon from './../images/favicon-new.ico';
1313

14-
function SEO({ lang,
15-
meta,
16-
title,
17-
slug,
18-
canonical,
19-
metadesc,
20-
keywords,
21-
social_share_summary,
22-
social_share_desc,
23-
social_share_image,
24-
noindex
25-
}) {
14+
function SEO({ lang,
15+
meta,
16+
title,
17+
slug,
18+
canonical,
19+
metadesc,
20+
keywords,
21+
social_share_summary,
22+
social_share_desc,
23+
social_share_image,
24+
noindex
25+
}) {
2626
const { site } = useStaticQuery(
2727
graphql`
2828
query {
@@ -37,12 +37,12 @@ function SEO({ lang,
3737
`,
3838
);
3939

40-
const isIndexed = !noindex ? 'index, follow' : 'noindex, nofollow';
40+
const isIndexed = !noindex ? 'index,follow' : 'noindex,nofollow'
4141

4242
let loadGTM = false;
4343

4444
if (typeof window !== 'undefined') {
45-
loadGTM = window.location.href.includes("tutorials") || window.location.href.includes("https://www.testsigma.com/") || window.location.href.includes("https://testsigma.com/");
45+
loadGTM = window.location.href.includes("testsigma.com") || window.location.href.includes("https://www.testsigma.com/") || window.location.href.includes("https://testsigma.com/");
4646
}
4747

4848
useEffect(() => {
@@ -170,25 +170,25 @@ function SEO({ lang,
170170
<script async defer type='text/javascript' charSet='utf-8' src='https://js.hsforms.net/forms/embed/v2.js' />
171171
<script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/23341221.js"></script>
172172
<script type="application/ld+json">
173-
{'{'+
174-
'"@context": "https://schema.org/",'+
175-
'"@type": "BreadcrumbList",'+
176-
'"itemListElement":'+ '['+'{'+
177-
'"@type":'+ '"ListItem",'+
178-
'"position":'+ '1,'+
179-
'"name":'+ '"Testsigma",'+
180-
'"item":'+ '"https://testsigma.com/"'+
181-
'},'+ '{'+
182-
'"@type":'+ '"ListItem",'+
183-
'"position":'+ '2,'+
184-
'"name":'+ '"Tutorials",'+
185-
'"item":'+ '"https://testsigma.com/tutorials/"'+
186-
'},'+ '{'+
187-
'"@type":'+ '"ListItem",'+
188-
'"position":'+ '3,'+
189-
'"name":'+ '"'+title+'"'+',' +
190-
'"item":'+ '"https://testsigma.com'+ slug +'"'+
191-
'}'+']'+
173+
{'{'+
174+
'"@context": "https://schema.org/",'+
175+
'"@type": "BreadcrumbList",'+
176+
'"itemListElement":'+ '['+'{'+
177+
'"@type":'+ '"ListItem",'+
178+
'"position":'+ '1,'+
179+
'"name":'+ '"Testsigma",'+
180+
'"item":'+ '"https://testsigma.com/"'+
181+
'},'+ '{'+
182+
'"@type":'+ '"ListItem",'+
183+
'"position":'+ '2,'+
184+
'"name":'+ '"Tutorials",'+
185+
'"item":'+ '"https://testsigma.com/tutorials/"'+
186+
'},'+ '{'+
187+
'"@type":'+ '"ListItem",'+
188+
'"position":'+ '3,'+
189+
'"name":'+ '"'+title+'"'+',' +
190+
'"item":'+ '"https://testsigma.com'+ slug +'"'+
191+
'}'+']'+
192192
'}'
193193
}
194194
</script>

0 commit comments

Comments
 (0)