Skip to content

Commit

Permalink
Web analytics product page (#8001)
Browse files Browse the repository at this point in the history
* web analytics screenshots, hero copy

* PostHog Vs content

* Update index.tsx

* Added some generic tutorials

* Pairs with

* web analytics topic

* comparison chart

* new tutorial

* Update index.tsx

* Subfeatures - words, not icons

* Merge branch 'master' into web-analytics

* removed unused sections, added icons, linked to page

* open graph

* fixed "posthog vs" mobile padding when in wide mode

* beta flag

* added line about pricing

* clarified how web analytics is billed

---------

Co-authored-by: Joe Martin <[email protected]>
  • Loading branch information
corywatilo and joethreepwood authored Mar 18, 2024
1 parent 57f154c commit 74428b9
Show file tree
Hide file tree
Showing 26 changed files with 694 additions and 40 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@heroicons/react": "^1.0.6",
"@hubspot/api-client": "^7.1.2",
"@popperjs/core": "^2.11.2",
"@posthog/icons": "0.6.7",
"@posthog/icons": "0.6.8",
"@slack/bolt": "^3.8.1",
"@supabase/supabase-js": "^1.29.4",
"@tailwindcss/container-queries": "^0.1.1",
Expand Down
22 changes: 13 additions & 9 deletions src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,23 @@ const linklist: IProps[] = [
url: '/products/product-analytics',
items: [
{
title: 'Product Analytics',
title: 'Product analytics',
url: '/product-analytics',
},
{
title: 'Session Replay',
title: 'Web analytics',
url: '/web-analytics',
},
{
title: 'Session replay',
url: '/session-replay',
},
{
title: 'Feature Flags',
title: 'Feature flags',
url: '/feature-flags',
},
{
title: 'A/B Testing',
title: 'A/B testing',
url: '/ab-testing',
},
{
Expand Down Expand Up @@ -100,19 +104,19 @@ const linklist: IProps[] = [
url: '/docs',
items: [
{
title: 'Product Analytics',
title: 'Product analytics',
url: '/docs/product-analytics/',
},
{
title: 'Session Recording',
title: 'Session recording',
url: '/docs/session-replay',
},
{
title: 'Feature Flags',
title: 'Feature flags',
url: '/docs/feature-flags',
},
{
title: 'A/B Testing',
title: 'A/B testing',
url: '/docs/experiments',
},
{
Expand All @@ -124,7 +128,7 @@ const linklist: IProps[] = [
url: '/docs/cdp',
},
{
title: 'Data Warehouse',
title: 'Data warehouse',
url: '/docs/data-warehouse',
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/components/Home/Slider/Slides.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ export const WebAnalytics = () => {
/>
)}
contentOffset="mdlg:pb-6 lg:pb-8 lg:pr-8 xl:pb-12 2xl:pb-8"
buttonLabel="Read the docs"
buttonUrl="/docs/web-analytics"
buttonLabel="Explore"
buttonUrl="/web-analytics"
buttonClasses="group !border-black/25 !bg-black/10 md:!w-auto !w-full"
buttonChildClasses="!bg-lime-green border-primary !text-primary group-hover:text-black"
/>
Expand Down
15 changes: 8 additions & 7 deletions src/components/Job/Apply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,9 @@ export default function Apply({ id, info }) {
<p className="font-semibold font-code m-0">{code}</p>
<button
disabled={copied}
className={`${copied ? '' : 'active:top-[0.5px] active:scale-[.90]'
} relative outline-none`}
className={`${
copied ? '' : 'active:top-[0.5px] active:scale-[.90]'
} relative outline-none`}
onClick={handleCopy}
>
<AnimatePresence>
Expand Down Expand Up @@ -366,11 +367,11 @@ export default function Apply({ id, info }) {
render={() => (
<TrackedCTA
className="mt-auto"
to={`https://${posthog?.isFeatureEnabled &&
posthog?.isFeatureEnabled('direct-to-eu-cloud')
? 'eu'
: 'app'
}.posthog.com/signup`}
to={`https://${
posthog?.isFeatureEnabled && posthog?.isFeatureEnabled('direct-to-eu-cloud')
? 'eu'
: 'app'
}.posthog.com/signup`}
event={{ name: `clicked Continue`, type: 'cloud' }}
>
Get started - free
Expand Down
2 changes: 1 addition & 1 deletion src/components/Product/AbTesting/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export const ProductAbTesting = () => {
</div>
</section>

<div className={`${fullWidthContent ? 'max-w-full px-8' : 'max-w-7xl'} mx-auto`}>
<div className={`${fullWidthContent ? 'max-w-full px-0 md:px-8' : 'max-w-7xl'} mx-auto`}>
<div id="posthog-vs">
<section>
<h2 className="text-center text-3xl lg:text-4xl">PostHog vs...</h2>
Expand Down
3 changes: 3 additions & 0 deletions src/components/Product/Comparison.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ const companies = {
FullStory: {
comparisonURL: '/blog/posthog-vs-fullstory',
},
GA4: {
comparisonURL: '/blog/posthog-vs-ga4',
},
Hotjar: {
comparisonURL: '/blog/posthog-vs-hotjar',
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/Product/FeatureFlags/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ export const ProductFeatureFlags = () => {
</div>
</section>

<div className={`${fullWidthContent ? 'max-w-full px-8' : 'max-w-7xl'} mx-auto`}>
<div className={`${fullWidthContent ? 'max-w-full px-0 md:px-8' : 'max-w-7xl'} mx-auto`}>
<div id="posthog-vs">
<section>
<h2 className="text-center text-3xl lg:text-4xl">PostHog vs...</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Product/ProductAnalytics/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ export const ProductProductAnalytics = () => {
</div>
</section>

<div className={`${fullWidthContent ? 'max-w-full px-8' : 'max-w-7xl'} mx-auto`}>
<div className={`${fullWidthContent ? 'max-w-full px-0 md:px-8' : 'max-w-7xl'} mx-auto`}>
<div id="posthog-vs">
<section>
<h2 className="text-center text-3xl lg:text-4xl">PostHog vs...</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Product/SessionReplay/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ export const ProductSessionReplay = () => {
</div>
</section>

<div className={`${fullWidthContent ? 'max-w-full px-8' : 'max-w-7xl'} mx-auto`}>
<div className={`${fullWidthContent ? 'max-w-full px-0 md:px-8' : 'max-w-7xl'} mx-auto`}>
<div id="posthog-vs">
<section>
<h2 className="text-center text-3xl lg:text-4xl">PostHog vs...</h2>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Product/Surveys/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ export const ProductSurveys = () => {
</div>
</section>

<div className={`${fullWidthContent ? 'max-w-full px-8' : 'max-w-7xl'} mx-auto`}>
<div className={`${fullWidthContent ? 'max-w-full px-0 md:px-8' : 'max-w-7xl'} mx-auto`}>
<div id="posthog-vs">
<section>
<h2 className="text-center text-3xl lg:text-4xl">PostHog vs...</h2>
Expand Down
Loading

0 comments on commit 74428b9

Please sign in to comment.