Vivian
5/15/2019 - 1:15 PM

Get customer ID

MAX((SELECT MAX(IF(index=1, value, NULL)) FROM UNNEST(hits.customDimensions))) AS customerID

other dimension names:
pagetype, page ID, visitor type, customer default group, PRO user, visitor phase,
dynamic pricing, client type