Search code examples
google-analyticsgoogle-tag-manager

Google Tag Manager connection with Analytics


I'm having an issue with the settings of the tags in Google Tag Manager and Google Analytics. I created a tag in Tag Manager that uses my Analytics ID and I'm able to see the custom variables in the Tag Manager, but they're not being sent to Analytics.

I suspect the issue might be in the other settings of the tag, but I'm not sure what's causing the problem. Can someone help me understand how these other settings affect the way variables are transferred between Tag Manager and Analytics?

I would really appreciate any help or suggestions you could provide to help me solve this problem. Thank you!

I tried creating a tag in Google Tag Manager that uses my Analytics ID and includes some custom variables. I was expecting to see these variables in Google Analytics, but they are not showing up.

I also checked the Tag Manager debug mode to see if there were any errors, but everything seems to be working fine. I'm not sure what else to try at this point.

Any suggestions would be greatly appreciated. Thank you!


Solution

  • You haven't provide any info about how you are managing this connection between your GTM and analytics.google. I suppose you are sending your info through datalayer.send. So, you need to create all custom dimensions in analytics.google profile and it takes 48 hours to get effected. Remember, once created a custom dimension the Event parameter related to that dimension is not modifiable. Then, you have to go to you GTM profile and create a Configuration Tag, and you have to set the Measurement Id equal to the Measurement Id obtained from you analytics.google profile like the photo below: Remember to select GA4 Configuration as the type.

    enter image description here

    then, you should create another tag and consequently a trigger:

    enter image description here

    To create the custom variables which are going to be set as User-Defined Variables. If they are going to get their values from datalayer.send then you need to define their types as "Data Layer Variable" , this means that you should ask the developers to set this value while you are initializing the GA4 function. otherwise, if you are considering this parameter as a Javascript or Custom Javascript, then you should set the info correspondingly depending on your requirements and ask the developers to provide these info for GA4. Also GTM needs 24 hours to handle the changes. enter image description here