PeutlyDocs

Heap and Segment

Send demo viewer events to Heap or Segment.

ProPaid plan only, not in the free trial. Admins only.

Both send the same events as Google Analytics.

Heap

  1. Go to Integrations → Heap and turn on Enable.
  2. Enter your Heap Environment App ID. In Heap, go to Account → Manage → Projects. It's the number in heap.load("…") in your install snippet.
  3. Click Save changes.
  4. For demos on your website, turn on forwarding to Heap in the demo's Share → Embed code tab. Put the Heap snippet on your page before the Peutly embed.
  5. Test in Heap's Live feed with a share link and an embedded demo.

Segment

  1. Go to Integrations → Segment and turn on Enable.
  2. Enter your Segment Source Write Key. In Segment, go to Connections → Sources → your JavaScript source → Settings → API Keys.
  3. Click Save changes.
  4. For demos on your website, turn on forwarding to Segment in the demo's Share → Embed code tab. Put the Segment analytics.js snippet on your page before the Peutly embed.
  5. Test in the Segment Debugger with a share link and an embedded demo.

On this page