I have not added lead reference in the shared VTL code which I already shared in my previous comment. I am trying to capture either user visit or click link on email. But, as I already told that emit URL is not configured in the VTL script. Hence, click on email is not tracked. The main reason why I am not using emit URL is due to having N number of link.
Although, I want to trace visit web page activity for that particular lead in Marketo. I asked if you can suggest what went wrong in this
<a href="{{my.VTL}}?utm_source=Marketo&mkt_tok=##MKT_TOK##" style="text-decoration: none; ">Click</a>
#set( $defaultName = "#" )
#set( $counter = 0 )
#if( $CO_cList.isEmpty() )
#set( $DEFAULT_CTA = $defaultName )
#else
#foreach( $CO_c in $sorter.sort($CO_cList, "date:desc") )
#if( !$display.alt($CO_c["productURL"],"").isEmpty() && $CO_c["productType"]=="Product" && $CO_c["countryCode"]=="US")
#set( $outputName = $CO_c["productURL"] )
#set( $reference = $counter )
#break
#end
#set( $counter = $counter + 1)
#end
#set( $outputName = $display.alt($outputName, $DEFAULT_CTA) )
#end
${outputName}
... View more