@@ -93,7 +93,7 @@ public function webContainerEnabled(string $storeId = null): bool
9393 */
9494 public function getAccountId (string $ storeId = null ): string
9595 {
96- return ( string )$ this ->getConfig (self ::XML_PATH_ACCOUNT_ID , $ storeId );
96+ return trim (( string )$ this ->getConfig (self ::XML_PATH_ACCOUNT_ID , $ storeId) );
9797 }
9898
9999 /**
@@ -104,7 +104,7 @@ public function getAccountId(string $storeId = null): string
104104 */
105105 public function getContainerId (string $ storeId = null ): string
106106 {
107- return ( string )$ this ->getConfig (self ::XML_PATH_CONTAINER_ID , $ storeId );
107+ return trim (( string )$ this ->getConfig (self ::XML_PATH_CONTAINER_ID , $ storeId) );
108108 }
109109
110110 /**
@@ -115,7 +115,7 @@ public function getContainerId(string $storeId = null): string
115115 */
116116 public function getPublicId (string $ storeId = null ): string
117117 {
118- return ( string )$ this ->getConfig (self ::XML_PATH_WEB_PUBLIC_ID , $ storeId );
118+ return trim (( string )$ this ->getConfig (self ::XML_PATH_WEB_PUBLIC_ID , $ storeId) );
119119 }
120120
121121 /**
@@ -137,7 +137,7 @@ public function isAnalyticsEnabled(string $storeId = null): bool
137137 */
138138 public function getMeasurementId (string $ storeId = null ): string
139139 {
140- return ( string )$ this ->getConfig (self ::XML_PATH_ANALYTICS_MEASUREMENT_ID , $ storeId );
140+ return trim (( string )$ this ->getConfig (self ::XML_PATH_ANALYTICS_MEASUREMENT_ID , $ storeId) );
141141 }
142142
143143 /**
@@ -148,7 +148,7 @@ public function getMeasurementId(string $storeId = null): string
148148 */
149149 public function getProductAttribute (string $ storeId = null ): string
150150 {
151- return ( string )$ this ->getConfig (self ::XML_PATH_ATTRIBUTES_PRODUCT , $ storeId );
151+ return trim (( string )$ this ->getConfig (self ::XML_PATH_ATTRIBUTES_PRODUCT , $ storeId) );
152152 }
153153
154154 /**
@@ -159,7 +159,7 @@ public function getProductAttribute(string $storeId = null): string
159159 */
160160 public function getBrandAttribute (string $ storeId = null ): string
161161 {
162- return ( string )$ this ->getConfig (self ::XML_PATH_ATTRIBUTES_BRAND , $ storeId );
162+ return trim (( string )$ this ->getConfig (self ::XML_PATH_ATTRIBUTES_BRAND , $ storeId) );
163163 }
164164
165165 /**
@@ -193,7 +193,7 @@ public function isCookieRestrictionModeEnabled(string $storeId = null)
193193 */
194194 public function getCategoriesAttribute (string $ storeId = null ): string
195195 {
196- return ( string )$ this ->getConfig (self ::XML_PATH_ATTRIBUTES_CATEGORIES , $ storeId );
196+ return trim (( string )$ this ->getConfig (self ::XML_PATH_ATTRIBUTES_CATEGORIES , $ storeId) );
197197 }
198198
199199 /**
@@ -202,7 +202,7 @@ public function getCategoriesAttribute(string $storeId = null): string
202202 */
203203 public function getGTMLoaderType (string $ storeId = null ): string
204204 {
205- return ( string )$ this ->getConfig (self ::XML_PATH_GTM_LOADER_TYPE , $ storeId );
205+ return trim (( string )$ this ->getConfig (self ::XML_PATH_GTM_LOADER_TYPE , $ storeId) );
206206 }
207207
208208 /**
0 commit comments