I want to automatically replace the link to add UTM tracking codes when saving the content to the database. I'm using Coldfusion. For example:
<p>So this is my sample text.
<a href="http://test.com/welkom">Click here</a> for the website.
<a href="http://test.com/news.cfm?news_id=10" class="test">Click here for the news</a>.
Replace this with:
<p>So this is my sample text.
<a href="http://test.com/welkom?utm_campaign=test&utm_source=Email">Click here</a> for the website.
<a href="http://test.com/news.cfm?news_id=10&utm_campaign=test&utm_source=Email" class="test">Click here for the news</a>.
Can someone help me on this one?