There are a few steps you need to take to ensure that Google Search Console (GSC) analytics are available for your page in the Yext platform or in Google Search Console directly.
To set up Google Search Console for Page Builder:
- Turn on the “Automatically generate sitemap” setting.
- Click Pages in the navigation bar and click Domains.
- Click Options next to the relevant domain, and select Sitemap Settings.
- In the modal that appears, select On. Click Save.
- When you do this, a GSC account will be created and the domain will be automatically registered to one of the Analytics system emails, which will look similar to: `analytics-logger@analyticslogger-149620.iam.gserviceaccount.com`. This will allow Yext Analytics to pull GSC data from the Search Console API and display them in the Yext platform.
Optionally, verify site ownership from your Google Account. This step is only required if you want to be able to log into Google Search Console using your own Google account and view analytics for your Yext Pages. One easy option for doing this is to add an HTML tag to your page in Page Builder that verifies your Google account’s ownership over that domain.
Note: There are other methods for verifying ownership of your site, including using Google Tag Manager or Google Analytics. These are outlined on Google’s help site, at Verify your site ownership.
- Fetch your Google Site Verification code
- Log into Google Search Console.
- Enter the domain you wish to verify in the box on the screen
- If you already have other domains registered with your account, access this box by clicking the “Search Property” dropdown menu in the upper left and selecting "+Add Property".
-
Once you have entered your domain, you will see another pop-up with a Google Site Verification code.
- Your Google Site Verification code is everything after the equals sign.
- Copy this code and open Yext Page Builder in a new tab (you will need to return to this page later).
- Add HTML Header in Page Builder
- With your Google Site Verification code copied, open Page Builder in a new tab.
- Click Pages in the navigation bar and click All Sites.
- Click Edit next to the Site that contains your Page Builder Template.
- Click Edit next to the Template you’d like to customize.
- Click on the Settings tab.
- Click Header HTML.
- In the code editor that appears, add the following HTML. Replace `[YOUR CODE HERE]` with the Google Site Verification code you copied from Google Search Console.
-
<meta name="google-site-verification" content="[YOUR CODE HERE]"/>
-
- Click Save and then publish your changes.
- Verify in Google Search Console
- Return to the screen you were at previously in Google Search Console.
- Click Verify. Your Google account should now be verified as an owner of your Yext Page!
Comments
0 comments
Article is closed for comments.