I have a strange script inside the google tag code

What is the name of the domain?

paginacentral.com.mx

What is the issue you’re encountering

I have a strange script inside the google tag code

What steps have you taken to resolve the issue?

Hello, i can see a strnage script in my head

I don’t know why it’s there. Has this happened to anyone?

I disabled all the WordPress plugins to see if any of them were the cause, but no, I think they are caused by Cloudflare.

It seems you have Google Tag Gateway configured in Cloudflare: https://developers.cloudflare.com/google-tag-gateway/

I really appreciate your valuable response. For a moment, I thought my site had been hacked because I couldn’t find the source code.

Now the question is this:

I’ve implemented the tag using Google Site Kit.

Do you recommend leaving the Cloudflare option? (The code shows me a warning in Core Web Vitals.)

Or just leave Google Site Kit.

Thank you again for your response.

Perhaps you should try to understand what problem any products/features solves before implementing them.

By default, Google’s tracking codes (AdSense, Analytics, etc) are served from Google’s domains and the tracking cookies are 3rd-party cookies. But these days, there are a lot of ad-blockers and privacy tools that block 3rd-party cookies or even block domains used for analytics and ads at the DNS level.

That’s great for privacy, but I’m sure you know what problem this creates for website owners and advertisers.

The purpose of Google Tag Gateway is to serve that same Google tracking code from your own domain, rather than Google’s domain… making this first-party tracking.

You can use Google Tag Gateway together with Google Site Kit without issues: just make sure to uncheck “Setup tag” in your Cloudflare dashboard if you’re using Site Kit to inject the tag already.

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