@@ -91,7 +91,7 @@ export function websiteAnalyticsScriptFile(
9191
9292 if ( siteMeta ) {
9393 const siteGa = siteMeta [ kGoogleAnalytics ] ;
94- if ( typeof ( siteGa ) === "object" ) {
94+ if ( typeof siteGa === "object" ) {
9595 const siteGaMeta = siteGa as Metadata ;
9696 // Merge the site and page options and then layer over defaults
9797 const trackingId = siteGaMeta [ kTrackingId ] as string ;
@@ -105,7 +105,7 @@ export function websiteAnalyticsScriptFile(
105105 anonymizedIp ,
106106 version ,
107107 ) ;
108- } else if ( siteGa && typeof ( siteGa ) === "string" ) {
108+ } else if ( siteGa && typeof siteGa === "string" ) {
109109 gaConfig = googleAnalyticsConfig ( project , siteGa as string ) ;
110110 }
111111 }
@@ -138,7 +138,7 @@ export function cookieConsentDependencies(
138138 let configuration : CookieConsentConfiguration | undefined = undefined ;
139139 let changePrefsText : string | undefined = undefined ;
140140 const consent = siteMeta [ kCookieConsent ] ;
141- if ( typeof ( consent ) === "object" ) {
141+ if ( typeof consent === "object" ) {
142142 const cookieMeta = consent as Metadata ;
143143 configuration = cookieConsentConfiguration (
144144 title ,
@@ -248,7 +248,7 @@ function cookieConsentConfiguration(
248248) : CookieConsentConfiguration {
249249 return {
250250 siteName : "" ,
251- type : type || "implied " ,
251+ type : type || "express " ,
252252 style : style || "simple" ,
253253 palette : palette || "light" ,
254254 policyUrl,
@@ -349,6 +349,8 @@ gtag('js', new Date());`);
349349 ] . join ( "\n" ) ;
350350}
351351
352+ // configuration for the script are defined in
353+ // https://github.com/termsfeed/termsfeed-cookie-consent-4-0/blob/main/README.md
352354function cookieConsentScript (
353355 config : CookieConsentConfiguration ,
354356) {
0 commit comments