Advanced Setup

Document describing some more of the advanced features available for Rosetta.ai's JavaScript source.

Read our quickstart guide to learn how to load and initialize the Rosetta.ai SDK for JavaScript. While the quickstart guides you through the necessary components for minimum implementation, this guide will take you through some of the optional, advanced features.

User Mapping

Rosetta.ai SDK for JavaScript automatically generates a unique identifier anonymousId for your users. The userID method is how you associate your users and their actions to recognizable userIds (usually mapped to your own database of user identifiers).

In turn, this allows you to more easily accomplish:

  • Cross Device tracking

  • Retargeting

User Mapping Definition

rosetta('userID', 'userId')

User Mapping Examples

User ID is a String

rosetta('userID', 'u101')

User ID is an Integer

rosetta('userID', 111)

Last updated