Skip to main content

Node Client

Learn how to use Oppla’s Node.js client for server-side tracking and analytics.

Installation

Install the Oppla Node.js client:

Basic Usage

Initialize the Client

Track Events

User Management

Identify Users

Update User Properties

Batch Operations

Track Multiple Events

Identify Multiple Users

Error Handling

Best Practices

  1. Use Environment Variables: Store API keys securely
  2. Implement Retry Logic: Handle rate limits and network issues
  3. Batch When Possible: Reduce API calls
  4. Validate Data: Ensure required fields are present

Next Steps

Google Tag Manager

Integrate with Google Tag Manager

Data Tags

Organize your server-side data