create html offer recommendations & Location & Personalization Scope in WEB SDK | Community
Skip to main content
Michael_Soprano
Level 10
September 20, 2024
Solved

create html offer recommendations & Location & Personalization Scope in WEB SDK

  • September 20, 2024
  • 1 reply
  • 914 views

Is it possible to implement recommendations using create html offer? 

I would like to write script to access specific node in the DOM and replace it with the recommendations. 

I see that using recommendations in the form-based activity you are not able to use script and you can use Location as a workaround:

My implementation is using WEB SDK so maybe I need to use personalization scope and in that specific scope on a given url put recommendations 

Best answer by Vaibhav_Mathur

Hi @michael_soprano ,

While using location as a workaround is one option, another approach would be to utilize a custom design for the recommendations.

You can update the design code within recommendations to target a specific node in the DOM and replace it with the recommendations directly in the custom design.

I hope this helps.

Thanks and regards,
Vaibhav Mathur

1 reply

Vaibhav_Mathur
Community Advisor
Vaibhav_MathurCommunity AdvisorAccepted solution
Community Advisor
September 22, 2024

Hi @michael_soprano ,

While using location as a workaround is one option, another approach would be to utilize a custom design for the recommendations.

You can update the design code within recommendations to target a specific node in the DOM and replace it with the recommendations directly in the custom design.

I hope this helps.

Thanks and regards,
Vaibhav Mathur