Fanplayr 360
  • Introduction
  • Data
  • Navigation
  • Tutorials
    • Sync High Value Users to Facebook Custom Audience
  • Features
    • Overview
    • Filters
      • Examples
    • Insights
    • Audiences
      • List
      • Editing
    • Automations
      • List
      • Editing
    • Pipelines
      • List
      • Editing
    • Exports
      • List
      • Editing
    • Profiles
      • Profile
  • 🔗Integrations
    • Sources
      • List
      • Editing
    • Destinations
      • List
      • Editing
    • Catalog
      • Amplitude
      • Attentive
      • AWS S3
      • Cordial
      • Custom Integration
      • Facebook Custom Audience
      • FTP/SFTP - Password Authentication
      • Google Ads
      • JavaScript
      • Mailchimp
      • Mailup
      • Pipedrive
      • Salesforce Commerce Cloud
      • Salesforce Marketing Cloud
      • Send In Blue
      • SFTP - SSH Key Authentication
      • Shopify
      • Slack
      • TikTok
      • Twilio
      • VTEX IO
  • Other
    • Mapping
      • Events
      • Event Attributes
    • Data Dictionary
      • Events
      • Event Attributes
      • User Attributes
    • Data Health
    • Compliance
      • PII
      • Consent
    • Account Settings
      • Personal
      • Preferences
      • Company
      • Users
      • Security
      • Invoices
  • 👩‍💻API Reference
    • API Overview
    • JavaScript API
      • Javascript API Reference
    • Custom API
      • Sessions and Users
      • Tracking Page Views
      • Tracking Events
      • Managing Identity
      • User Profile Data
      • Managing Consent
    • Semantic Data
      • Semantic Events
        • E-Commerce
        • Messaging
        • Other
      • Semantic Objects
      • Semantic User Attributes
      • Fanplayr 360 Generated Attributes
  • PrivacyID
  • Appendix
    • Terminology
Powered by GitBook
On this page
  • Session Started
  • Session Ended
  • Location Visited
  • Offline Purchase Completed
  • Purchase Returned
  • Widget Viewed
  • Widget Interacted
  • Offer Viewed
  • Recommendation Viewed
  • Recommendation Clicked
  • Recommendation Added
  • Recommendation Purchased
  • Form Submitted
  • Form Interacted
  • Form Viewed
  1. API Reference
  2. Semantic Data
  3. Semantic Events

Other

PreviousMessagingNextSemantic Objects

Last updated 1 year ago

Session Started

It is good practice to track when a user starts a new session. This would normally happen on the first page view of your website or when they open your app.

You can send any custom attributes along with this

interface SessionStart {
    event: 'Session Started',
    properties?: { ...custom }
}
fp360.track('Session Started', {
    // optionally send custom attributes
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "event": "Session Started",
  "properties": {
    // optionally send custom attributes
  }
}

Session Ended

You can send any custom attributes along with this.

interface SessionStart {
    event: 'Session Ended',
    properties?: { ...custom }
}
fp360.track('Session Ended', {
    // optionally send custom attributes
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "event": "Session Ended",
  "properties": {
    // optionally send custom attributes
  }
}

Location Visited

Indicate an offline location has been visited such as a store.

  • $location -

Interface

interface LocationVisited {
  event: 'Location Visited'
  properties: {
    $location: Location
  }
}

Example

fp360.track('Location Visited', {
  $location: {
    id: "234789",
    name: "Fanplayr HQ",
    country: "United States",
    countryCode: "US",
    region: "California",
    city: "Palo Alto",
    postalCode: "94301",
    street: "725 Alma Street",
    text: "725 Alma Street, Palo Alto, CA 94301",
    latitude: 37.44178713736534,
    longitude: -122.16064940120228
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "event": "Location Visited",
  "properties": {
    "$location": {
      "id": "234789",
      "name": "Fanplayr HQ",
      "country": "United States",
      "countryCode": "US",
      "region": "California",
      "city": "Palo Alto",
      "postalCode": "94301",
      "street": "725 Alma Street",
      "text": "725 Alma Street, Palo Alto, CA 94301",
      "latitude": 37.44178713736534,
      "longitude": -122.16064940120228
    }
  }
}

Offline Purchase Completed

Indicate a purchase was completed offline, such as in store.

Interface

interface OfflinePurchaseCompleted {
  event: 'Offline Purchase Completed'
  properties: {
    $order: Order
  }
}

Example

fp360.track('Offline Purchase Completed', {
  $order: {
    orderNumber: "34859456045",
    revenue: 73.40,
    discount: 10.00,
    discountCode: "10OFF",
    tax: 5.00,
    shipping: 7.00,
    currency: "USD",
    salesperson: "Jane",
    cashier: "John",
    products: [
      {
        id: "23489023",
        sku: "23489023",
        name: "Red Shoes",
        categories: [
          "Shoes & Accessories > Shoes",
          "Shoes & Accessories > Shoes > Women Shoes"
        ],
        price: 49.95,
        quantity: 1,
        url: "https://example.com/products/23489023",
        imageUrl: "https://example.com/products/23489023.jpg",
        currency: "USD",
        variant: "Striped",
        color: "Red",
        size: "US 8",
        brand: "Nike"
      }
    ],
    location: {
      id: "243850934",
      name: "Fanplayr HQ",
      country: "United States",
      countryCode: "US",
      region: "California",
      city: "Palo Alto",
      postalCode: "94301",
      street: "725 Alma Street",
      text: "725 Alma Street, Palo Alto, CA 94301",
      latitude: 37.44178713736534,
      longitude: -122.16064940120228
    }
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "event": "Offline Purchase Completed",
  "properties": {
    "$order": {
      "orderNumber": "34859456045",
      "revenue": 73.40,
      "discount": 10.00,
      "discountCode": "10OFF",
      "tax": 5.00,
      "shipping": 7.00,
      "currency": "USD",
      "salesperson": "Jane",
      "cashier": "John",
      "products": [
        {
          "id": "23489023",
          "sku": "23489023",
          "name": "Red Shoes",
          "categories": [
            "Shoes & Accessories > Shoes",
            "Shoes & Accessories > Shoes > Women Shoes"
          ],
          "price": 49.95,
          "quantity": 1,
          "url": "https://example.com/products/23489023",
          "imageUrl": "https://example.com/products/23489023.jpg",
          "currency": "USD",
          "variant": "Striped",
          "color": "Red",
          "size": "US 8",
          "brand": "Nike"
        }
      ],
      "location": {
        "id": "243850934",
        "name": "Fanplayr HQ",
        "country": "United States",
        "countryCode": "US",
        "region": "California",
        "city": "Palo Alto",
        "postalCode": "94301",
        "street": "725 Alma Street",
        "text": "725 Alma Street, Palo Alto, CA 94301",
        "latitude": 37.44178713736534,
        "longitude": -122.16064940120228
      }
    }
  }
}

Purchase Returned

Indicate a purchase was returned.

Interface

interface PurchaseReturned {
  event: 'Purchase Returned'
  properties: {
    $order: Order
  }
}

Example

fp360.track('Purchase Returned', {
  $order: {
    orderNumber: "34859456045",
    returnReference: "9764383",
    returnReason: "Change of mind",
    revenue: 73.40,
    tax: 5.00,
    currency: "USD",
    cashier: "John",
    products: [
      {
        id: "23489023",
        sku: "23489023",
        name: "Red Shoes",
        categories: [
          "Shoes & Accessories > Shoes",
          "Shoes & Accessories > Shoes > Women Shoes"
        ],
        price: 49.95,
        quantity: 1,
        url: "https://example.com/products/23489023",
        imageUrl: "https://example.com/products/23489023.jpg",
        currency: "USD",
        variant: "Striped",
        color: "Red",
        size: "US 8",
        brand: "Nike"
      }
    ],
    location: {
      id: "243850934",
      name: "Fanplayr HQ",
      country: "United States",
      countryCode: "US",
      region: "California",
      city: "Palo Alto",
      postalCode: "94301",
      street: "725 Alma Street",
      text: "725 Alma Street, Palo Alto, CA 94301",
      latitude: 37.44178713736534,
      longitude: -122.16064940120228
    }
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "event": "Purchase Returned",
  "properties": {
    "$order": {
      "orderNumber": "34859456045",
      "returnReference": "9764383",
      "returnReason": "Change of mind",
      "revenue": 73.40,
      "tax": 5.00,
      "currency": "USD",
      "cashier": "John",
      "products": [
        {
          "id": "23489023",
          "sku": "23489023",
          "name": "Red Shoes",
          "categories": [
            "Shoes & Accessories > Shoes",
            "Shoes & Accessories > Shoes > Women Shoes"
          ],
          "price": 49.95,
          "quantity": 1,
          "url": "https://example.com/products/23489023",
          "imageUrl": "https://example.com/products/23489023.jpg",
          "currency": "USD",
          "variant": "Striped",
          "color": "Red",
          "size": "US 8",
          "brand": "Nike"
        }
      ],
      "location": {
        "id": "243850934",
        "name": "Fanplayr HQ",
        "country": "United States",
        "countryCode": "US",
        "region": "California",
        "city": "Palo Alto",
        "postalCode": "94301",
        "street": "725 Alma Street",
        "text": "725 Alma Street, Palo Alto, CA 94301",
        "latitude": 37.44178713736534,
        "longitude": -122.16064940120228
      }
    }
  }
}

Widget Viewed

Indicate a widget was viewed. This can be used for online popups such as email collection, surveys or offers.

Interface

interface WidgetViewed {
  type: 'track'
  event: 'Widget Viewed'
  properties: {
    $widget: Widget
    $targeting?: Targeting
    $discountCode?: string
  }
}

Example

fp360.track('Widget Viewed', {
  $widget: {
    id: "19811",
    name: "Present a great offer",
  },
  $targeting: {
    offerId: "12"
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "type": "track",
  "event": "Widget Viewed",
  "properties": {
    "$widget": {
      "id": "19811",
      "name": "Present a great offer"
    },
    "$targeting": {
      "offerId": "12"
    }
  }
}

Widget Interacted

Indicate an action was taken on a widget. This can be used for online popups such as email collection, surveys or offers.

Interface

interface WidgetInteracted { 
  type: 'track'
  event: 'Widget Interacted'
  properties: {
    $widget: Widget
    $targeting?: Targeting
    $discountCode?: string
  }
}

Example

fp360.track('Widget Interacted', {
  $widget: {
    id: "19811",
    name: "Present a great offer",
    action: "afn",
  },
  $targeting: {
    offerId: "12"
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "type": "track",
  "event": "Widget Interacted",
  "properties": {
    "$widget": {
      "id": "19811",
      "name": "Present a great offer",
      "action": "afn",
    },
    "$targeting": {
      "offerId": "12"
    }
  }
}

Offer Viewed

Indicate an offer was presented. This can be used online in cases where a special offer was presented to a user.

Interface

interface OfferViewed {
  type: 'track'
  event: 'Offer Viewed'
  properties: {
    $widget: Widget
    $targeting: Targeting
    $discountCode?: string
  }
}

Example

fp360.track('Offer Viewed', {
  $widget: {
    id: "19811",
    name: "Present a great offer",
  },
  $targeting: {
    offerId: "12"
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "type": "track",
  "event": "Offer Viewed",
  "properties": {
    "$widget": {
      "id": "19811",
      "name": "Present a great offer"
    },
    "$targeting": {
      "offerId": "12"
    }
  }
}

Recommendation Viewed

A recommendation was viewed.

Interface

interface RecommendationViewed {
  event: 'Recommendation Viewed'
  properties: {
    $recommendation: Recommendation
    $widget?: Widget
    $targeting?: Targeting
  }
}

Example

fp360.track('Recommendation Viewed', {
  $recommendation: {
    id: "7812087d-d7ff-46d7-a790-eb60c4bb679f",
    model: "Others You May Like",
    products: [
      {
        id: "23489023",
        sku: "23489023",
        name: "Red Shoes",
        categories: [
          "Shoes & Accessories > Shoes",
          "Shoes & Accessories > Shoes > Women Shoes"
        ],
        price: 49.95,
        quantity: 1,
        url: http://example.com/products/23489023",
        imageUrl: http://example.com/products/23489023.jpg",
        currency: "USD",
        variant: "Striped",
        color: "Red",
        size: "US 8",
        brand: "Nike"
      }
    ]
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "event": "Recommendation Viewed",
  "properties": {
    "$recommendation": {
      "id": "7812087d-d7ff-46d7-a790-eb60c4bb679f",
      "model": "Others You May Like",
      "products": [
        {
          "id": "23489023",
          "sku": "23489023",
          "name": "Red Shoes",
          "categories": [
            "Shoes & Accessories > Shoes",
            "Shoes & Accessories > Shoes > Women Shoes"
          ],
          "price": 49.95,
          "quantity": 1,
          "url": "https://example.com/products/23489023",
          "imageUrl": "https://example.com/products/23489023.jpg",
          "currency": "USD",
          "variant": "Striped",
          "color": "Red",
          "size": "US 8",
          "brand": "Nike"
        }
      ]
    }
  }
}

Recommendation Clicked

A recommendation was clicked.

Interface

interface RecommendationClicked {
  event: 'Recommendation Clicked'
  properties: {
    $recommendation: Recommendation
    $widget?: Widget
    $targeting?: Targeting
  }
}

Example

fp360.track('Recommendation Clicked', {
  $recommendation: {
    id: "7812087d-d7ff-46d7-a790-eb60c4bb679f",
    model: "Others You May Like",
    products: [
      {
        id: "23489023",
        sku: "23489023",
        name: "Red Shoes",
        categories: [
            "Shoes & Accessories > Shoes",
            "Shoes & Accessories > Shoes > Women Shoes"
          ],
        price: 49.95,
        quantity: 1,
        url:http://example.com/products/23489023",
        imageUrl:http://example.com/products/23489023.jpg",
        currency: "USD",
        variant: "Striped",
        color: "Red",
        size: "US 8",
        brand: "Nike"
      }
    ]
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "event": "Recommendation Clicked",
  "properties": {
    "$recommendation": {
      "id": "7812087d-d7ff-46d7-a790-eb60c4bb679f",
      "model": "Others You May Like",
      "products": [
        {
          "id": "23489023",
          "sku": "23489023",
          "name": "Red Shoes",
          "categories": [
            "Shoes & Accessories > Shoes",
            "Shoes & Accessories > Shoes > Women Shoes"
          ],
          "price": 49.95,
          "quantity": 1,
          "url": "https://example.com/products/23489023",
          "imageUrl": "https://example.com/products/23489023.jpg",
          "currency": "USD",
          "variant": "Striped",
          "color": "Red",
          "size": "US 8",
          "brand": "Nike"
        }
      ]
    }
  }
}

Recommendation Added

A recommendation was added.

Interface

interface RecommendationAdded {
  event: 'Recommendation Added'
  properties: {
    $recommendation: Recommendation
    $widget?: Widget
    $targeting?: Targeting
  }
}

Example

fp360.track('Recommendation Added', {
  $recommendation: {
    id: "7812087d-d7ff-46d7-a790-eb60c4bb679f",
    model: "Others You May Like",
    products: [
      {
        id: "23489023",
        sku: "23489023",
        name: "Red Shoes",
        categories: [
          "Shoes & Accessories > Shoes",
          "Shoes & Accessories > Shoes > Women Shoes"
        ],
        price: 49.95,
        quantity: 1,
        url: http://example.com/products/23489023",
        imageUrl: http://example.com/products/23489023.jpg",
        currency: "USD",
        variant: "Striped",
        color: "Red",
        size: "US 8",
        brand: "Nike"
      }
    ]
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "event": "Recommendation Added",
  "properties": {
    "$recommendation": {
      "id": "7812087d-d7ff-46d7-a790-eb60c4bb679f",
      "model": "Others You May Like",
      "products": [
        {
          "id": "23489023",
          "sku": "23489023",
          "name": "Red Shoes",
          "categories": [
            "Shoes & Accessories > Shoes",
            "Shoes & Accessories > Shoes > Women Shoes"
          ],
          "price": 49.95,
          "quantity": 1,
          "url": "https://example.com/products/23489023",
          "imageUrl": "https://example.com/products/23489023.jpg",
          "currency": "USD",
          "variant": "Striped",
          "color": "Red",
          "size": "US 8",
          "brand": "Nike"
        }
      ]
    }
  }
}

Recommendation Purchased

A recommendation was displayed to the user and then the user purchased one of these products.

Interface

interface RecommendationPurchased {
  event: 'Recommendation Purchased'
  properties: {
    $recommendation: Recommendation
    $widget?: Widget
    $targeting?: Targeting
  }
}

Example

fp360.track('Recommendation Purchased', {
  $recommendation: {
    id: "7812087d-d7ff-46d7-a790-eb60c4bb679f",
    model: "Others You May Like",
    products: [
      {
        id: "23489023",
        sku: "23489023",
        name: "Red Shoes",
        categories: [
          "Shoes & Accessories > Shoes",
          "Shoes & Accessories > Shoes > Women Shoes"
        ],
        price: 49.95,
        quantity: 1,
        url: http://example.com/products/23489023",
        imageUrl: http://example.com/products/23489023.jpg",
        currency: "USD",
        variant: "Striped",
        color: "Red",
        size: "US 8",
        brand: "Nike"
      }
    ]
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "event": "Recommendation Purchased",
  "properties": {
    "$recommendation": {
      "id": "7812087d-d7ff-46d7-a790-eb60c4bb679f",
      "model": "Others You May Like",
      "products": [
        {
          "id": "23489023",
          "sku": "23489023",
          "name": "Red Shoes",
          "categories": [
            "Shoes & Accessories > Shoes",
            "Shoes & Accessories > Shoes > Women Shoes"
          ],
          "price": 49.95,
          "quantity": 1,
          "url": "https://example.com/products/23489023",
          "imageUrl": "https://example.com/products/23489023.jpg",
          "currency": "USD",
          "variant": "Striped",
          "color": "Red",
          "size": "US 8",
          "brand": "Nike"
        }
      ]
    }
  }
}

Form Submitted

Indicates that a form was submitted.

Interface

interface FormSubmitted {
  event: 'Form Submitted'
  properties: {
    $widget?: Widget
  }
}

Example

fp360.track('Form Submitted', {
  $widget: {
    id: "19811",
    name: "Present a great offer",
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "type": "track",
  "event": "Form Submitted",
  "properties": {
    "$widget": {
      "id": "19811",
      "name": "Present a great offer"
    }
  }
}

Form Interacted

Indicates that a form was interacted with.

Interface

interface FormInteracted {
  event: 'Form Interacted'
  properties: {
    $widget?: Widget
  }
}

Example

fp360.track('Form Interacted', {
  $widget: {
    id: "19811",
    name: "Present a great offer",
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "type": "track",
  "event": "Form Interacted",
  "properties": {
    "$widget": {
      "id": "19811",
      "name": "Present a great offer"
    }
  }
}

Form Viewed

Indicates that a form was viewed.

Interface

interface FormViewed {
  event: 'Form Viewed'
  properties: {
    $widget?: Widget
  }
}

Example

fp360.track('Form Viewed', {
  $widget: {
    id: "19811",
    name: "Present a great offer",
  }
})

Example

{
  ...<EVENT_MESSAGE_PROPERTIES>,
  "type": "track",
  "event": "Form Viewed",
  "properties": {
    "$widget": {
      "id": "19811",
      "name": "Present a great offer"
    }
  }
}

$order -

$order -

$widget -

$targeting -

$widget -

$targeting -

$widget -

$targeting -

$recommendation -

$widget -

$targeting -

$recommendation -

$widget -

$targeting -

$recommendation -

$widget -

$targeting -

$recommendation -

$widget -

$targeting -

$widget -

$widget -

$widget -

👩‍💻
Location
Order
Order
Widget
Targeting
Widget
Targeting
Widget
Targeting
Recommendation
Widget
Targeting
Recommendation
Widget
Targeting
Recommendation
Widget
Targeting
Recommendation
Widget
Targeting
Widget
Widget
Widget