Closed ianstormtaylor closed 10 years ago
Edited, realized I forgot to include total_orders
and total_spent
in the traits we definitely want to keep!
I've added a new configuration section named customer traits with a default set of keys
This configuration section controls which fields we'll send through. This should give you flexibility to add/remove fields if you want to in the future.
The defaults are set in config.xml
<default>
<segment_analytics>
<options>
<customer_traits>
created_at
email
first_name'
last_name
middle_name
name
is_active
updated_at
total_orders
total_spent
</customer_traits>
</options>
</segment_analytics>
</default>
And if you want to remove the ability to have system administrators add/remove from this field just remove the customer_traits
node in system.xml
<customer_traits>
<label>Customer Traits</label>
<comment>Which Magento Customer Data Fields to Send</comment>
<frontend_type>textarea</frontend_type>
<sort_order>20</sort_order>
<show_in_default>1</show_in_default>
<show_in_website>1</show_in_website>
<show_in_store>1</show_in_store>
</customer_traits>
Hey @astorm have an issue from a customer where they don't want some of the traits we're currently recording because they are clogging up some of their reporting. They were asking for the ability to choose which ones to send and not, however I think it might be a case where we can just safely assume that a decent amount can be not sent anymore, and then we can just whittle them down for all of the cases.
It looks like we currently record:
Just going based on what I think will be useful to our users in their analytics and CRM tools, I propose that we remove the following traits:
And then that we change the following to pure booleans:
So that we end up with traits that look like this:
How does that sound? I'm not sure how it's implemented, but if you think there will be specific attributes of a user that people add to their installations, maybe we should implement this as a blacklist instead of a whitelist?