Obtaining Google Analytics ClientID with Tag Manager
Anyone dealing with Measurement Protocols / CRMs may always need to store and retrieve ClientID for tasks like sending offline transactions, managing leads/ refunds etc. This post assumes you are using GTM for GA implementation with Universal Analytics. Step 1 Create a Custom JavaScript variable as below. function(){ return ga.getAll(