Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new

Learn more

View all

Sign in to view all badges

(How) Can I use the data elements (from DataLayer) in the library management of the DTM?

Level 1
Level 1

Hello, I need some help here...

We use a few Report Suits and want to spread the traffics per region (e.g. EU and NA) to the appropriate Report Suite.

We made a custom rule in the Library Management for this solution. (JavaScript Custom Editor)


The JS code:

  // NA Prd – Report Suite


    var s_account = 'na-prd';

  // EU Prd - Report Suite

  }else if(_satellite.getVar('spa_geoRegion')=='eu'){

    var s_account = 'eu-prd';

  // Global Prd - Report Suite


    var s_account='global-prd';


var s_runr=s_gi(s_account);

The value of the data element "spa_geoRegion" is from a dataLayer (e.g. geoRegion: na) and also used as eVar1.

For Example: the NA page is loaded (see below)



The value of the data element:


This website is SPA.

When we load the NA page for the first time the report suite id is always marked as "global-prd" even though we expect the report suite to be "na-prd".


After the first loading the report suite id is correctly marked as "na-prd".


Thank you in advance for your help.

Best regards,


0 Replies