To add Google Tag Manager elements in WordPress, you can either manually insert the code snippets into your theme files (the first part after the opening tag in header.php, and the second part after the opening tag) or use plugins like “Insert Headers and Footers” or “WP Insert Code,” which allow you to add elements without editing theme files.