Pass country code selected by User, from one page to another and use it in audience in another page. | Community
Skip to main content
Level 2
January 29, 2024
Solved

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

  • January 29, 2024
  • 1 reply
  • 500 views

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?

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by abhinavbalooni

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-to-global-mbox.html?lang=en

 

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.html?lang=en#:~:text=Profile%20scripts%20are%20code%20snippets,the%20same%20as%20profile%20parameters.

 

Hope either of the two would serve the purpose.

 

Regards,

Abhinav

1 reply

abhinavbalooni
Community Advisor
abhinavbalooniCommunity AdvisorAccepted solution
Community Advisor
January 29, 2024

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-to-global-mbox.html?lang=en

 

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.html?lang=en#:~:text=Profile%20scripts%20are%20code%20snippets,the%20same%20as%20profile%20parameters.

 

Hope either of the two would serve the purpose.

 

Regards,

Abhinav