Container & Environment

this.package.account Variable

The this.package.account variable provides the account name under which the currently tracked data is being processed in the JENTIS Environment.


Purpose

This variable identifies the account context (usually a domain-specific identifier such as customerx.live) for which the data was received. It is useful for:

  • Multi-account setups

  • Conditional logic based on the active account

  • Validation and debugging across environments (e.g., staging vs. production)


Variable Definition

Property
Description

Variable Name

this.package.account

Type

string

Scope

Available in server-side variables

Example Value

"customerx.live"


Example Usage

async function() {
    var x = this.package.account; // e.g., "customerx.live"
    return x;
}

This example retrieves the account name associated with the incoming client data.


Use Cases

  • Conditional processing based on account context

  • Implementing logic specific to certain subdomains or clients

  • Auditing incoming requests in multi-tenant environments


Notes

  • The value reflects the active JENTIS account as configured in the environment.

  • This variable is populated automatically by JENTIS — no client-side setup required.

  • Can be used alongside other this.package.* properties for full context enrichment.


Summary

this.package.account allows you to identify which JENTIS account is associated with the incoming tracking request. It's especially useful in setups that support multiple brands, environments, or domains, enabling you to build smarter and more context-aware tracking logic.

Last updated

Was this helpful?