Server-Side Variables (Backend)

The server side has the capability to calculate and return values as you need them, just like the Frontend Variables. The difference is the runtime, as all the Backend Variables are calculated on the server and thus don’t access the actual environment on a user's browser. Instead, the Backend Variables access values that are submitted in the JENTIS Data Model (Document Objects). Here you can create functions to address complex logic that you need to apply to values to meet certain syntax criteria or serve a business case.

Server-Side Variable Basics

Other than client-side variables, the server-side counterpart has the unique possibility of "Variable Evaluation". The value of a server-side function may be used in multiple triggers or tags. However, each server-side variable will be evaluated once per State. If a server-side Variable is neither referenced in any element (tag, trigger) in a State, it will not be evaluated.

Server-Side Variable Creation Process

To create a server-side variable, navigate your DCP to Server Tag Manager: Variables and select “Server Side”. Here you can add new server-side variables or adjust existing ones.

There are several templates available for creating a server-side variable
Template Name
Use Case
Description

User consent

Server-Side Lookup Table

APP SDK Datalayer Property

Server-Side JavaScript Code

Last updated

Was this helpful?