Expand my Community achievements bar.

Applications for the 2024 Adobe Target Community Mentorship Program are open! Click to the right to learn more about participating as either an Aspirant, to professionally level up with a new Certification, or as a Mentor, to share your Adobe Target expertise and inspire through your leadership! Submit your application today.
SOLVED

Re-targeting users using profile script

Avatar

Level 1

Hello, 

I'm trying to build a targeted experience on our Web site's home page for a very specific segment, and I'm having difficulty determining the best way to do it.  

The segment is comprised of visitors who have subscribed to our e-newsletter, and who, based upon their demographics, are separated into two email lists (we have multiple email lists).

I can identify these users based upon a tracking code we've appended to links in the email we send them.  The tracking code contains _FIP or _SRW, depending upon which list the user falls into.  

The challenge is that these users are not directly referred to our site, but rather, visit our site after landing on our blog site, which is a sub-domain of our primary web site.

I've previously tried using an audience rule where Previous page (or Landing Page) URL contains the _SRW or FIP parameters, but that doesn't appear to work correctly.  I've also tried adding the Referring Landing Page: URL equals (mysub-domain.com) to the rule without success.  

I suspect this may be resolved using a profile script, but I don't know how to build that.  

Any suggestions?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi , 

You can definitely create Audience  based on  Profile Scripts.  You can access the referrer domain & referrer param to a page using referrer.param and referrer.domain profile attributes   . Please see the below profile script code: 

if( (referrer.param('FIP')!=null || referrer.param('SRW')!=null)  && referrer.domain=='my-subdomain.com') { return "Valid Audience" } else { return "Invalid Audience" }

The above code checks whether the referrer domain is equal to sub-domain.com and the either the referrer parameter FIP exits or SRW exists and then returns the Valid or Invalid Audience  . 

After All the set up , You can create an Audience named as "Retargetting Audience" and add "Visitor Profile" as a rule and then choose the above created profile script "RetargettingReferrer"  as the refinement.

 Please see the following links for more information on creating profile scripts .

https://marketing.adobe.com/resources/help/en_US/target/target/c_profile_parameters.html

https://marketing.adobe.com/resources/help/en_US/target/target/c_script_profile_attributes.html

https://marketing.adobe.com/resources/help/en_US/tnt/pdf/js_expression_cheat_sheet.pdf

 

Thanks & Regards

Parit Mittal

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi , 

You can definitely create Audience  based on  Profile Scripts.  You can access the referrer domain & referrer param to a page using referrer.param and referrer.domain profile attributes   . Please see the below profile script code: 

if( (referrer.param('FIP')!=null || referrer.param('SRW')!=null)  && referrer.domain=='my-subdomain.com') { return "Valid Audience" } else { return "Invalid Audience" }

The above code checks whether the referrer domain is equal to sub-domain.com and the either the referrer parameter FIP exits or SRW exists and then returns the Valid or Invalid Audience  . 

After All the set up , You can create an Audience named as "Retargetting Audience" and add "Visitor Profile" as a rule and then choose the above created profile script "RetargettingReferrer"  as the refinement.

 Please see the following links for more information on creating profile scripts .

https://marketing.adobe.com/resources/help/en_US/target/target/c_profile_parameters.html

https://marketing.adobe.com/resources/help/en_US/target/target/c_script_profile_attributes.html

https://marketing.adobe.com/resources/help/en_US/tnt/pdf/js_expression_cheat_sheet.pdf

 

Thanks & Regards

Parit Mittal