Title: Scripts enqueuing
Last modified: September 1, 2016

---

# Scripts enqueuing

 *  Resolved [vilimstubican](https://wordpress.org/support/users/vilimstubican/)
 * (@vilimstubican)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/scripts-enqueuing/)
 * Hi,
 * Firstly, great plugin, really appreciate it.
 * We have a problem with scripts enqueuing in header, since we put all our other
   scripts (including jQuery and similar) in footer.
 * There is currently no way to change that behaviour. I am aware that simply moving
   other dependencies to header would solve this problem, but that is no option (
   starting with render-blocking content and many different other stuff).
 * It would be great if You could insert a filter for in_footer value for script
   enqueuing (I am talking about frontend.php – gtm4wp_enqueue_scripts function).
 * Also, is there a possibility that You would move to git (github/bitbucket,etc)
   service? Open sourcing the project so that other people can contribute accordingly?
 * Thank you in advance
 * [https://wordpress.org/plugins/duracelltomi-google-tag-manager/](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)

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

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/scripts-enqueuing/#post-7561476)
 * Hi,
 * Do you have any modified version of the plugin that works with your needs? I 
   would be happy to add this into the core.
 * Moving to GitHub is one of my top priority on my list 🙂
 * Thomas
 *  Thread Starter [vilimstubican](https://wordpress.org/support/users/vilimstubican/)
 * (@vilimstubican)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/scripts-enqueuing/#post-7561540)
 * Hi,
 * Thank You for quick response.
 * Here is updated gtm4_wp_enqueue_scripts function: [http://pastebin.com/XVgrFkUh](http://pastebin.com/XVgrFkUh)
 * Everything is linked over Your defined constants. 🙂
 * Best regards,
    Vilim
 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/scripts-enqueuing/#post-7561566)
 * Hi,
 * I added this to the development version with some modifications:
    - prefix is gtm4wp_ and not duracelltomi_
    - YouTube, SoundCloud and Vimeo integrations also include some JS files in the
      head by default, I added this kind of filters to this part of the code as 
      well
 *  Thread Starter [vilimstubican](https://wordpress.org/support/users/vilimstubican/)
 * (@vilimstubican)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/scripts-enqueuing/#post-7561569)
 * Hi,
 * great. When will it be updated? 🙂
 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/scripts-enqueuing/#post-7561570)
 * There is currently no release date set, some additions has to be done before 
   the new version becomes available. I would say 2-3 weeks but please do not treat
   this as a promise.

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

The topic ‘Scripts enqueuing’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

## Tags

 * [bitbucket](https://wordpress.org/support/topic-tag/bitbucket/)
 * [git](https://wordpress.org/support/topic-tag/git/)

 * 5 replies
 * 2 participants
 * Last reply from: [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/scripts-enqueuing/#post-7561570)
 * Status: resolved