jgeiser
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Listrak Destination Fueled by AI, machine learning, and predictive analytics, [Listrak](https://www.listrak.com/) helps unlock the power of customer data to create personalized, 1:1 interactions. Quickly and easily subscribe users to your list with a single API call and access Segment customer events from inside the Listrak Platform. This destination is maintained by Listrak. For any issues with the destination, please contact the [Listrak Client Success Team](mailto:support@listrak.com). _**NOTE:** The Listrak Destination is currently in beta, which means that they are still actively developing the destination. This doc was last updated on October 10, 2019. If you are interested in joining their beta program or have any feedback to help improve the Listrak Destination and its documentation, please [let their team know](mailto:support@listrak.com)!_ ## Getting Started {{>connection-modes}} 1. From your Segment UI's Destinations page click **Add Destination**. 2. Search for **Listrak** within the Destinations Catalog and confirm the Source you'd like to connect to. 3. Enter the **MerchantID** and **Shared Secret** in the Segment Settings UI. While the destination is in private beta, please contact the [Listrak Client Success Team](mailto:support@listrak.com) for these credentials. 4. Proceed to add the desired List ID, Contact Field Mappings, Event Mappings and Transactional Message Mappings in the settings. Please see the Listrak Subscription section for more information on how to populate these. ## Listrak Web Plugin The first part of the Listrak destination is our web plugin. Listrak will listen for many calls defined in [Segment's Ecommerce V2 Spec](https://segment.com/docs/spec/ecommerce/v2/) for use in our Browse Abandonment and Shopping Cart Abandonment solutions. ### Page Please take a moment to review the [page method](https://segment.com/docs/spec/page/). The page method captures page details such as title and URL when a user visits the page. An example call would look like: ``` analytics.page() ``` Page calls are sent to Listrak as a `pagebrowse`. **NOTE:** Listrak only supports page calls via client-side analytics.js. ### Identify Please take a moment to review the [identify method](https://segment.com/docs/spec/identify/). The identify method connects a user to their traits and actions. An example call from client-side analytics.js would look like: ``` analytics.identify('userId123', { email: 'john.doe@segment.com', firstName: "John", lastName: "Doe", }); ``` ### Track Please take a moment to review the [track method](https://segment.com/docs/spec/track/). The track method records users' actions. If an email address is included in the track method as shown below, Listrak will start tracking that anonymous ID. ``` analytics.track('Email Captured', { email: "emailCapture@listrak.com" }); ``` Listrak listens specifically for product browse, product added, product removed, and order completed track events on the client-side and order completed on the server-side. A product viewed example call would look like: ``` analytics.track('Product Viewed', { product_id: '507f1f77bcf86cd799439011', sku: 'G-32', category: 'Games', name: 'Monopoly: 3rd Edition', brand: 'Hasbro', variant: '200 pieces', price: 18.99, quantity: 1, coupon: 'MAYDEALS', currency: 'usd', position: 3, value: 18.99, url: 'https://www.example.com/product/path', image_url: 'https://www.example.com/product/path.jpg' }); ``` This call is sent to Listrak as a `ProductBrowse` event. An example product added track call would look like: ``` analytics.track('Product Added', { cart_id: 'skdjsidjsdkdj29j', product_id: '507f1f77bcf86cd799439011', sku: 'B-32', category: 'Games', name: 'Monopoly: 3rd Edition', brand: 'Hasbro', variant: '200 pieces', price: 18.99, quantity: 1, coupon: 'MAYDEALS', position: 3, url: 'https://www.example.com/product/path', image_url: 'https://www.example.com/product/path.jpg' }); ``` This call is sent to Listrak for tracking shopping cart abandonment. An example product removed track call would look like: ``` analytics.track('Product Removed', { cart_id: 'skdjsidjsdkdj29j', product_id: '507f1f77bcf86cd799439011', sku: 'B-32', category: 'Games', name: 'Monopoly: 3rd Edition', brand: 'Hasbro', variant: '200 pieces', price: 18.99, quantity: 1, coupon: 'MAYDEALS', position: 3, url: 'https://www.example.com/product/path', image_url: 'https://www.example.com/product/path.jpg' }); ``` This call is sent to Listrak for tracking shopping cart abandonment. An example order completed track call would look like: ``` analytics.track('Order Completed', { order_id: '50314b8e7bcf9900033433', total: 27.50, revenue: 25.00, shipping: 3, tax: 2, discount: 2.5, coupon: 'hasbros', products: [ { product_id: '507f1f77bcf86cd799439011', sku: '45790-32', name: 'Monopoly: 3rd Edition', price: 19, quantity: 1, category: 'Games', url: 'https://www.example.com/product/path', image_url: 'https:///www.example.com/product/path.jpg' }, { product_id: '505bd76785ebb509fc183733', sku: '46493-32', name: 'Uno Card Game', price: 3, quantity: 2, category: 'Games' } ] }); ``` This call is sent to Listrak for tracking customer order history and shopping cart abandonment. ## Listrak Subscription The second half of the Listrak Destination is our subscription. For ease of setup, the subscription is designed so the user only needs to define the Listrak actions in the Segment Settings page for the desired Segment event. When these events are fired, the Listrak action will automatically fire as well. List IDs, External Event IDs, Transactional Message IDs and Segmentation IDs can be found in the Listrak Platform, under [Solutions > API > API ID Information](https://intercom.help/listrak/en/articles/1523037-api-id-information). ### List ID The first field to configure is your default List ID. This will be used whenever you do not specify an override list for individual events. ### Contact Field Mappings When a user is identified, Listrak will update their information if they are already subscribed to the list. Contact Field Mappings allow you to map Segment traits to Listrak segmentation fields. ### Event Mappings Event Mappings are used to subscribe or unsubscribe users, update segmentation data and trigger external events for Conductor conversations when the named track event is fired. ![Example Event Mappings](https://i.imgur.com/gH6WMMn.jpg) The External Event ID is the ID of the event you want to fire in Listrak and is optional. Subscription State determines if the user will be subscribed to or unsubscribed from the list. If an already-subscribed user goes through an event with a subscription state of subscribed, they will be updated. The List ID field is optional, and only needed to use an event on a different list. Field mappings allow you to map Segment traits to Segmentation fields in Listrak. **NOTE:** For Field Mappings, 'properties.' must be prepended to the trait name. Field Template Mappings are used for passing HTML data to a Listrak Contact Content Block for uses like Cart templates. This field supports Mustache templates to include traits. ### Transactional Message Mappings When you want to send a message immediately without updating segmentation data, use Transactional Message Mappings. The segmentation fields here are only used to populate the message and are not saved in our systems. ![](https://i.imgur.com/nwLN8ot.jpg) Transactional Message ID is the Listrak ID of the transactional message. The List ID field is optional, but commonly Listrak users create a separate list for transactional messages since contacts are not subscribed when messages are triggered. Field mappings allow mapping Segment traits to Segmentation fields in Listrak. **NOTE:** For Field Mappings, 'properties.' must be prepended to the trait name. Field Template Mappings is used for passing HTML data to a Listrak Contact Content Block for uses like Cart templates. This field supports Mustache templates to include traits. ## Using Mustache Templates Traits can be included with Mustache by surrounding the trait name with curly brackets like `{{name}}`. Mustache also supports arrays. In this case, you surround the area with the array variables with array tags. the opening tag has the array name lead by `#` like `{{#products}}` while the end tag has a forward slash `/` like `{{/products}}`. The variables follow the same format as before and go between these tags. ``` {{#products}} <div> <p>{{name}}</p> <p>{{price}}</p> </div> {{/products}} ``` Mustache will automatically escape some characters. If this is an issue, you can prevent escaping by adding a `!` in front of the variable name like `{{!img_url}}`. If a Mustache property is present in the mapping but not in the Segment event, it will be passed over as `undefined`. For properties that may not always be passed in, Mustache has some basic undefined checks. The below example will display the product's name if it is present. If it is not, it will display a blank string. This would also support mapping a different field or adding static text. ``` {{#products}} {{#name}} {{name}} {{/name}} {{^name}} {{/name}} {{/products}} ```

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully