Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is not possible to verify ownership of a site using the Google Tag Manager package. #820

Open
michalczaplinski opened this issue May 17, 2021 · 0 comments

Comments

@michalczaplinski
Copy link
Member

Expected behavior

A user using the Google Tag Manager package should be able to verify the ownership of their site in the Google Search Console.

Observed behavior

The site verification fails.

Steps involved to reproduce the problem

The issue was originally reported in the forum. I cannot reproduce it without setting up a site to use the google tag manager.

Possible solution

It appears that there are at least 2 issues which violate the guidelines for including the Google Tag Manager

  1. The noscript tag does not appear directly after the <body> tag (screenshot from the site running our e2e tests on http://localhost:3001?frontity_name=google-tag-manager):

    Screen Shot 2021-05-17 at 13 39 34
  2. The styles are added with emotion, but we should probably just pass them inline like style="display:none;visibility:hidden" as is indicated in the official instructions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant