Skip to content
ShowpieceDocs

Your analytics

The snippet can pass a demo's views, steps and clicks to the analytics your page already runs: Google Analytics, Tag Manager, Segment, PostHog or Mixpanel.

Turn it on

In Export's On a web page, Send what happens to your analytics is on unless you turn it off. The snippet then has a few more lines, there to read, that listen to the demo (what it tells your page) and pass each event on. The pop-up's snippet does the same. Nothing of ours is loaded, and on a page that runs none of these tools, nothing happens.

Where it goes

Google Analytics
An event of each name, through gtag.
Tag Manager
Pushed to the dataLayer as { event: "demo_step", … }. With Google Analytics on the page too, only through gtag, which feeds the dataLayer itself: never counted twice.
Segment
analytics.track
PostHog
posthog.capture
Mixpanel
mixpanel.track

What to do in each to see them: Your tools.

Where it stops. HubSpot isn't on the list: its own events need its most expensive plan.

Where it stops. A site builder that strips scripts from what you paste keeps the demo and loses this.

The events

demo_view
The demo opened: how many steps it has.
demo_step
It arrived at a step: step, steps, the step's title and its chapter.
demo_button
A button was clicked: its label, its href and its step.
demo_choice
A choice was chosen: its label, its step, and to, where it went.
demo_complete
It reached its end.

Each carries demo, the demo's name, so you can tell demos apart. A funnel from demo_view through each demo_step to demo_complete shows where people stop watching.

Where it stops. Only the demo's own words go, never anything about who's watching. What your analytics adds by itself is its own.