Using Text Transformer and personalization together. | Community
Skip to main content
July 25, 2023

Using Text Transformer and personalization together.

  • July 25, 2023
  • 3 replies
  • 1386 views

Hello all!

 

Currently we have developed a custom TextTransformer that replaces some constants in the html. 

 

We have noticed that this transformer is not working when personalization is applied to the page and it's loading a variation (The master variation is working ok) We are using context hub for personalization.

 

 

Any hint how to solve this? Thank you.

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

3 replies

Nishant-Singh
Adobe Employee
Adobe Employee
July 25, 2023

Context hub is Java Script API implementation where TextTransformer runs on server side. when TextTransformer runs after that only Personalization takes place and that is why you are not seeing the changes. check if you have given the path for Transformer configuration.

Vysius1Author
July 25, 2023

Hello, i have "/content" path under the rewriter configuration xml file: 

paths="[/content]"



Nishant-Singh
Adobe Employee
Adobe Employee
July 25, 2023

It might be the case that your transformer is HTML parser but the context hub is calling json data for the experience. can you please check the browser call and verify this ? 

July 25, 2023

Can you give an example of what is not working? Are you changing text in default teaser/xf using TextTransformer and is it based on outcome of user params/ contexthub resolution?

Vysius1Author
July 25, 2023

E.G: A text that is in HTML something like $[test] is transformed into a constant String from my Transformer. 
But when personalization is happening (in this example, when astorage value is set), a variation that is not Master is rendered, and the Transformer not applied, so we see $[test] in the final rendered Html

Vysius1Author
July 27, 2023

Any other options? Thanks