#GTMTips: Use customTask To Access Tracker Values In Google Tag Manager | Simo Ahava's blog

PHOTO EMBED

Wed Jun 16 2021 01:25:47 GMT+0000 (Coordinated Universal Time)

Saved by @admariner

function() {
  // Modify customDimensionIndex to match the index number you want to send the data to
  var customDimensionIndex = 5;
  return function(model) {
    model.set('dimension' + customDimensionIndex, model.get('clientId'));
  }
}
content_copyCOPY

https://www.simoahava.com/gtm-tips/use-customtask-access-tracker-values-google-tag-manager/