Skip to content

Conversation

@WouterSteen
Copy link
Contributor

No description provided.

Removed check that prevents firering the purchase event on the Success page. When using serverSideTracking, we still want to fire the purchase event on the frontend, Google will handle double orders and, more important, we need the purchase event in GTM!
$eventName is not always a string. Remove this required type casting
@jissereitsma
Copy link
Collaborator

I think the PHP type check is actually good enough for keeping. Instead of removing type safety, the type check actually should force calling code to pass strings. This is currently fixed here: c158682 and I don't see where else this might be an easy.

As for the removal of the configuration check: This seems to be a specific issue in some environment? What is the value of googletagmanager2/settings/serverside_enabled? Because if server-side tagging is used, this setting is supposed to be enabled. With the configuration option properly enabled, the purchase event should simply be fired, right?

I'm closing this ticket as of yet, because the first issue is supposedly fixed. Let me know if it is not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants