#Google Adsense with Remix

1 messages · Page 1 of 1 (latest)

hushed path
#

I'm seeing a few archived or very old threads posing this question -- all without response. I'm having trouble implementing adsense on my remix site. Just dropping the script tag seems to throw hydration errors. Moving it to client only also hasn't helped.

neon void
#

Somewhere there is an example of splitting the document head and body when doing the initial render on the client. Found these after searching "separate hydration":
https://github.com/Xiphe/remix-island
https://github.com/kiliman/remix-hydration-fix

GitHub

utils to render remix into a dom-node instead of the whole document - GitHub - Xiphe/remix-island: utils to render remix into a dom-node instead of the whole document

GitHub

Sample app that shows how to fix React hydration issues in a Remix app - GitHub - kiliman/remix-hydration-fix: Sample app that shows how to fix React hydration issues in a Remix app

#

The root of the issue is that google tag manager and similar actually inject additional scripts into the document head at runtime

wild shadow
#
GitHub

Contribute to manawiki/core development by creating an account on GitHub.

GitHub

Contribute to manawiki/core development by creating an account on GitHub.

thorn sinew