snowplow / snowplow-gtm-server-side-tag

A Google Tag Manager Server-side Tag template for sending events to a Snowplow Collector
Apache License 2.0
5 stars 2 forks source link

Fix encoding check for Snowplow events #24

Closed adatzer closed 1 year ago

adatzer commented 1 year ago

Currently in when the advanced option to apply entity settings also to Snowplow events is enabled, in order to decide whether to b64encode the resulting context the logic is meant to be:

However there is currently a bug when trying to determine the incoming encoding, as can be seen here (missing check for possibly existing cx field).