updated google analytics
This commit is contained in:
parent
a7f8154082
commit
a6cbb79921
6 changed files with 17 additions and 24 deletions
controllers
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue