Identify

The identify function is used to attach custom data to a visitor, which will be visible on your F2F dashboard.

The identify function is used to attach custom data to a visitor, which will be visible on your F2F dashboard.

Usage: F2FSDK.identify(identity)

Parameters:

  • identity: An object containing key-value pairs to identify the visitor.
    • Example:
      • { "Name": "John", "LastName": "Doe", "Email": "john.doe@example.com" }
    • You can use any custom keys, such as Age, Company, MembershipLevel...

Example Code:

F2FSDK.identify({
  Name: "Jane",
  LastName: "Smith",
  Age: 29,
  MembershipLevel: "Gold"
});

Once identified, this data will appear on the visitor's profile in your F2F dashboard.

 
 

Last updated on December 23, 2024