Asayer Destination

Asayer quick info

Asayer is in beta, and accepts Identify, and Track calls. If you reference it in the Integrations object, call it “asayer", or "Asayer”.

Asayer accepts device-mode data only from Analytics.js.

Asayer is a session replay tool for engineering teams. It lets you capture the full picture of each user session on your website so you can quickly solve issues and improve your customer experience.

This destination is maintained by Asayer. For any issues with the destination, contact the Asayer Support team.

This document is about a destination which is in beta

This means that the Asayer Destination is in active development, and some functionality may change before it becomes generally available.

Getting Started

Before you start, make sure Asayer supports the source type and connection mode you’ve chosen to implement. You can learn more about connection modes here.

Web Mobile Server
📱 Device-mode ⬜️ ⬜️
☁️ Cloud-mode ⬜️ ⬜️ ⬜️
  1. From the Segment web app, click Catalog.
  2. Search for “Asayer” in the Catalog, select it, and choose which of your sources to connect the destination to.
  3. Set your Asayer Site ID into your Destination settings. You can find in your Asayer dashboard by clicking Preferences > Sites > Tracking Code. The Site ID is a whole number (e.g. 435).

Your changes appear in the Segment CDN in about 45 minutes, and then Analytics.js starts asynchronously loading Asayer’s tracking code onto your website.

In the meantime, remove Asayer’s native snippet from your site.

Identify

If you’re not familiar with the Segment Specs, take a look to understand what the Identify method does. Identify calls sent to Segment will be transformed and sent to Asayer’s asayer.vars method.

An example call which does not include a userId will transmit Asayer the value of the anonymousId and would look like:

analytics.identify();

If an Identify call contains a userId, that will be sent to Asayer.

analytics.identify("userId123");

In case Segment sends over any traits in the identify call, these will be passed as custom fields to Asayer.

analytics.identify("userId123", {
  displayName: "Iron Man",
  email: "iron@man.com"
  plan: "pro"
});

NOTE: All traits, as well as userId and anonymousId fields must be explicitly enabled within the Asayer dashboard under Preferences -> Custom Fields before they will successfully send.

Track

If you’re not familiar with the Segment Specs, take a look to understand what the Track method does. An example call would look like:

analytics.track('New Order', {
    orderId: '123456',
    productName: 'Shoe',
    price: 44.95,
    currency: 'USD'
});

Track calls will be sent to Asayer using its asayer.event method as a track event.

Settings

Segment lets you change these destination settings from the Segment app without having to touch any code.

Setting Description
Site ID
(required)
string. The ID associated with your project. You can find in Preferences -> Projects in your Asayer app.

Adding Asayer to the integrations object

To add Asayer to the integrations JSON object (for example, to filter data from a specific source), use one of the following valid names for this integration:

  • asayer

  • Asayer

This page was last modified: 20 Oct 2020



Get started with Segment

Segment is the easiest way to integrate your websites & mobile apps data to over 300 analytics and growth tools.
or
Create free account