Skip to content

Commit

Permalink
correcting to GA4 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie1977 committed Apr 11, 2024
1 parent 6891a2b commit 1ba72aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geppetto-client/js/pages/geppetto/geppetto.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@
if (command && hitType) {
if (command === 'vfb.send' && (hitType === 'pageview' || hitType === 'page_view')) {
// Translate pageview
gtag('event', 'pageview', {
'page_path': eventCategory
gtag('event', 'page_view', {
'page_location': eventCategory
});
} else if (command === 'vfb.send' && hitType === 'event') {
// Translate to a GA4-compatible event
Expand Down

0 comments on commit 1ba72aa

Please sign in to comment.