Repro - Mobile Analytics for growth
日本語
Sign Up Back to Dashboard
  • System Requirements
  • Dashboard Guide
  • Development Guide
    • Signup
    • iOS/Android SDK
    • Web
      • Get Started
      • User ID
      • User Profile
        • Standard User Profile
          • Gender
          • User age
          • User birthday
          • Japanese prefecture
          • Email Address
        • Automatically Recorded Standard User Profiles
          • Last Session Date
          • Locale
          • Time Zone
        • Custom User Profile
          • String
          • Integer
          • Decimal
          • Date
        • Conditional Set Operations
          • String (Conditional)
          • Integer (Conditional)
          • Decimal (Conditional)
          • Date (Conditional)
        • Increment/Decrement Operations
          • Integer Increment
          • Integer Decrement
          • Decimal Increment
          • Decimal Decrement
        • Conditional Set and Increment/Decrement Operations for Standard User Profiles
          • Age (Conditional)
          • Gender (Conditional)
          • Email Address (Conditional)
          • Residence Prefecture (Conditional)
          • Date of Birth (Conditional)
          • Age Increment
          • Age Decrement
        • User Profile Deletion
          • Custom Profile Deletion
          • Standard Profile Deletion
      • Event Tracking
      • Session Lifecycle
      • Device ID
      • Opt-out feature
      • Migration from Version 1 to Version 2
      • API
      • Cross-Domain Tracking
      • Using Web SDK with WebView
      • Implement to SPA(Single Page Application) site
      • Web Push Notification
      • Check that Repro Web measurement tags are working properly
      • Cookies used by Repro Web
    • Audience API
    • Audience Import(β)
    • Push API
    • User Profile API
    • User Profile Bulk Import
    • NewsFeed API
    • Deletion Targeted User Registration API
    • Booster installation guide
    • Mail(β)
  • Release Notes
  • FAQ

User Profile¶

User Profile is an additional information of the user which can be something like gender, age, region, language, subscription type, etc.

You can segment the group of users with these profiles when sending web messages.

Each profile is identified by a unique user ID. We recommend you to set a user ID before setting user profiles. If you do not set a user ID, then the Repro SDK automatically generates an anonymous user ID. This however, will be changed if the user clears their browser storage.

Warning

  • Registered user profile keys and data types can not be changed or deleted after.

  • There is no upper limit to the number of registered user profile keys. However, the number of user profiles that can be used as analytics filter as well as campaign filters are limited. You can check the number of user profile keys currently being used from Settings > User Profile Settings.

  • In User Profile Settings, You can change the settings of user profiles that you can use to filter target audience of Campaigns. User Profiles disabled here will not be displayed as candidates for filters when creating campaigns or display Analytics screen.

  • Once your app reaches the limit of User Profile Keys, all new incoming User Profile Keys will be registered, but will not be shown as candidates for filters until it is enabled from Settings > User Profile Settings.

  • In User Profile Settings, deactivating user profiles that are being used to filter campaign target users will cause the campaign not to be sent.

Standard User Profile¶

Repro defines user profiles widely used for filtering users as Standard User Profile. Please call the appropriate API when setting Standard User Profiles. Use Custom User Profile when you want to set original user profiles on your website.

Gender¶

Set the gender of user. The value is available as constants defined by Repro.

// set the gender as "male"
reproio("setUserGender", "male");
// set the gender as "female"
reproio("setUserGender", "female");
// set the gender as "other"
reproio("setUserGender", "other");

When setting up the filter of web messages, please refer to the table below to specify the string value.

Gender

Values to specify in filters

Male

male

Female

female

Other

other

User age¶

Set the user's age as an integer.

// set the age as 20
reproio('setUserAge', 20);

User birthday¶

Setting the birthday of an user

// set the date of birth as January 1, 2000
var dateOfBirth = new Date('2000-01-01');
reproio('setUserDateOfBirth', dateOfBirth);

Japanese prefecture¶

Set the prefecture where the user resides

// set the residence prefecture as "北海道"
reproio("setUserResidencePrefecture", "北海道");
...
// set the residence prefecture as "沖縄県"
reproio("setUserResidencePrefecture", "沖縄県");

The valid strings are the names of the 47 prefectures including the suffixes 都, 道, 府, and 県 .

Strings that can be set as prefectures

北海道、青森県、岩手県、宮城県、秋田県、山形県、福島県、茨城県、栃木県、群馬県、埼玉県、 千葉県、東京都、神奈川県、新潟県、富山県、石川県、福井県、山梨県、長野県、岐阜県、静岡県、 愛知県、三重県、滋賀県、京都府、大阪府、兵庫県、奈良県、和歌山県、鳥取県、島根県、岡山県、 広島県、山口県、徳島県、香川県、愛媛県、高知県、福岡県、佐賀県、長崎県、熊本県、大分県、 宮崎県、鹿児島県、沖縄県

Email Address¶

Set the email address of user.

reproio("setUserEmailAddress", "user@exmaple.com");

Automatically Recorded Standard User Profiles¶

The following standard user profiles are recorded automatically in each session without having to explicitly call the APIs.

Last Session Date¶

The last day the user used the website is recorded as a date value.

Locale¶

The locale setting of user's device is recorded as a string value. The value is presented in the format like language-script-region which conforms to IETF language tag. About IETF language tag, please refer to this page.

Note

  • Because the exact value of locale depends on devices, the same locale may have multiple possible values. For example, the possible values of Japanese locale are ja and ja-JP.

  • Consequently, when using locale to setup the filter, please use the contains keyword. For example, to specify Japanese locale, please specify by "contains ja" in the filter.

Note

  • This feature is not supported on Safari 9 (iOS)

Time Zone¶

The time zone settings of user's device is recorded as a string. The value conforms to the names defined in Time Zone Database. For Example, the value of Japanese Standard Time (JST) is defined as Asia/Tokyo. About Time Zone, please refer to this page.

Note

  • This feature is not supported on Safari 9 (iOS)

Custom User Profile¶

Set any custom profiles that are not defined in the standard user profiles. String is allowed as the key for the profile. Keys starting from ___repro___ cannot be used. Nil or empty string are not allowed, and the maximum key length is 255 characters.

You can set String or Number to property's value.

String¶

Maximum value length is 255 characters.

reproio("setStringUserProfile", "Job", "Developer");

Integer¶

reproio("setIntUserProfile", "Age", 25);

Decimal¶

reproio("setDoubleUserProfile", "Height", 176.5);

Date¶

var now = new Date();
reproio("setDateUserProfile", "LastLogin", now);

Conditional Set Operations¶

Sets values only when the profile is not already set, without updating existing profiles.

String (Conditional)¶

Sets a string value only when the specified key has no profile set.

reproio("onlySetIfAbsentStringUserProfile", "Job", "Developer");

Integer (Conditional)¶

Sets an integer value only when the specified key has no profile set.

reproio("onlySetIfAbsentIntUserProfile", "LoginCount", 1);

Decimal (Conditional)¶

Sets a decimal value only when the specified key has no profile set.

reproio("onlySetIfAbsentDoubleUserProfile", "Score", 85.5);

Date (Conditional)¶

Sets a date value only when the specified key has no profile set.

reproio("onlySetIfAbsentDateUserProfile", "FirstLogin", new Date());

Increment/Decrement Operations¶

Performs addition and subtraction on existing numeric profiles. If the profile is not set, it is calculated with an initial value of 0.

Integer Increment¶

Adds a value to the integer profile of the specified key.

reproio("incrementIntUserProfileBy", "LoginCount", 1);

Integer Decrement¶

Subtracts a value from the integer profile of the specified key.

reproio("decrementIntUserProfileBy", "Credits", 10);

Decimal Increment¶

Adds a value to the decimal profile of the specified key.

reproio("incrementDoubleUserProfileBy", "Score", 5.5);

Decimal Decrement¶

Subtracts a value from the decimal profile of the specified key.

reproio("decrementDoubleUserProfileBy", "Balance", 25.0);

Conditional Set and Increment/Decrement Operations for Standard User Profiles¶

Conditional set and increment/decrement operations are also available for standard user profiles.

Age (Conditional)¶

Sets a value only when age is not already set.

reproio("onlySetIfAbsentUserAge", 25);

Gender (Conditional)¶

Sets a value only when gender is not already set.

reproio("onlySetIfAbsentUserGender", "male");

Email Address (Conditional)¶

Sets a value only when email address is not already set.

reproio("onlySetIfAbsentUserEmailAddress", "user@example.com");

Residence Prefecture (Conditional)¶

Sets a value only when residence prefecture is not already set.

reproio("onlySetIfAbsentUserResidencePrefecture", "東京都");

Date of Birth (Conditional)¶

Sets a value only when date of birth is not already set.

reproio("onlySetIfAbsentUserDateOfBirth", new Date("1990-01-01"));

Age Increment¶

Adds the specified value to the current age.

reproio("incrementUserAgeBy", 1);

Age Decrement¶

Subtracts the specified value from the current age.

reproio("decrementUserAgeBy", 1);

User Profile Deletion¶

Deletes configured user profiles.

Custom Profile Deletion¶

Deletes the custom user profile for the specified key.

reproio("deleteUserProfile", "Job");

Standard Profile Deletion¶

Deletes standard user profiles.

Delete Gender:

reproio("deleteUserGender");

Delete Age:

reproio("deleteUserAge");

Delete Email Address:

reproio("deleteUserEmailAddress");

Delete Residence Prefecture:

reproio("deleteUserResidencePrefecture");

Delete Date of Birth:

reproio("deleteUserDateOfBirth");
  • « User ID
  • Event Tracking »

About Us Careers Terms of Service Privacy Policy Cookie Policy

© 2022 Repro Inc.