hof 20.3.6-beta-gtm → 20.3.7-beta-gtm
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ga-tag.js +1 -27
 - package/package.json +1 -1
 
    
        package/lib/ga-tag.js
    CHANGED
    
    | 
         @@ -78,7 +78,7 @@ module.exports = (app, config) => { 
     | 
|
| 
       78 
78 
     | 
    
         
             
                    Object.assign(properties, {
         
     | 
| 
       79 
79 
     | 
    
         
             
                      gtmTagId: gtmTagId,
         
     | 
| 
       80 
80 
     | 
    
         
             
                      'gtm-page': convertToGTMPage(page),
         
     | 
| 
       81 
     | 
    
         
            -
                       
     | 
| 
      
 81 
     | 
    
         
            +
                      pageEvent: 'pageLoad',
         
     | 
| 
       82 
82 
     | 
    
         
             
                      pageName: `ETA | Customer Contact Webform | ${convertToGTMPage(page)}`,
         
     | 
| 
       83 
83 
     | 
    
         
             
                      applicationType: 'ETA | Customer Contact',
         
     | 
| 
       84 
84 
     | 
    
         
             
                      environmentType: environmentType
         
     | 
| 
         @@ -90,31 +90,5 @@ module.exports = (app, config) => { 
     | 
|
| 
       90 
90 
     | 
    
         
             
                });
         
     | 
| 
       91 
91 
     | 
    
         
             
              }
         
     | 
| 
       92 
92 
     | 
    
         | 
| 
       93 
     | 
    
         
            -
              /*
         
     | 
| 
       94 
     | 
    
         
            -
               if (gaTagId || ga4TagId || gtmTagId) {
         
     | 
| 
       95 
     | 
    
         
            -
                const pageMap = setupPageMap(routes);
         
     | 
| 
       96 
     | 
    
         
            -
             
     | 
| 
       97 
     | 
    
         
            -
                app.use((req, res, next) => {
         
     | 
| 
       98 
     | 
    
         
            -
                  const page = pageView(req.path, pageMap);
         
     | 
| 
       99 
     | 
    
         
            -
                  res.locals.gaAllowDebug = config.env === 'development';
         
     | 
| 
       100 
     | 
    
         
            -
             
     | 
| 
       101 
     | 
    
         
            -
                  if (gtmTagId) {
         
     | 
| 
       102 
     | 
    
         
            -
                    res.locals.gtmTagId = gtmTagId;
         
     | 
| 
       103 
     | 
    
         
            -
                    res.locals['gtm-page'] = convertToGTMPage(page);
         
     | 
| 
       104 
     | 
    
         
            -
                    res.locals.eventName = "pageLoad"
         
     | 
| 
       105 
     | 
    
         
            -
                    res.locals.pageName = `ETA | Customer Contact Webform | ${res.locals['gtm-page']}`
         
     | 
| 
       106 
     | 
    
         
            -
                    res.locals.applicationType = "ETA | Customer Contact"
         
     | 
| 
       107 
     | 
    
         
            -
                    res.locals.environmentType = environmentType;
         
     | 
| 
       108 
     | 
    
         
            -
                  }
         
     | 
| 
       109 
     | 
    
         
            -
                  res.locals.gaTagId = gaTagId;
         
     | 
| 
       110 
     | 
    
         
            -
                  res.locals.ga4TagId = ga4TagId;
         
     | 
| 
       111 
     | 
    
         
            -
                  res.locals.gaCrossDomainTrackingTagId = gaCrossDomainTrackingTagId;
         
     | 
| 
       112 
     | 
    
         
            -
                  res.locals['ga-id'] = gaTagId;
         
     | 
| 
       113 
     | 
    
         
            -
                  res.locals['ga-page'] = page;
         
     | 
| 
       114 
     | 
    
         
            -
                  next();
         
     | 
| 
       115 
     | 
    
         
            -
                });
         
     | 
| 
       116 
     | 
    
         
            -
              }
         
     | 
| 
       117 
     | 
    
         
            -
              */
         
     | 
| 
       118 
     | 
    
         
            -
             
     | 
| 
       119 
93 
     | 
    
         
             
              return app;
         
     | 
| 
       120 
94 
     | 
    
         
             
            };
         
     |