segment-boneyard / analytics-magento

[DEPRECATED] The hassle-free way to integrate analytics into any Magento store.
15 stars 19 forks source link

gender? #25

Closed ianstormtaylor closed 10 years ago

ianstormtaylor commented 10 years ago

From a beta tester email:

Create a custom dimension that distinguishes between man and woman

Dunno if Magento exposes that, are we just pulling all properties of the user in the DB into identify calls already?

astorm commented 10 years ago

We're dumping all the information we have about a customer into identify. There's a gender value that's required in some versions of Magento, optional in others. Unfortunately, due to the way Magento stores it's information, this was being send as a 1 or 2. I've added an attribute named gender_label to the array. If the gender of a customer is set, we'll now send it.

screen shot 2014-07-15 at 6 31 16 pm

ianstormtaylor commented 10 years ago

Can we change this so that we axe the 1/2 value entirely and end up with just gender: "Male"?

ianstormtaylor commented 10 years ago

Also question: how come the lastname, middlename, firstname ones have no extra _ in there between the words? Can we fix that?

astorm commented 10 years ago

That's how Magento store's the information in it's database — where possible I just dumped an array of information from a Magneto object into a JSON object.

Normalized gender as just the label value.

Normalized first_name, last_name, and middle_name

screen shot 2014-07-15 at 7 41 19 pm

ianstormtaylor commented 10 years ago

Just a heads up, in that last screenshot it looks like gender is still "1" instead of "Male"

astorm commented 10 years ago

Good catch ian, we were assigning the label, but doing it before we added the main customer data, so things were getting re-re-written to the value. That should be corrected now.

screen shot 2014-07-17 at 9 23 35 am