Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Mikael Malmgren
Added: Aug 2, 2018 12:59 PM
Views: 6
Tags: no tags
  1. function() {
  2.   var clientIdDimensionIndex = 1;
  3.   var sessionIdDimensionIndex = 12;
  4.   return function(model) {
  5.     model.set('dimension' + clientIdDimensionIndex, model.get('clientId'));
  6.     if ({{ALL - Cookie - SessionId}}) {
  7.                 model.set('dimension' + sessionIdDimensionIndex, {{ALL - Cookie - SessionId}});
  8.     }
  9.   }
  10. }