Parse and use URL parameters in Google Tag Manager

Here is a quick Google Tag Manager tip. I recently had to help a friend to set up online sales tracking on Google Analytics. My friend was using the online learning platform Teachable. Whenever someone purchased a lesson, s/he was redirected to an URL similar to the following: https://example.teachable.com/p/lesson-name?purchased=319528&purchased_course_id=012345&purchased_list_price=6800&final_price=6800&currency=EUR&user_id=5326339&email=contact%example.org&purchased_at=1497262851&is_recurring=false&tax_charge=0 For this simple context, I just wanted to push the purchase event to Google Analytics together with the purchase price. »