Expand my Community achievements bar.

Join us for an upcoming in-person Adobe Target Skill Builders event ~~> We're hosting these live learning opportunities to equip you with the knowledge and skills to leverage Target successfully. Learn more to see if we'll be coming to a city near you!
SOLVED

Pass country code selected by User, from one page to another and use it in audience in another page.

Avatar

Level 3

I have a case to implement.

  • User visits www.xyz/en_in/a.html from (India)
  • On the page there is a country drop down, User selects a country(US) from it now User gets navigated to www.xyz/en_us/b.html.
  • Now I want to show the US specific targeted content to the User, How do I implement this? 
  • As geolocation is India only , How to create audience for this specific case?

 

Thought of saving the country code in cookies when User selects country in 

www.xyz/en_in/a.html  and later use that country code in audience but that did not worked.

 

Is there a way to implement this scenario?

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hey @varun790 

 

You can try passing parameters through the mbox/delivery call and use it in the next page.

https://experienceleague.adobe.com/docs/target-dev/developer/client-side/global-mbox/pass-parameters...

 

Or second option is:

 

You can try this with profile script and fetch the country selected on the next page.

 

Read more here:

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

 

Hope either of the two would serve the purpose.

 

Regards,

Abhinav

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hey @varun790 

 

You can try passing parameters through the mbox/delivery call and use it in the next page.

https://experienceleague.adobe.com/docs/target-dev/developer/client-side/global-mbox/pass-parameters...

 

Or second option is:

 

You can try this with profile script and fetch the country selected on the next page.

 

Read more here:

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

 

Hope either of the two would serve the purpose.

 

Regards,

Abhinav