Commit Graph

3 Commits

Author SHA1 Message Date
Rostislav Wolny
274e197a49 Use new tracking config also in JS apps
This commit replaces window.mailpoet_tracking_enabled variable with
tracking config object that carries the level and configuration for
all tracking options (emailsTrackingEnabled, cookieTrackingEnabled).
The window.mailpoet_tracking_enabled is confusing since it is not obvious what type of tracking is enabled.
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
699266c920 Use TrackingConfig and new tracking settings property in PHP
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
4bc7f3c2bc Add service for distributing tracking configuration in the plugin
We introduced new settings that enable set different levels (basic, partial, full) of user tracking.
Each level enables different tracking options. This service should encapsulate the logic that determines
what should be tracked on each level of the setting.
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00