Title: Modify script tag that gets added
Last modified: February 7, 2024

---

# Modify script tag that gets added

 *  [cdavisgf](https://wordpress.org/support/users/cdavisgf/)
 * (@cdavisgf)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/modify-script-tag-that-gets-added/)
 * I have a client that is adding cookie consent script to their site and it needs
   the script tag of the GTM to add a class and change the type. Is this possible
   with this plugin or will I need to manually add the script?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * (@duracelltomi)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/modify-script-tag-that-gets-added/#post-17408182)
 * Hi,
 * It is only possible if you set the container code to “OFF” in plugin settings
   and you put the modified container code into your theme manually.

Viewing 1 replies (of 1 total)

The topic ‘Modify script tag that gets added’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Thomas Geiger](https://wordpress.org/support/users/duracelltomi/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/modify-script-tag-that-gets-added/#post-17408182)
 * Status: not resolved