Title: WordPress adding dnt parameter to embedded video
Last modified: April 29, 2019

---

# WordPress adding dnt parameter to embedded video

 *  [markgreenway](https://wordpress.org/support/users/markgreenway/)
 * (@markgreenway)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wordpress-adding-dnt-parameter-to-embedded-video/)
 * Hoping someone can help.
 * I have a Vimeo video embedded on a page using the URL provided by Vimeo.
 * Wordpress seems to be adding the parameter dnt=1 to the Video url which means
   that Vimeo can’t display stats correctly.
 * Here’s a link showing where WordPress is adding the parameter
 * [https://core.trac.wordpress.org/changeset/41345](https://core.trac.wordpress.org/changeset/41345)
 * Vimeo support say that they have contacted WordPress to request that they don’t
   add this parameter but they don’t know if or when WordPress will do this.
 * Hoping someone can suggest a way to stop this parameter from being added to the
   Vimeo code.
 * Thanks,
    Mark.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-adding-dnt-parameter-to-embedded-video%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wordpress-adding-dnt-parameter-to-embedded-video/#post-11480301)
 * There’s a filter for that. See [https://wordpress.org/support/topic/disabling-do-not-track-for-oembeds/](https://wordpress.org/support/topic/disabling-do-not-track-for-oembeds/)
 * Because it can be filtered, I would doubt that WP core devs will take it out 
   due to privacy implications, that it will be left to plugin devs to deal with.
   Entirely speculation on my part, I’ve little interaction with core devs.
 *  Thread Starter [markgreenway](https://wordpress.org/support/users/markgreenway/)
 * (@markgreenway)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wordpress-adding-dnt-parameter-to-embedded-video/#post-11480430)
 * Thanks for the reply, I’ll give that a go.
 *  Thread Starter [markgreenway](https://wordpress.org/support/users/markgreenway/)
 * (@markgreenway)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/wordpress-adding-dnt-parameter-to-embedded-video/#post-11483131)
 * That worked. Thanks for the help.
 *  [idestorm](https://wordpress.org/support/users/idestorm/)
 * (@idestorm)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/wordpress-adding-dnt-parameter-to-embedded-video/#post-11646663)
 * Hi!
 * So, where do you insert the code:
 *     ```
       function dl_oembed ( $provider, $url, $args ) {
         if ( strpos( $provider, 'vimeo.com' ) !== false)
            $provider = remove_query_arg( 'dnt', $provider );
   
         return $provider;
       }
       add_filter( 'oembed_fetch_url', 'dl_oembed' );
       ```
   
 * To make this work?
 *  [bttmrc](https://wordpress.org/support/users/bttmrc/)
 * (@bttmrc)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/wordpress-adding-dnt-parameter-to-embedded-video/#post-12199930)
 * This is not working for me, dnt=1 still shows when I inspect the code

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WordPress adding dnt parameter to embedded video’ is closed to new replies.

## Tags

 * [parameters](https://wordpress.org/support/topic-tag/parameters/)
 * [video](https://wordpress.org/support/topic-tag/video/)
 * [vimeo](https://wordpress.org/support/topic-tag/vimeo/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 1 participant
 * Last reply from: [bttmrc](https://wordpress.org/support/users/bttmrc/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/wordpress-adding-dnt-parameter-to-embedded-video/#post-12199930)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
