Code appears in header

I changed out my background photo from black to white and now I see code in the header on every page.

What is this is code? window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(‘js’, new Date()); gtag(‘config’, ‘’, { ‘optimize_id’: ‘GTM-M55ZXZC’});

Hi Steve,

It looks like the code in added somewhere in your site that is why it is displaying as it was added after the opening body tag of the site.

Kindly go through the plugins of your site and check where the code in added or the child theme files if you are using one and check for the code.

Let us know how it goes.

cut paste code into google. google indicates it is an optimizer issue.

Hey Steve,

It’s good to know that you have figured out the issue.
Please don’t hesitate to open another thread f you need anything else we can help you with.

Cheers.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.