Difference between "profile." and "user."?

Avatar

Avatar
Boost 1
Level 1
J2_2
Level 1

Like

1 like

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Boost 1
Give Back
Validate 1
Shape 1
View profile

Avatar
Boost 1
Level 1
J2_2
Level 1

Like

1 like

Total Posts

7 posts

Correct reply

0 solutions
Top badges earned
Boost 1
Give Back
Validate 1
Shape 1
View profile
J2_2
Level 1

06-07-2021

In docs referencing Target profile parameters, I see two different ways of interacting with Target profile.

 

user.THING  and profile.THING

 

What's the difference and when do you use one vs. the other?

Note: https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/profile-parameters.h...

 

References profile.get() and user.get() 

 

Code example here:
https://experienceleague.adobe.com/docs/target/using/audiences/visitor-profiles/profile-parameters.h...

 

Uses both "user." and "profile."

 

Thanks

 

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Shape 25
MVP
Andrey_Osadchuk
MVP

Likes

538 likes

Total Posts

971 posts

Correct reply

263 solutions
Top badges earned
Shape 25
Bedrock
Coach
Boost 500
Affirm 250
View profile

Avatar
Shape 25
MVP
Andrey_Osadchuk
MVP

Likes

538 likes

Total Posts

971 posts

Correct reply

263 solutions
Top badges earned
Shape 25
Bedrock
Coach
Boost 500
Affirm 250
View profile
Andrey_Osadchuk
MVP

20-07-2021

  1. When you want to set a persistent attribute in a JS implementation, you set a profile.SOMETHING parameter.
  2. AT creates some profile parameters automatically too. For example, profile.sessionCount, profile.geolocation.country.
  3. Each profile script becomes user.PROFILESCRIPTNAME. When you want to reference a profile script in another profile script or in an experience as a dynamic placeholder, you can do it via user.PROFILESCRIPTNAME
 

Answers (1)

Answers (1)

Avatar

Avatar
Give Back 5
Level 4
LordOfTheRings
Level 4

Likes

66 likes

Total Posts

128 posts

Correct reply

23 solutions
Top badges earned
Give Back 5
Validate 10
Validate 1
Contributor
Shape 1
View profile

Avatar
Give Back 5
Level 4
LordOfTheRings
Level 4

Likes

66 likes

Total Posts

128 posts

Correct reply

23 solutions
Top badges earned
Give Back 5
Validate 10
Validate 1
Contributor
Shape 1
View profile
LordOfTheRings
Level 4

06-07-2021

Hi @J2_2 profile.THING is profile parameter of an user profile . user.THING is the profile script