Skip to content
dreamglow
Home
About
Blog
Contact
dreamglow
Menu Toggle
Home
About
Blog
Contact
Welcome to our site!
Here you will find the best tips to improve your health.
Stay tuned for updates!
jQuery(document).ready(function($){ URLModifier('tid'); // replace VTID to any key URLModifier('cam'); // replace VTID to any key }); function URLModifier(customKey) { var searchKeyWord = 'utm_campaign'; // replace utm_campaign to any key you want to search for var searchKeyWordUrl = getParamFromURL(searchKeyWord); // console.log( searchKeyWordUrl ); if(searchKeyWordUrl) { jQuery('a').each(function() { var currentLinkUrl = jQuery(this).attr('href'); if(typeof currentLinkUrl !== "undefined") //Anchor Links { var modifiedUrl = currentLinkUrl+(currentLinkUrl.match(/\?/) ? '&' : '?') + customKey + '=' + searchKeyWordUrl; jQuery(this).attr('href', modifiedUrl ); } }); } } function getParamFromURL(t) { var a=new RegExp("[?&]"+t+"=([^]*)").exec(window.location.href); return null===a?null:a[1] }