updated google analytics

This commit is contained in:
bill bittner 2017-08-03 21:59:22 -07:00
parent a7f8154082
commit a6cbb79921
6 changed files with 17 additions and 24 deletions

View file

@ -42,7 +42,7 @@ module.exports = {
const visitor = ua(googleApiKey, visitorId, { strictCidFormat: false, https: true });
let params;
switch (action) {
case 'serve':
case 'SERVE':
params = {
ec : 'serve',
ea : originalUrl,
@ -51,7 +51,7 @@ module.exports = {
ul : headers['accept-language'],
};
break;
case 'publish':
case 'PUBLISH':
params = {
ec : 'publish',
ea : originalUrl,