Title: Hubspot plugin loading GTM script
Last modified: April 27, 2021

---

# Hubspot plugin loading GTM script

 *  Resolved [Danny](https://wordpress.org/support/users/dannyfoo/)
 * (@dannyfoo)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/hubspot-plugin-loading-gtm-script/)
 * Hi there, I’m finding an odd behaviour with the plugin.
 * When it’s activated, it’s loading the following line;
    `<script async="" src="
   https://www.googletagmanager.com/gtag/js?id=AW-XXXXXXX"></script>`
 * Should it be doing this? And, how can I prevent the load of this line?
 * If I tried entering my GTM tracking manually, it’ll report that 2 instances of
   AW-XXXXXXX is loaded on the script.

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

 *  Plugin Support [mlamacchia](https://wordpress.org/support/users/mlamacchia/)
 * (@mlamacchia)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/hubspot-plugin-loading-gtm-script/#post-14378973)
 * Hi [@dannyfoo](https://wordpress.org/support/users/dannyfoo/). This is definitely
   not expected.
 * We can’t reproduce it on our side though, could you send us a URL that shows 
   the problem?
 *  Thread Starter [Danny](https://wordpress.org/support/users/dannyfoo/)
 * (@dannyfoo)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/hubspot-plugin-loading-gtm-script/#post-14382342)
 * Hey [@mlamacchia](https://wordpress.org/support/users/mlamacchia/) , I asked 
   this on behalf of a client and we’ve got a ticket with the Hubspot team now. 
   In the ticket, I had shared a screen recording reproducing the issue from our
   end.
 * For the moment, we decided to deactivate the HS plugin and manually add the tracking
   code via GTM.
 * As the larger issue we’re facing is that traffic is no longer showing up on their
   GA when using the HS plugin 🤷‍♂️
 * I’ll close this thread now, since we’re already in communication with your team.
 *  [rockymtnadam](https://wordpress.org/support/users/rockymtnadam/)
 * (@rockymtnadam)
 * [5 years ago](https://wordpress.org/support/topic/hubspot-plugin-loading-gtm-script/#post-14455462)
 * FYI [@mlamacchia](https://wordpress.org/support/users/mlamacchia/) I found this
   happening on a newly installed version of WP as well. The plugin was loading 
   a GTM script, which was also loading various ad tracking scripts (FB, Linkedin,
   GAds). I deactivated the plugin and all of the scripts stop loading.

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

The topic ‘Hubspot plugin loading GTM script’ is closed to new replies.

 * ![](https://ps.w.org/leadin/assets/icon-256x256.png?rev=3041936)
 * [HubSpot All-In-One Marketing - Forms, Popups, Live Chat](https://wordpress.org/plugins/leadin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leadin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leadin/)
 * [Active Topics](https://wordpress.org/support/plugin/leadin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leadin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leadin/reviews/)

## Tags

 * [gtag](https://wordpress.org/support/topic-tag/gtag/)
 * [gtm](https://wordpress.org/support/topic-tag/gtm/)

 * 3 replies
 * 3 participants
 * Last reply from: [rockymtnadam](https://wordpress.org/support/users/rockymtnadam/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/hubspot-plugin-loading-gtm-script/#post-14455462)
 * Status: resolved