How-tos

This section describes tasks related to building segments in Amperity:

Add attribute from table

You can add attributes from a customer 360 database table to a segment on the Segment Editor.

To add an attribute from a table to a segment

  1. From the Segment Editor, click Add condition.

  2. Choose Attributes, and then select a table.

  3. Choose an attribute from the table, and then define the criteria for the attribute.

Add comment to SQL segment

You can add comments to the query in a segment.

To add comments to a query

  1. From the Segment Editor, click View SQL

  2. On the Visual SQL window, click Convert to SQL segment.

  3. On the Segment Editor, click Comment.

  4. Move your cursor to where you want to add a comment. Enter your comments.

  5. Click Activate.

Add conditions

Conditions are the fields in your data tables that your brand uses to create segments, define audiences, and build campaigns.

Add exclusions

You can add a list of customers to exclude from your segment.

To add an exclusion to a segment

  1. From the Segments page, select Create segment. This opens the Segment Editor.

  2. After you add conditions, click Add exclusions.

  3. You can exclude customers by Purchase behavior, Attributes, or Customer lists.

Add purchase behaviors

Purchase behaviors are a feature of Amperity that are built on top of standard output for transactions (orders and items). Purchase behaviors require standardized product catalog field names to be present in your standard output for transactions.

Use purchase behaviors in segments to return a list of customers, and then filter that list of customers by any combination of brand, channel, individual items in your product catalog, and store.

Purchase behaviors are available for first order, has not purchased, has purchased, most frequent order, repeat order, and total value of orders.

You can add purchase behaviors to segments from the Segment Editor.

To add purchase behaviors to a segment

  1. From the Segment Editor, click Add condition.

  2. Open Purchase behaviors, and then select a purchase behavior attribute.

  3. Define the criteria for the attribute.

Add sections

You can add sections to a segment on the Segment Editor

To add a section to a segment

  1. From the Segment Editor, click Add section.

  2. Click Add condition to add a set of conditions to the section.

Change baseline comparison

You can choose to compare additional segments to a segment of all customers or you can compare to the current segment.

To change the baseline comparison chart

  1. From the Segments page, select a segment then click the Customers tab.

  2. In the Comparing to field, choose All customers or choose This segment.

Change comparison date range

You can change the comparison date range on the Breakdown tab.

To change the date range of a comparison chart

  1. From the Segments page, on the Breakdown tab, click the date range field.

  2. Select a date range from the menu.

Change database source

You can change the database that a segment retrieves data from.

Note

Changing the database for a segment will remove all the segment conditions and the resulting customer lists. It will also change any campaign that uses this segment.

To change the segment database source

  1. From the Segments page, open the menu for a segment.

  2. Click Edit.

  3. On the right side of the Segment Editor under Database, pick a database.

  4. Choose Clear segment.

Change insights date range

You can change the date range for all the insight details charts.

To change the date range for the insight details

  1. From the Segments page, select a segment and then click the Breakdown tab.

  2. On the right side of the page, choose a date range from the dropdown with date ranges.

  3. View the updated dates on the horizontal axis of each insight chart.

Choose AND/OR from toggle

When you add a condition, select either AND or OR on the toggle for the conditional operator.

Compare segment insights

You can compare segment by the following:

  • Purchasers percentage

  • Revenue percentage

  • Revenue/Purchaser

To update compare segments

  1. From the Breakdown tab click the down arrow in the Compare by: field.

  2. Select one of the following options from the list:

    • % of Purchasers

    • % of Revenue

    • Revenue/Purchaser

Configure overlap chart

You can select one or more segments to compare in a chart.

To select a segment for a comparison chart

  1. From the Segments page, select a segment and then click the Compare tab.

  2. Under Segments click Select segment.

  3. Choose one or more segments to compare and then click Compare.

Copy a column to the clipboard

You can copy a column of customer data to the clipboard so you can paste it in other applications.

To copy a column of customer data to the clipboard

  1. From the Segments page, select a segment and then click the Customers tab.

  2. Open the menu for a column.

  3. Click Copy column to clipboard.

Copy a segment ID

You can copy a segment ID on the Segments page.

To copy a segment ID

  1. From the Segments page, open the menu for a segment.

  2. In the menu, click Copy ID.

  3. Paste the segment ID in the appropriate location.

Copy a SQL Query

You can copy a SQL query from the Segment Editor.

To copy a SQL Query

  1. From the Segment Editor, click View SQL

  2. On the View SQL window, click Convert to SQL Segment.

  3. On the Segment Editor, click Copy as SQL Query.

  4. On the Copy as SQL Query window, click Copy as SQL Query.

  5. When finished, click Activate.

    Tip

    To include customer matches, you can select the Include “Customer Matches” columns option.

Create a campaign

You can access the campaign editor from the Segments page.

To create a campaign

  1. From the Segments page, select a segment.

  2. Click Actions (upper-right corner) and then click Create campaign.

The Segments editor opens.

Customer lists

You can define a segment from customer lists in the Segment Editor:

Use query

You can add query results to a segment from the Segment Editor.

To add query results to a customer list

  1. From the Segment Editor window, click Add condition.

  2. Select Customer lists, and then choose Query.

  3. In the Select query dialog, choose a query, and then click Confirm.

Use segment

You can add a segment to a segment from the Segment Editor.

To add a segment to a customer list

  1. From the Segment Editor window, click Add condition.

  2. Select Customer lists, and then choose Segment.

  3. In the Select segment dialog, choose a query, and then click Confirm.

Use uploaded file

You can add data in uploaded files to a segment from the Segment Editor.

To add uploaded files to a customer list

  1. From the Segment Editor window, click Add condition.

  2. Select Customer lists, and then choose File upload.

  3. In the Select file upload dialog, choose a query, and then click Confirm.

Create SQL segment in a folder

You can create a SQL segment from a folder on the Segments page.

To create a SQL segment in a folder

  1. From the Segments page, open the menu for a folder.

  2. Click Create SQL segment.

The SQL Segment Editor appears.

Create segment in a folder

You can create a visual segment from a folder on the Segments page.

To create a visual segment in a folder

  1. From the Segments page, open the menu for a folder.

  2. Click Create visual segment.

The visual Segment Editor appears.

Customize comparison charts

You can customize insights charts on the Breakdown tab.

To customize insights charts

  1. From the Breakdown tab, in the Attributes breakdown section, click Customize.

  2. On the Customize breakdown charts window, you can select up to 6 customer attributes, behavioral attributes, and default attributes. You can also uncheck default attributes that you don’t want to use.

  3. Once done updating the insights charts, click Apply.

The default charts are available to all users of the Breakdown tab.

Note

To reset the insight charts to the default charts, click Reset at the bottom of the Customize Insights Charts window.

Delete a segment

You can delete a segment from the Segments page.

To delete a segment

  1. From the Segments page, open the menu for a segment.

  2. In the menu, click Delete.

  3. On the Delete Segment window, click Confirm.

Download segment

You can download segment results as a CSV file. The CSV format is supported by many applications, which makes the format a great way to test the potential of orchestrating segments for downstream applications and workflows.

Note

You cannot download the results of any segment that returns an error.

To download a segment as a CSV file

  1. From the Segments page, open the menu for a segment, and then select a segment.

  2. Click the Customers page.

  3. Click Download.

  4. A CSV file with a filename that is identical to the segment name is downloaded to your local machine.

Duplicate segment

You can duplicate a segment from the Segments page.

To duplicate a segment

  1. From the Segments page, open the menu for a segment.

  2. Click Duplicate.

  3. On the Segment Editor, make your changes, and then click Save As. Add a name and choose where to save the segment.

  4. Click Save.

Edit segment from Segments page

You can edit a segment from the Segments page.

To edit a segment

  1. From the Segments page, open the menu for a segment.

  2. Click Edit.

  3. On the Segment Editor, make your changes, and then click Save.

Edit segment from Segment Editor

You can edit a segment from the Segment Editor.

To edit a segment from the Segment Editor

  1. From the Segment Editor, click Actions (upper-right corner).

  2. Click Edit.

  3. Make your changes and then click Save.

Expand a graph

You can expand graphs on the Breakdown tab.

To expand a graph

  1. From the Breakdown tab, open the menu for a graph.

  2. Click Expand.

    The graph opens up in a window with more details.

Explore a segment copy

You can explore a copy of a saved segment on the Summary tab.

To explore a copy of a saved segment

  1. From the Summary tab, click Explore a Copy.

  2. From the Segments Editor, you can do one of the following:

    Explore the saved segment attribute details

    Add new attributes, conditions, and filters to the segment copy

  3. When done, either click Save As to copy the saved segment, or click View to view the segment insights on the Summary tab, or click Cancel.

Format a SQL segment

You can format a segment from the Segments page.

To format a segment

  1. From the Segments page, open the menu for a segment.

  2. Click Edit.

  3. Click the Format button.

New segment from intersection

You can create a new segment from the intersections of overlapping segments.

To create a new segment from intersections

  1. From the Segments page, select a segment and then click the Compare tab.

  2. Under Segments, choose Select segment to add more segments to compare.

  3. In the Overlap tab, under Overlapping customers, choose New segment from intersection.

The visual Segment Editor appears.

Note

You can change the baseline comparison segment on the Metrics tab in the Comparing to field.

Organize segments

A folder helps you organize the list of segments in the Segments tab. Up to three levels may be added.

You can organize the segments shown in the Segments page:

Add folders

Folders may be expanded (or collapsed) to view (and hide) the list of segments and subfolders contained within.

To add a folder

  1. From the Segments page click Create folder, and then select Add Folder. This opens the Create Folder dialog box.

  2. Enter the name for the folder.

  3. Click Create.

Add subfolders

Use the Create folder option in the menu to add up to three levels of subfolders. All folder names must be unique.

To add a subfolder

  1. From the Segments page, open the menu for a folder, and then select Create folder. This opens the Create Folder window.

  2. Enter the name for the folder.

  3. Click Save.

Move segment

Use the Move option to move around and organize the list of folders and segments. Folders may be expanded (or collapsed) to view (and hide) the list of segments and subfolders contained within.

To move a segment

  1. From the Segments page, open the menu for a segment, and then select Move. This opens the Move Segment dialog box.

  2. Select the name of an existing folder to which a segment will be moved, and then click Move.

Hint

If the folder to which a segment will be moved is not present in the list of folders, you can add it directly from the Move Segment dialog box. Click the + New folder link, type a name for the folder, and then select it.

Save segment to a folder

You can save a segment into a folder from the Segment Editor.

To save a segment to a folder from the Segment Editor

  1. From the Segment Editor, click Save as.

  2. From the Save as a new segment window, enter the name in the Name field.

  3. In the Location section, select the folder or subfolder.

  4. Click Save.

Bulk delete segments

You can delete multiple segments from the Segments page.

To delete multiple segments

  1. From the Segments page, select multiple segments.

  2. On the bottom of the Segments page, click Delete.

  3. On the Bulk Delete window, click Delete <#> Items.

Bulk move segments

You can move multiple segments to a folder from the Segments page.

To move multiple segments to a folder

  1. From the Segments page, select multiple segments.

  2. On the bottom of the Segments page, click Move.

  3. On the Bulk Move window, select a folder.

  4. Click Move.

Rename a segment

You can rename a segment from the Segments page.

To rename a segment

  1. From the Segments page, open the menu for a segment.

  2. Click Rename.

  3. On the Rename segment window, enter a name.

  4. Click Save.

  5. From the Segment page, click Actions (upper-right corner).

  6. Click Rename.

  7. Enter a name and then click Save.

Rerun a segment

You can rerun a segment from the Segments page.

To rerun a segment

  1. From the Segments page, on the Customers page, click Rerun.

  2. The system reruns the segment the customer data on the Customers page is updated.

Search segments

You can search for segments on the Segments page.

To search for a segment

  1. On the top of the Segments page, enter the name of the segment into the search field.

    Tip

    Select the Also search segment content option to search segment content.

Select database

You can build a segment against any database that is visible from the Customer 360 page.

To select a database

  1. From the Segments page, click Create segment, and then select Visual Segment. This opens the Segment Editor.

  2. Under Database, select a database. The Customer 360 database is selected by default.

  3. Build your segment against the list of tables that are available in that database.

Select multiple values

You can select multiple values from the Segment Editor.

To add attribute groups to a segment

  1. From the Segment Editor, click Add condition.

  2. Select a table or search for an attribute in the search field.

  3. Select a condition.

  4. In the field, search for or select values.

    Tip

    You can search for a value and then easily select all options in the list of values that appears by selecting the Select all checkbox.

  5. Click Save.

  6. When done adding criteria and sections, click Save to update the segment.

Set default charts

You can set and default charts from the Segment Editor.

To set default charts

  1. From the Segment Editor, click Actions.

  2. In the list that appears, click Set default charts.

  3. On the Set default breakdown charts window, you can either select up to 6 customer attributes or select up to 6 behavioral attributes.

  4. Once done updating the default charts, click Save.

    The default charts are available to all users of the Segments page.

Show columns

You can view columns that are in the segment results from the Customers page in the segment viewer. This can be configured to show all columns from all tables or only columns from a specific table.

To show columns

  1. From the Segments page, open the menu for a segment, and then select Edit. This opens the Segment Editor.

  2. Click the Customers page.

  3. Expand the Show [x] columns from [table] link.

  4. Use the Show all columns and Show only the columns I choose options to configure which columns are shown.

  5. Click Refresh to update the segment results to show the configured set of columns.

Switch to SQL segment

You can switch a visual segment to a SQL segment.

To switch to a SQL segment

  1. From the Segment Editor, open a segment.

  2. In the Segment Editor, in the top right, click View SQL.

  3. Click Convert to SQL Segment.

Use relative dates

A relative date is determined at the time a segment is run, where today is the day on which the segment is run. For example: yesterday, 30 days ago, 14 days ago, or 1 year ago.

To use relative dates for a segment

  1. From the Segment Editor, click Add condition, and then choose an attribute with a date or datetime value.

  2. Select the Use relative dates option, and then specify the relative date (or dates) that match the condition you selected. For example: “30 days ago”.

  3. Click Refresh to validate the segment.

  4. Click Save As.

Tip

To build a segment using relative dates, Amperity turns datetime fields into dates.

View a segment

You can view a segment on the Segments page.

To view a segment

  1. From the Segments page, click on a segment.

  2. The segment appears displaying a summary page with insight details.

View edit history

You can view information on the edit history for a segment from the Segments page.

To view the edit history for a segment

  1. From the Segments page, open the menu for a segment.

  2. Click Version History.

The Segment history window appears with informations about who edited the segment, the date(s) when the segment was edited, and the description(s) of what was edited.

View matching records

You can view matching records from a table from the Customers page on the Segments page.

To view matching records from a table

  1. From the Segments page, on the Customers page, expand the Show [x] columns from [table] link.

  2. Click in the Show matching records from: field.

  3. In the list that appears, select a table.

View overlap between segments

You can view and compare the overlap between segments.

To view the overlap between segments

  1. From the Segments page, select a segment and then click the Compare tab.

  2. The overlapping segments appear as a graph under the Overlap tab.

View SQL

Many sections of the Segments page use SQL queries to return the data that is shown for the segment. You can view the SQL for the following areas:

For attribute charts

You can view the SQL query that calculates the statistics in the segment attribute charts.

Note

You can’t edit the query.

To view the SQL for segment attribute charts

  1. From the Segments page, select a segment and then click the Breakdown tab.

  2. Open the menu for a customer or behavioral attributes chart.

  3. Select View SQL. The query that calculates the values in the tree is shown.

For revenue tree

You can view the SQL query that calculates the statistics in the segment revenue tree.

Note

You can’t edit the query.

To view the SQL for segment revenue tree

  1. From the Segments page, select a segment.

  2. Under Revenue and Reachability, open the menu for the revenue tree.

  3. Select View SQL. The query that calculates the values in the tree is shown.

For statistics

You can view the SQL for segment statistics on the Segments page in the Summary and Breakdown tabs.

To view the SQL for segment statistics on the Segments page

  1. From the Segments page, on the either the Summary tab or the Breakdown tab, click the options icon on a segment data card.

  2. Click View SQL.

The View SQL window appears with the query that calculates statistics for the segment.