Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/FullWidthCta.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ const FullWidthCta = props => {
{ctas ? (
<CTAWrapper>
{ctas.map(cta =>
contentfulModuleToComponent({
...cta,
})
)}
contentfulModuleToComponent({
...cta,
})
)}
</CTAWrapper>
) : null}
</FullWidthCtaInner>
Expand Down
6 changes: 4 additions & 2 deletions src/components/HeroContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ const HeroContainerComponent = props => {
const isAbout = pathname === '/about/'
const isFlask = pathname === '/flask/'
const isInstitutions = pathname === '/institutions/'
const isInstitutionalChild = pathname === '/institutions/portfolio/' || pathname === '/institutions/compliance/'
const isInstitutionalChild =
pathname === '/institutions/portfolio/' ||
pathname === '/institutions/compliance/'
const isCustody = pathname === '/institutions/custody/'
const isThankYou = pathname === '/institutions/thank-you/'
let hubspotWrapper
Expand Down Expand Up @@ -710,7 +712,7 @@ const HeroCTA = styled.div`

@media (max-width: ${({ theme }) => theme.device.tabletMediaMax}) {
justify-content: center;

.button {
margin: 0 8px 16px;
}
Expand Down
10 changes: 10 additions & 0 deletions src/templates/PageLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import {
import scrollTo from '../lib/utils/scrollToElement'
import Context from '../Context/ContextPage'
import ContextClientSide from '../Context/ContextClientSide'
import { trackCustomEvent } from 'gatsby-plugin-google-analytics'
import { browserName } from 'react-device-detect'

/**
* @name PageLayout
Expand Down Expand Up @@ -81,6 +83,14 @@ const PageLayout = props => {
)
})
})
// Detect Web3 Wallet
if (typeof window.ethereum !== 'undefined') {
trackCustomEvent({
category: 'Web3 Wallet Detected',
action: 'window.ethereum present',
label: browserName || 'Chrome',
})
}
}
}, [pathname])

Expand Down