Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › Troubleshooting Custom Dimension in Google Analytics with gtag set() Method › Reply To: Troubleshooting Custom Dimension in Google Analytics with gtag set() Method
-
Based on the information you’ve provided, it seems like the
setfunction may not be effectively transmitting thechain_idwith your events. To troubleshoot the issue, you could try using Google Tag Manager’sField To Setfeature to set thechain_idfor your GA4 configuration. This would equate to callinggtag('config','{Your GA4 ID}', { 'chain_id': 'Test chain id' });in your code. Then, when calling theeventin your code, try something like this:gtag('event','click', { 'send_to': '{Your GA4 ID}' });. This might help ensure that thechain_idis consistently being sent with your events. Do note, however, that you’d need to replace{Your GA4 ID}with your actual Google Analytics 4 ID in the above examples.