elgentos / magento2-serversideanalytics

Server side analytics for Magento 2
MIT License
64 stars 21 forks source link

Add an empty string as fallback to avoid errors #45

Closed jbclaudio closed 10 months ago

jbclaudio commented 10 months ago

Add an empty string as fallback to avoid errors for when the gaUserId or gaSessionId is missing from the input array.

Occasionally, if no userId or sessionId is available, an exception is thrown: Warning: Undefined array key "gaSessionId"

This provides a fallback so that an exception is no longer thrown.

WouterSteen commented 10 months ago

Thanks!