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
  • Users
  • Sessions
  1. API Reference
  2. Custom API

Sessions and Users

PreviousCustom APINextTracking Page Views

Last updated 1 year ago

There are two important properties you will add to each message:

  • sessionId - a unique identifier for the current session

  • userId - a unique identifier for the user

Users

Although you can use to merge sessions and profiles, it is a must to store a persistent identifier for your user so every event by that user is collected into Profiles and Sessions.

We suggest using a unique string such as a , or .

If using a browser this identifier can be stored in LocalStorage or a cookie, but we suggest using a more persistent method for better accuracy in your data.

It can be hard to keep persistent data about a user in browser cookies because of user privacy concerns.

To make things easy we have a solution for storing these kinds of credentials, called .

Sessions

Sessions are used to identify that an event came from a specific sessions, such as a browser session or usage of an app.

We suggest using a unique string such as a , or .

If you are tracking in a browser it is fine to store this value in a non-guaranteed persistent storage such as LocalStorage as it does not need to be used across browsing sessions.

By default Fanplayr 360 assumes a session has ended 45 minutes after it receives the last message with a given sessionId. Because of this we suggest storing the last time a message was sent from a given ID and creating a new sessionId if it was longer than 45 minutes ago.

👩‍💻
identify
UUID
nanoID
ulid
PrivacyID
UUID
nanoID
ulid