Accessing ClientID set by Google Analytics through Google Tag Manager

前端 未结 3 866
猫巷女王i
猫巷女王i 2021-01-13 06:27

I have setup a new Universal Analytics tracking and would like to store ClientID in one of the custom dimensions slots.

The tracki

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-13 06:51

    The real problem is that GTM (Google Tag Manager) creates an object that is NOT called ga (it creates an object named ga followed by a random number), that's why 'ga' is not defined. You should try something on the lines of using the tag manager to put that client id into a javascript variable so you can access it from the page)

提交回复
热议问题