MCPcopy Index your code
hub / github.com/IABTechLab/uid2docs / BlogListPage

Function BlogListPage

src/theme/BlogListPage/index.tsx:43–69  ·  view source on GitHub ↗
(props: Props)

Source from the content-addressed store, hash-verified

41}
42
43export default function BlogListPage(props: Props): JSX.Element {
44 React.useEffect(() => {
45 const timerId = setTimeout(() => {
46 const pageViewData = {
47 event: "Initialize_dataLayer",
48 document_type: "Blog",
49 document_title: document.title,
50 article_author: undefined,
51 tags: undefined,
52 };
53 pushGtmEvent(pageViewData);
54 }, 50);
55
56 return () => clearTimeout(timerId);
57 }, []);
58 return (
59 <HtmlClassNameProvider
60 className={clsx(
61 ThemeClassNames.wrapper.blogPages,
62 ThemeClassNames.page.blogListPage,
63 )}
64 >
65 <BlogListPageMetadata {...props} />
66 <BlogListPageContent {...props} />
67 </HtmlClassNameProvider>
68 );
69}

Callers

nothing calls this directly

Calls 1

pushGtmEventFunction · 0.90

Tested by

no test coverage detected