Closed message-dimke closed 3 months ago
We should do it via a separate setting for CAPI. We should make the capi tracker option false. No UI for it would mean that we don't have to do anything else for now.
When connecting to Pinterest, Pinterest replies back with a set of features and their corresponding statuses. The set looks like this:
tags => bool
CAPI => bool
catalog => bool
The three flags above indicate what was chosen during the onboarding wizard (a Pinterest-hosted wizard). For example, choosing to sync catalog will send the catalog
flag set to true
.
The problem is tracking. Pinterest has a single wizard screen for tracking and a single yes/no button that turns ON/OFF both tags
and CAPI
flags synchronously. So, without forcing CAPI tracking to false
, we can not disable that type of tracking.
Introducing the new track_conversions_capi
setting will default to false
for all the existing plugin users, but for the new ones, it will be set to the value selected while onboarding. Taking this into account, I will force the setting to false when the new user is connecting, no matter what the wizard returns to us.
Does it make sense?
I will force the setting to false when the new user is connecting, no matter what the wizard returns to us.
For now this is good enough. We can change it later when they will have separate consents.
Looks good. Do we need to add plugin update procedure that sets CAPI tracking to false explicitly? Or not set will default to false?
If the setting is empty or there is no such setting, it will resolve to false
.
If I read it correct =) Anyway, I have unit tests that should test this as well.
Changes proposed in this Pull Request:
Disabling Conversion API tracker according to some temporary legal aspects from Pinterest.
How to test.
pinterest_for_woocommerce
option insidewp_options
database table.s:22:"track_conversions_capi";b:0;
serialized data.ON
, we force itOFF
into options. e.g.s:17:"track_conversions";b:1;s:22:"track_conversions_capi";b:0;
: Pinterest Tag onON
, but Conversions API isOFF
.Changelog entry