Step-by-step guidance to create a Custom JavaScript variable! Follow the steps below to seamlessly pass data to Google Analytics through the setting variable.

  • Create a new Custom JavaScript variable

  • Add the code provided

  • Name the field for Google Analytics as "userId"

With this variable in place, your data can be seamlessly transferred to Analytics. Give it a shot!