File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -124,8 +124,8 @@ const backendTechStack = [
124124 } ,
125125]
126126
127- const track = name => {
128- mixpanel . track ( name )
127+ const track = ( name , props ) => {
128+ mixpanel . track ( name , props )
129129}
130130const filterByPart = ( array , path ) => {
131131 const result = array
Original file line number Diff line number Diff line change @@ -8,10 +8,14 @@ import ArrowRight from "../assets/arrow-right.svg"
88import SideChapterBox from "../components/chapters/SideChapterBox"
99import GithubButton from "../components/buttons/GithubButtton"
1010import SEO from "../components/seo"
11+ import constants from "../constants"
1112export default function Template ( { data, pageContext } ) {
1213 const { markdownRemark } = data // data.markdownRemark holds your post data
1314 const { frontmatter, html } = markdownRemark
1415 const { previous, next } = pageContext
16+ constants . track ( "App.Post.View" , {
17+ postName : frontmatter . title ,
18+ } )
1519 return (
1620 < Layout >
1721 < SEO
You can’t perform that action at this time.
0 commit comments