How to read the value of target data in typology rule? | Community
Skip to main content
Level 2
February 8, 2024
Question

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

  • February 8, 2024
  • 1 reply
  • 1120 views

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.

 

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

1 reply

Manoj_Kumar
Community Advisor
Community Advisor
February 8, 2024

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
Level 2
February 8, 2024

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.

Level 2
February 8, 2024

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


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 %> .