Help With GA4 code insert

7
7
2.1K followers

I copied /pasted the code from the GA4 area using Headers and Footers. It showed with exclamation marks and how to indent etc and I didn't know what to do with that. I also copied it into the SEO general settings area. Now I have two lines of words above the header on every post and I'm trying to get rid of them. I also deleted the code I'd copied into the Header area.

Anysuggestions would be so appreciated!

7
7

Join FREE & Launch Your Business!

Exclusive Bonus - Offer Ends at Midnight Today

00

Hours

:

00

Minutes

:

00

Seconds

2,000 AI Credits Worth $10 USD

Build a Logo + Website That Attracts Customers

400 Credits

Discover Hot Niches with AI Market Research

100 Credits

Create SEO Content That Ranks & Converts

800 Credits

Find Affiliate Offers Up to $500/Sale

10 Credits

Access a Community of 2.9M+ Members

By continuing, you agree to our Terms of Service and Privacy Policy
No credit card required

Recent Comments

7

did you copy the whole snippet from ga4 to add to headers and footers...
if not then you need to find it again to copy it all...
to find it goto your analytics and make sure it is on the right property at the top and go down the bottom of the sidebar and click on admin...
click data streams in hte second column..
then the arrow on the data stream...
on the next page scroll down to the bottom and click on view tag instructions..
and on the screen that open click on install manually...
and now copy the whole of the code snippet
and paste it into headers and footers - head section...
you shouldn't see any of th ecode at the top of your site...

2

Thank you, that's exactly what I did. But when I paste the code in, I get the ! coming up and remarks about indents and more.

1

i tend to use ad inserter - but it should be the same process...
i know headers and footers has updated its name to code snippets - you have kept it updated...
if it still persists then maybe talk to site support....

1

I deleted the code and then the unwanted stuff above the header on the posts disappeared.

1

you could try ad inserter and see if it works ..

1

Thank you!

1

no worries ...
hope it helped

See more comments

Join FREE & Launch Your Business!

Exclusive Bonus - Offer Ends at Midnight Today

00

Hours

:

00

Minutes

:

00

Seconds

2,000 AI Credits Worth $10 USD

Build a Logo + Website That Attracts Customers

400 Credits

Discover Hot Niches with AI Market Research

100 Credits

Create SEO Content That Ranks & Converts

800 Credits

Find Affiliate Offers Up to $500/Sale

10 Credits

Access a Community of 2.9M+ Members

By continuing, you agree to our Terms of Service and Privacy Policy
No credit card required

2.9M+

Members

190+

Countries Served

20+

Years Online

50K+

Success Stories

The world's most successful affiliate marketing training platform. Join 2.9M+ entrepreneurs building their online business with expert training, tools, and support.

© 2005-2025 Wealthy Affiliate
All rights reserved worldwide.

🔒 Trusted by Millions Worldwide

Since 2005, Wealthy Affiliate has been the go-to platform for entrepreneurs looking to build successful online businesses. With industry-leading security, 99.9% uptime, and a proven track record of success, you're in safe hands.