Profile Script Lifetime

Avatar

Avatar
Validate 10
Level 2
chrisw78940856
Level 2

Like

1 like

Total Posts

22 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 10
Level 2
chrisw78940856
Level 2

Like

1 like

Total Posts

22 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
chrisw78940856
Level 2

11-05-2017

I recently created a profile script which captures whether or not the login page has been seen by a visitor:

 

if(page.url.indexOf("/login") > -1){

  return "hasSeenLogin"

}

 

Checking with mboxTrace, I have seen the user parameter working within the same session as the login page view. However when I go back and check again a day or so later, I can no longer see the parameter. 

Is there a reason that it is not remaining for 14 days as per this: https://marketing.adobe.com/resources/help/en_US/target/ov/c_visitor_profile_lifetime.html?

Thanks,

Chris

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 10
Level 10
ParitMittal
Level 10

Likes

93 likes

Total Posts

817 posts

Correct reply

349 solutions
Top badges earned
Validate 10
Validate 1
Boost 50
Boost 5
Boost 3
View profile
ParitMittal
Level 10

18-05-2017

Hi Chris ,

 I assume your query is resolved . If not, please do let us know so that we can further help you with the same.

Regards

Parit Mittal

Answers (4)

Answers (4)

Avatar

Avatar
Give Back 5
Employee
kimenw
Employee

Likes

12 likes

Total Posts

20 posts

Correct reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Employee
kimenw
Employee

Likes

12 likes

Total Posts

20 posts

Correct reply

10 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
kimenw
Employee

15-05-2017

You might also want to write out the profile script into an offer so you can see the value easily as you test it out. Here is some info on it: https://marketing.adobe.com/resources/help/en_US/target/target/r_passing-profile-attributes-to-the-h... 

Avatar

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct reply

42 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct reply

42 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Løjmann
Level 4

15-05-2017

Hi Chris,

The syntax profile.name are ONLY used if you send it in via a mbox call. If you make Profile scripts, the syntax (for the same end result) are user.name...

Via mbox call: https://marketing.adobe.com/resources/help/en_US/target/ov/c_pass_parameters_to_global_mbox.html
Via profile script: https://marketing.adobe.com/resources/help/en_US/target/target/c_script_profile_attributes.html (so i guess the code example in this link, using code like profile.get('model')  are incorrect...)

/Løjmann

Avatar

Avatar
Validate 10
Level 2
chrisw78940856
Level 2

Like

1 like

Total Posts

22 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 10
Level 2
chrisw78940856
Level 2

Like

1 like

Total Posts

22 posts

Correct reply

1 solution
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 1
View profile
chrisw78940856
Level 2

15-05-2017

Hi Løjmann,

Thanks for replying. I have tried testing this and it doesn't appear to be working. The test only appears when I go to the login page in the same session.

Also, I tried adding the following to the test to see if anything was being passed:

var param = user.get('Has_Seen_Login_Page') alert(param);

So far this has not worked, even in the same session and with other user parameters, such as IP: 

[img]https://content.screencast.com/users/Mezzo_Chris/folders/Jing/media/ae57b524-0224-4c94-b82b-a5826537...

 

Is there a significant difference between user and profile params that would be causing this?

 

Many thanks,

Chris

Avatar

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct reply

42 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
Løjmann
Level 4

Likes

35 likes

Total Posts

117 posts

Correct reply

42 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Løjmann
Level 4

13-05-2017

Hi,

I think you only see the profile parameters that are sent on the call, not those stored backend... have you tried to setup a test and see if you are included the day after? You can also setup a test, that print out your target profile parameters, that could also help you debug.

/Løjmann