Start guide
›
js library
›
Introducing
Member measurement
Beta version.
Please contact support when using.
This feature is a pre-release version and is subject to change and limited support.
The measured data is used only for member targeting.
The following features will be released: (Schedule undecided)
-Visualization of member segments
-Extract customer segments
By adding the track: memberUpdateEvent method as a customization tag, you can link the member attributes on the site with “CODE Marketing cloud”.
About `` track: memberUpdateEvent ‘’ method
Method to generate an event to collect member attribute information in js.
Case where it is necessary to set `` track: memberUpdateEvent ‘’ method
In the following cases, installation of the track: memberUpdateEvent method is mandatory.
-Targeting using member attributes
How to install `` track: memberUpdateEvent ‘’ method
The location and content of the track: memberUpdateEvent method depends heavily on the site implementation. Refer to the installation location and sample code of the track: memberUpdateEvent method described below and rewrite the description according to the site.
Location of `` track: memberUpdateEvent ‘’ method
When a member attribute is linked to “CODE Marketing cloud” on a site with a login function, install the track: memberUpdateEvent method on the page where the information can be obtained.
-When registering member attributes
-When changing member attributes
The method can be called at any time due to the characteristics of the measurement tag.
It is not recommended except for calling when the member data is updated.
(Please contact us if you want to link existing member data to CODE Marketing cloud).
Sample code
var memberAttribute = {
name: {
last: "Taro",
first: "Example",
middle: "Middle"
},
gender: "Male",
birthdate: {
timezoneId: "Asia/Tokyo",
date: "1979-02-02"
},
address: {
zip: "1000000",
country: "Japan",
prefecture: "Tokyo",
city: "Chiyoda-ku",
other: "Example address"
},
jobName: "Programmer",
registeredAt: "2019-08-28T08:13:29.225Z"
}
_cc ('track', 'memberUpdateEvent', memberAttribute);
Measurement property that can be used as the third argument of track: memberUpdateEvent method
| Property name |
Required |
Overview |
Example |
Type |
| name.last |
× |
Name |
“Taro” |
String type |
| name.first |
× |
Last name |
“Example” |
String type |
| name.middle |
× |
Middle name |
“Middle” |
String type |
| gender |
× |
Gender |
Male |
Enumeration (“Male”, “Female”, “NotApplicable”) |
| birthdate.timezoneId |
× |
Timezone of birth date |
“Asia / Tokyo” |
String type |
| birthdate.date |
× |
Date of birth date |
“1988-11-05” |
Date type |
| address.zip |
No |
Postal code |
“1000000” |
String type |
| address.country |
× |
Country |
“Japan” |
String type |
| address.prefecture |
× |
Prefectures |
“Tokyo” |
String type |
| address.city |
× |
Municipalities |
“Chiyoda-ku” |
String type |
| address.other |
× |
Other address (free description) |
“Example Address” |
String type |
| jobName |
× |
Occupation |
“Engineer” |
String type |
| RegisterAt |
× |
Member registration date and time |
“2019-08-28T08: 13: 29.225Z” |
DateTime type |
Properties that can be used for membership targeting conditions from the management screen
| Property name |
Required measurement property |
| Age |
birthdate.timezoneId / birthdate.date |
| Gender |
gender |
| Today is birthday |
birthdate.timezoneId / birthdate.date |
| Birth: Year |
birthdate.timezoneId / birthdate.date |
| Birth: Month |
birthdate.timezoneId / birthdate.date |
| Birth: Date |
birthdate.timezoneId / birthdate.date |
| Country |
address.country |
| Prefecture |
address.prefecture |
| City |
address.city |
| Occupation |
jobName |
| Member Registration Date |
registeredAt |
| Member registration date elapsed days |
registeredAt |
| Member change date |
- |
| Number of days of membership change |
- |
What is an enumerated type?
Select one of the values in the parentheses of the enumeration.
For example, for enumeration types (“A”, “B”, “C”), select “A” or “B” or “C”.
What is the Date type and DateTime type?
Specify a format that conforms to [ISO-8601 extended offset time format] (https://en.wikipedia.org/wiki/ISO_8601).
(Example of Date type) 2019-03-12
(Example of DateTime type) 2020-09-07T02:33:34+09:00