From 53034eba5de52a5682245404a01aea9905a818fb Mon Sep 17 00:00:00 2001 From: SeraGabor Date: Wed, 13 Dec 2023 15:02:07 +0100 Subject: [PATCH] feat: update plausible event names --- src/components/framework-tabs.js | 8 ++++---- src/components/modules/icon-card.js | 2 +- src/components/sections/contact-section.js | 2 +- src/components/sections/integrate-section.js | 4 ++-- src/pages/developer-portal.js | 6 ++++-- 5 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/framework-tabs.js b/src/components/framework-tabs.js index a67592e6e..e00d3c547 100644 --- a/src/components/framework-tabs.js +++ b/src/components/framework-tabs.js @@ -2,7 +2,7 @@ import React, { useState } from "react"; import IconCard from "./modules/icon-card"; import { AnchorLink } from "gatsby-plugin-anchor-links"; -const FrameworkTabs = ({ content, categories, anchorId }) => { +const FrameworkTabs = ({ content, categories, anchorId, section}) => { const [selectedTab, setSelectedTab] = useState("All"); const allUniqueCategories = [...new Set(categories.items.flatMap((item) => item.category))]; @@ -19,7 +19,7 @@ const FrameworkTabs = ({ content, categories, anchorId }) => {
{allUniqueCategories.map(function (category) { return ( -
setSelectedTab(category)}> +
setSelectedTab(category)}> {category}
); @@ -37,9 +37,9 @@ const FrameworkTabs = ({ content, categories, anchorId }) => { content={item} variant={"vertical"} btnClass={ - "plausible-event-name=Framework_Click_" + + "plausible-event-name="+section+"_Click_" + item.title.replace(/\s/g, "+") + - "--Developer_Portal_Page-Framework_section" + "--Developer_Portal_Page-"+section+"_section" } /> ))} diff --git a/src/components/modules/icon-card.js b/src/components/modules/icon-card.js index 4fa81d0bd..0384c8ab6 100644 --- a/src/components/modules/icon-card.js +++ b/src/components/modules/icon-card.js @@ -27,7 +27,7 @@ export default function IconCard({ imageClass, content, variant, iconPosition = )} {content.link && content.type === "anchor" && ( diff --git a/src/components/sections/contact-section.js b/src/components/sections/contact-section.js index d8aae4be9..f5f10c185 100644 --- a/src/components/sections/contact-section.js +++ b/src/components/sections/contact-section.js @@ -20,7 +20,7 @@ const ContactSection = () => {
- Get In Touch + Get In Touch
diff --git a/src/components/sections/integrate-section.js b/src/components/sections/integrate-section.js index 6f7cb8566..bb9be23f9 100644 --- a/src/components/sections/integrate-section.js +++ b/src/components/sections/integrate-section.js @@ -9,14 +9,14 @@ const IntegrateSection = ({ content, anchorId }) => {
Blobstream
Use Celestia as the DA layer for your Ethereum L2.
- + Blobstream documentation
Node API
Use the celestia-node API to publish and retrieve transactions from Celestia.
- + Node API Documentation
diff --git a/src/pages/developer-portal.js b/src/pages/developer-portal.js index 6188f4ec4..59a4832dc 100644 --- a/src/pages/developer-portal.js +++ b/src/pages/developer-portal.js @@ -44,6 +44,7 @@ const DevPortal = () => { key={item.id} content={item} variant={"vertical anchor no-image"} + btnClass={`plausible-event-name=${item.title.replace(/ /g,"_")}--Developer_Portal-Hero_Section`} /> ); })} @@ -51,7 +52,7 @@ const DevPortal = () => { - +
@@ -65,6 +66,7 @@ const DevPortal = () => { key={item.id} content={item} variant={"vertical no-image"} + btnClass={`plausible-event-name=${item.title.replace(/ /g,"_")}--Developer_Portal-Developer_Resources_Section`} /> ); })} @@ -74,7 +76,7 @@ const DevPortal = () => { - +