UPDATE: abcMeta.html is a variable with a long string of text (it's not a file)
Example of abcMeta.html:
<td style="padding-top:0;"><a href="https://www.google.com">Google</a></td>
How I am pulling in data from abcMeta:
What is the best way to enable tracking for all URLs within the dynamic block of HTML?
I saw Adobe's documentation on how to track personalized URLs but those solutions seem to work only for individual URLs and not multiple URLs mixed in with the rest of the HTML.
Use an @include directive for the file:
<%@ include file='file:///tmp/abcMeta.html' %>
If your url's are in a loop or similar, unroll it so the parser can see, with the protocol outside the js:
<% var urls = [['aol.com', 'AOL']]; %><% if (urls) %><a href="https://<%= urls %>"><%= urls %></a><% if (urls) %><a href="https://<%= urls %>"><%= urls %></a>
@wodnicki Quick question here:-What If I need to track links present in variable that I have declared in delivery properties as below. My content comes via the below defined variable
How can we we define the <%@include operation?