Processing commands config ID missing

Created on 18 November 2024, 7 days ago

Problem/Motivation

The console is showing an error related with config related. After debug it seems that the issue remains on this piece of code, as the tagId is null:

if (additionalConfigInfo.length === 0) {
    gtag('config', config.tagId);
  } else {
    gtag('config', config.tagId, additionalConfigInfo);
  }

Steps to reproduce

Install this extension https://chromewebstore.google.com/detail/google-analytics-debugger/jnkmf... to see the debug on your console
Open DevTools to see the issue on your console

Proposed resolution

Add a condition to check the tagId has a value

if (additionalConfigInfo.length === 0) {
    if (config.tagId) {
       gtag('config', config.tagId);
    }
  } else {
    if (config.tagId) {
       gtag('config', config.tagId, additionalConfigInfo);
    }
  }

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇪🇸Spain sandrazoocha

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024