Skip to content

Commit

Permalink
expanding to cover both variants
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie1977 committed Apr 11, 2024
1 parent e589a35 commit 6891a2b
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 @@ -164,9 +164,9 @@
// Define a compatibility layer for window.ga calls
window.ga = function(command, hitType, eventCategory, eventAction, eventLabel, eventValue) {
if (command && hitType) {
if (command === 'vfb.send', hitType === 'pageview') {
if (command === 'vfb.send' && (hitType === 'pageview' || hitType === 'page_view')) {
// Translate pageview
gtag('event', hitType, {
gtag('event', 'pageview', {
'page_path': eventCategory
});
} else if (command === 'vfb.send' && hitType === 'event') {
Expand Down

0 comments on commit 6891a2b

Please sign in to comment.