Skip to main content
Prarthana_Sharm
Level 2
Oct 27, 2017 9:31 PM UTC
Solved

targeting a page who has visited a landing page

HI,

I am trying to target a user who has visited a landing pagexyz.com/egg during a session will then see a targeted banner for the landing page page pagexyz.com/abc.

How should I approach this?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
ryanr7Accepted solution
Adobe Employee
Oct 30, 2017 11:19 PM UTC

You should create a profile script to do this. You can evalauate the URL of the page a visitor is hitting and then store some profile in Target against that visitor. Here is a basic on that will work:

You could also layer on some session logic that only set it if it's a new session. This might prove helpful: Profile Script Attributes

6 replies

ryanr7Adobe EmployeeAccepted solution
Adobe Employee
Oct 30, 2017 11:19 PM UTC

You should create a profile script to do this. You can evalauate the URL of the page a visitor is hitting and then store some profile in Target against that visitor. Here is a basic on that will work:

You could also layer on some session logic that only set it if it's a new session. This might prove helpful: Profile Script Attributes

Translate
zach_shearer
Level 4
Oct 2, 2020 2:19 PM UTC
@ryanr7, could you update this answer? It looks like the code snippet is empty for me.
Translate
Prarthana_Sharm
Level 2
Nov 16, 2017 10:12 PM UTC

HI ryan,

so Tried the audience with -  but didnt work

Visitor Profile: user.visited_XYZ_page equals

XYZ Page

visited_XYZ_page profile -

if (page.url.indexOf("abc.com/XYZ/ ") >= 0) {

  return 'XYZ Page';

}

I did mbox trace and do not see the profile there as well. Please help.

waiting to hear back on this

Translate
Adobe Employee
Nov 21, 2017 12:48 AM UTC

Hi Prarthana,

Are there any errors on the profile script list screen for your new profile? I think your profile script looks fine. After viewing the XYZ page and then loading another page you do not see the XYP page show up in an mbox trace? You should find it in the trace object under this path:

trace > profile > afterExecutionProfileSnapshot > profileAttributes. It should be named user.WhatEverYouNamedIt.

Translate