Adding dynamic tracking parameters to target URLs

<code><script> Get all the URL values into a custom defined variable. var url=document.querySelectorAll(“a”); Use a loop to read all the URL values. for(i=0;i<url.length;i++) { Save all href attributes in a variable var Sample_varible = url[i].href; Search for a unique href values containing specific string values if(Sample_varible.includes(“”)) { Overwrite URL values with new values url[i].href = […]

Read more