Files
posthog.com/contents/tutorials/squarespace-analytics.md
Natalia Amorim 763a6deb12 Best error tracking tools for developers (#13402)
* First draft of the article!

Still need to update author and header image

* Apply suggestions from code review

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* Adding myself as the author

* Table update

* revert yarn.lock change

* import less

* Apply suggestions from code review

Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>

* unified feature comparisons: error tracking WIP

* converted session replay, flags

* moved over remaining competitors

* clean up old comparison table spacing

* smarter table cell widths

* proof of concept: break table out of .prose width

* more content width child sizing

* make library comparison use OSTable

* fit table width

* center

* table, video width "fixes"

* simplified product comparison slides

* fixed customers slide

* renamed files

* simplify calling of products/features

* simplified usage

* inline the rows

* created feature definitions for remaining products

* more features from core, add docs

* nested labels, descriptions, and featuresets

* product/feature links in comparison tables

* Merge branch 'master' into best-error-tracking-tools-blog-post

* leave cells blank if undefined, top-level product URLs

* Clauded the rest of PH va Amp blog

* vs mixpanel features

* Clauded standardized features across competitors

* make iframes (videos) full width

* added statsig

* feature "realignment"

* component documentation

* finished amplitude post

* rows with arbitrary values

* verified fathom, fullstory posts

* updated GA4

* updated growthbook

* heap comparison

* hotjar done

* fixed launchdarkly

* updated logrocket

* updated matomo

* migrated mixpanel

* Merge branch 'master' into best-error-tracking-tools-blog-post

* cleaned up ArrayCTA signup component

* custom label example

* updated optimizely

* changed style of linked tutorials in comparison article (pendo)

* updated optimizely, pendo

* plausible, + moved import/export to dw, cdp

* verified sentry

* fixed some sentry data

* updated statsig

* finally got best error tracking tools done!

* removed unnecessary imports

* makes the snippet available globally, uses it in a few places

* converted best adobe analytics alts

* fixed subscribe form responsiveness

* converted amplitude article

* fathom, amplitude, eppo articles

* updated flagsmith alts

* growthbook alts, launchdarkly alts

* optimizely alts

* converted statsig alts

* split alts

* fullstory alts

* heap alts

* hotjar alts

* logrocket alts, matomo alts

* mixpanel alts

* Copy edits to the article

* mouseflow, pendo, plausible alternatives

* sentry alts

* fixed best error tracking table

* sprig alts

* sprig alts

* survicate, userpilot, uxcam, vwo alts

* clarity alts

* best mobile app replay tools

* more

* use feature arrays from new source, delete old shiz

* show feature comparisons when there's data

* don't render comparison links when on z page

* amplitude don't got

* fix build

* order posthog first

* include platform features in each product presentation

* only show all groups/features on product pages

* added LLM competitors

* excluded sections

* fixed rows with arbitrary inline data

* sentence case

* updated readme

* remove hard coded data

* Update contents/blog/posthog-vs-fullstory.mdx

Co-authored-by: Vincent (Wen Yu) Ge <29069505+gewenyu99@users.noreply.github.com>

* Update contents/blog/posthog-vs-fullstory.mdx

Co-authored-by: Vincent (Wen Yu) Ge <29069505+gewenyu99@users.noreply.github.com>

* fixes from PR feedback

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
Co-authored-by: Ian Vanagas <34755028+ivanagas@users.noreply.github.com>
Co-authored-by: Cory Watilo <corywatilo@gmail.com>
Co-authored-by: Vincent (Wen Yu) Ge <29069505+gewenyu99@users.noreply.github.com>
2025-11-06 01:38:44 +02:00

4.1 KiB

title, date, author, tags
title date author tags
How to set up Squarespace analytics 2024-10-23
ian-vanagas
product analytics
session replays

Squarespace offers analytics with a basic set of metrics like visits, pageviews, and bounce rate, but for many, this isn't enough to understand what's going on on your site. PostHog offers a full set of web analytics metrics like session duration, entry and exit pages, sources, retention, and goals along with custom events, insights, session replay, and more.

Note: This does require the Squarespace Business or Commerce plan. PostHog is free to use though.

Create a Squarespace site

First, you need a Squarespace site to add PostHog to. Sign up, go through the tutorial, and create a new site. Pre-made templates are available to make this process easy, such as the one we used for this tutorial. Once you're happy with the site you've made, you'll need to upgrade to publish it. Make sure to upgrade to the Business or Commerce plan to inject the code needed to use PostHog.

Add PostHog to your Squarespace site

In PostHog, get your HTML install snippet with your project API key and instance from your project settings. It looks like this:

In Squarespace, under Website, click Pages, then Website Tools, and then Code Injection. In the code injection section, you can paste in your PostHog snippet under Header and press Save.

Snippet install video

PostHog then starts autocapturing pageviews, clicks, and more.

Want session replays? Just go to your project settings and make sure Record user sessions is toggled on.

Creating actions and tracking conversions

PostHog autocaptures button and link clicks. Actions enable you to tag these events for easy access. For example, if we add a button to our site, we can create it as an action and track conversions with it. The easiest way to create an action is with the toolbar.

After adding a button to your Squarespace site, go to PostHog, and click the toolbar tab. Add your Squarespace site as an authorized URL and click Launch

With the toolbar open, select the action tab, then Select element, and then click your button on the page, add a name, and then click Create action.

Toolbar

Tip: The toolbar also provides access to heatmaps, clickmaps, and scrollmaps.

Once created, we can then use it in funnels or trends, to target surveys, or as a conversion goal in our web analytics dashboard. To do this, go to the web analytics dashboard, click Add conversion goal near the top, and then select your action. This enables you to get a quick view of your website stats and conversions on one page.