This script will clean the Udemy promotion link and remove the tracking parameters from the final URL.
-
Also it will give you the Coupon Code the long promotion URL
-
By the way, this script can also clean the tracking in URLS apart from UDEMY promotion emails. I wrote it to use generally for Udemy promotion emails but bear it in mind that it can also work for other links. So you can convert a URL like this https://click.convertkit-mail.com/4zum35r2g4ueh5lqeezfxh3d3ml77/58hvh8umkz4mw4s7/aHR0cHM6Ly93d3cuc3RhdGlvbngubmV0L2dvb2dsZS1kb3JrLW1ha2VyLw== to https://www.stationx.net/google-dork-maker/?ck_subscriber_id=30457607243&utm_source=convertkit&utm_medium=email&utm_campaign=🛡️ Google Dork Hacking With AI! - 12557960 ( I changed the subscriber_id for privacy reasons:) )
BTW, in these kinds of promotion emails, there is a notion of UTM which means:
"Successful marketers use many tools to track and measure the effectiveness of their digital marketing campaigns, including Urchin Tracking Module (UTM) codes, which are snippets of code attached to the end of a URL. UTM codes are also used to pinpoint specific sources of traffic to a website."
For further information, you can check this lovely explanation here: https://www.semrush.com/blog/url-parameters/
(I re-wrote my previous script and make the script a little better and more useful.)