Skip to main content
Level 2
Jul 25, 2023 1:24 PM UTC

Using Text Transformer and personalization together.

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.

8 replies

Nishant-Singh
Adobe Employee
Adobe Employee
Jul 25, 2023 1:59 PM UTC

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.

Translate
Vysius1Author
Level 2
Jul 25, 2023 2:18 PM UTC

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

paths="[/content]"



Translate
Nishant-Singh
Adobe Employee
Adobe Employee
Jul 25, 2023 3:11 PM UTC

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 ? 

Translate
Level 2
Jul 25, 2023 3:09 PM UTC

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?

Translate
Vysius1Author
Level 2
Jul 25, 2023 4:03 PM UTC

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

Translate
Vysius1Author
Level 2
Jul 27, 2023 8:26 AM UTC

Any other options? Thanks

Translate