Google Tag Manager Causing White Screen

Hey. I got the weirdest error and not sure what to do so coming to you guys about this since Google of all places is no help.

Basically, I got an email from our SEO person who said that our site died when he added the Google Tag Manager Code. He was using the WP Google Tag Manager plugin.

He deactivated all plugins to test but nothing resolved the error. (Note: this was done on the live site, and because of the site, the 10 min. or so the site was down caused about $2k. There is a testing environment for this site now, but whew…:wink:

To test, I deleted this plugin and added the google code directly to the header.php file. (Site is using the Avada theme from ThemeForest) I added the code via directions from google. “Place directly after the body tag”. I uploaded and I saw the same issue. (Thankfully my created downtime was a few seconds)

Results: Page loads for a split second then turns to a white-screen.

Quick Solution Attempted: I commented out the tag manager code and the site worked fine. When uncommented the site would not load.

So I’m asking you all here to help since it seems such a bespoke problem.

Quick Rundown: Added google tag manager script to header.php broke site. uncommented script site works again. no plugin conflicts.


  • Jack Kitterhing
    • Code Norris

    Hi there @Jarel,

    Hope you’re well today and sorry to hear of the issues you’ve had here.

    Can you send me the exact code you used and placed in the header.php of the avada theme please?

    I have the avada theme and can test this as well :slight_smile:

    If you could send to contact(at) with the subject line Attn: Jack Kitterhing, I’d be more than happy to take a look :slight_smile:


    Kind Regards


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.