Title: Compliance &amp; Google Tag Manager script errors
Last modified: May 4, 2021

---

# Compliance & Google Tag Manager script errors

 *  Resolved [blaircomm](https://wordpress.org/support/users/blaircomm/)
 * (@blaircomm)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/compliance-google-tag-manager-script-errors/)
 * Complianz suddenly will not work with Google Tag Manager, just this morning. 
   It is configured within Complianz and has worked perfexctly for the past 3-years.
   Google Ads detects a code error, 404, and will not enable ads with that URL as
   a destination. So, it is stopping our Google Ads campaigns.
 * Here is the script that is generating the 404 error picked up by Google:
 * <!–
 *     ```
       <!-- Statistics script Complianz GDPR/CCPA -->
       					<script type="text/javascript" class="cmplz-stats">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
               new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
           j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
           'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
       })(window,document,'script','dataLayer','UA-40373448-1');</script>
       <script type="text/javascript">
       ```
   
 * –>
 * Please advise on this script and the 404 error. I have checked all Google tags
   in the Analytics dashboard and site coding for correctness. This appears to be
   generated by Complianz.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcompliance-google-tag-manager-script-errors%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Aert](https://wordpress.org/support/users/aahulsebos/)
 * (@aahulsebos)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/compliance-google-tag-manager-script-errors/#post-14399983)
 * Hi [@blaircomm](https://wordpress.org/support/users/blaircomm/),
 * In the code I see a UA code, not a GTM code. Could you check in the wizard, under
   Cookies – Statistics Configuration if you can change it to a GTM code?
 * regards Aert
 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/compliance-google-tag-manager-script-errors/#post-14410715)
 * Hi [@blaircomm](https://wordpress.org/support/users/blaircomm/),
 * Any updates? Does it work when you enter the GTM code instead of UA, as Aert 
   suggested?
 * Kind regards,
    Jarno
 *  Plugin Contributor [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * (@jarnovos)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/compliance-google-tag-manager-script-errors/#post-14418706)
 * Hi [@blaircomm](https://wordpress.org/support/users/blaircomm/),
 * I’m marking this as resolved as the thread has become inactive. If you have any
   further questions, don’t hesitate to reach out to us.
 * Kind regards,
    Jarno

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

The topic ‘Compliance & Google Tag Manager script errors’ is closed to new replies.

 * ![](https://ps.w.org/complianz-gdpr/assets/icon-256x256.png?rev=2881064)
 * [Complianz - GDPR/CCPA Cookie Consent](https://wordpress.org/plugins/complianz-gdpr/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/complianz-gdpr/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/complianz-gdpr/)
 * [Active Topics](https://wordpress.org/support/plugin/complianz-gdpr/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/complianz-gdpr/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/complianz-gdpr/reviews/)

## Tags

 * [script errors](https://wordpress.org/support/topic-tag/script-errors/)

 * 3 replies
 * 3 participants
 * Last reply from: [Jarno Vos](https://wordpress.org/support/users/jarnovos/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/compliance-google-tag-manager-script-errors/#post-14418706)
 * Status: resolved