Expand my Community achievements bar.

How to read the value of target data in typology rule?

Avatar

Level 2

Creating typology rule which will read all the URLs and do some modification on the url.

The URLs are getting populated from schema with target data like https://<%= targetData.youtube_url %> .

 

I am using below code to get the url and it gives me output as https://<%= targetData.youtube_url %>.

var url = delivery.content.html.urlConfig.url[i].source;

 

How to get the personalized value for the url ? Need the full url in typology rule.

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

4 Replies

Avatar

Community Advisor

Hello @melinam63825268 

 

Could you please expand on the use case? Why do it with typology rule when it can be changed either in Enrichment or JS activity?

 

I try to avoid updating anything with the typology rule because it is hard to troubleshoot the errors and increases the delivery preparation time. 


     Manoj
     Find me on LinkedIn

Avatar

Level 2

I am trying to extend the tracking urls with CTA label. So, each tracking url will be having its own label in it as query parameter. Also, some value will be added from web analytics external account as well. These changes cannot be done in workflow.

Avatar

Community Advisor

Try checking the urlList by control typology and select the phase at end of analysis.


     Manoj
     Find me on LinkedIn

Avatar

Level 2

Already using control typology and the phase is at end of analysis. It did not work. If the URLs are in delivery template, I can read it. But when it comes from target data, I could see only https://<%= targetData.youtube_url %> .