Google Search Console
Goal: To set up Google Search Console for the first time, and to connect it with the Yoast SEO WordPress plugin.
Ideal Outcome: Your Google Search Console property has been verified, and you are able to check if there were any cra wl issues for your site recently, straight in your WordPress Admin.
Pre-requisites or requirements: You need to have Google Tag Manager installed on your website and the Yoast SEO Plugin running on your WordPress website to follow this SOP or whatever tool you are using to optimise your website.
Why this is important: Google Search Console is a free tool that allows you to monitor your website’s performance in Google Search. It allows you to collect statistics about your rankings, and optimize visibility, and it’s your main channel of communication with Google, allowing you to monitor potential penalties, or identify crawling errors before they affect your rankings.
Where this is done: In Google Search Console and your WordPress admin.
When this is done: Only once per domain. You will need to do it every time you create a subdomain or add a new protocol (for example, If you migrate to https://)
Who does this: The person responsible for Website management, analytics, or SEO.
Signing up for the Google Search console
-
1Go to https://www.google.com/webmasters/tools
-
2Log in with your Google Account
-
3You will be taken to a welcome page and prompted to “ Add a Property”. In the dropdown, select “Website” and type the full URL of your website.
- Note 1: Make sure your URL is exactly as it appears in the URL bar including the protocol (http:// or https://) and the subdomain (www. or non-www., or any other subdomain you might be using).
- Note 2: If your website supports multiple protocols and subdomains you will want to add them all to Search Console since the tool will treat each of them separately.
-
4There are multiple ways to authenticate your account. If you are already using Google Analytics, or Google Tag Manager these 2 methods will be the fastest and easiest methods to authenticate. If not, the recommended method is the fastest one to use. This SOP assumes you already have Google Tag Manager running on your website.
Note: If you don’t have Google Tag Manager yet, you can follow SOP 004: Add Google Tag Manager to a WordPress Site first. Select “Alternate Methods -
5Select “Alternate Methods”
-
6Select “Google Tag Manager” and click “Verify"
-
7That’s it! You should now see a success message, click “Continue” and you will be taken to your Search Console dashboard.
Google Analytics
Google Analytics Overview
Google Analytics allows you to track your visitors counts, time on site and pages viewed along with a wide range of other traffic statistics. WebEd fully supports Google Analytics and provides easy-to-use tools for integrating Google Analytics
Adding Analytics to your Site Dashboard
Requirement: You will need a Google Account that owns the property (the website)
Full details are below, but this step-by-step guide will outline the process. This is an optional step if only the client requests to display the Google Analytics overview on the Dashboard.
Register for the Google OAuth Client
-
1Browse the URL https://console.developers.google.com
-
2Sign in with your Google account
-
3Click on the Create Project button to create a new project
-
4In the pop-up window which appears, enter your project name as desired and click on Create button. Let this process run, it may take a few seconds
-
5After the project is created successfully, the page reloads with some options on the left menu: Home, Marketplace, Billing, APIs & Services, Support, etc.
-
6Click on the APIs & Services
-
7Choose the Library tab.
-
8In the search box on the top search "Analytics API", then click on "Google Analytics API".
-
9Once you're on the Google Analytics API, click the "Enable" button
-
10Now on the left menu, click the Credentials tab, then click Create Credentials on top, and choose OAuth Client ID.
-
11Follow the details for the Credential Type form
-
12OAuth Screen form details:
-
13Update selected Scopes, search for the "Google Analytics API" on the filter section and select all the scopes from the results
-
14If you are not on the Google Analytics API screen anymore, on the left menu, click the Credentials tab, then click Create Credentials on top, and choose OAuth Client ID.
-
15Once you're on the "Create OAuth client ID" page, click the Configure Consent Screen button
-
16On the OAuth Consent Screen, choose "External", then click the Create button
-
17You will now be taken to the Edit App Registration page > OAuth Consent Screen
-
18For the App Information, enter the following:
- App Name - enter a name, which can be company name + "WebEd"
- User Support Email - use the email address you created for the API (Gmail)
-
19Under App Domain, enter the following:
- Application home page
- Application Privacy Policy link
- Application Terms of Service link
-
20Under Authorized Domains, enter the following:
- Domain - add the domain of your site
- Developer Contact Information - enter and add [email protected]
- Then click the Save and Continue button
-
21You will now be taken to the Edit App Registration page > Scopes
- Click the Add or Remove Scopes button
-
22A window "Update Selected Scopes" will pop up on the right
-
23Click through the table rows and look for "Google Analytics API" without a lock icon
-
24Once you find it, tick the box beside it, then click the Update button at the bottom of the window
-
25Upon doing this, the window should close, and the Google Analytics API should now be added under "Your non-sensitive scopes"
-
26Ignore "Your sensitive scopes" and " Your restricted scopes", and scroll to the bottom, click the Save and Continue button
-
27You will now be taken to the Edit App Registration page > Optional Info
-
28Ignore all fields here. Scroll to the bottom and click the Save and Continue button
-
29You will now be taken to the Edit App Registration page > Summary screen
-
30Check everything, then click the button "Back to Dashboard" at the bottom
-
31Now, go back to the Credentials page, click Create Credentials, choose OAuth Client ID
-
32You will now be taken to the Create OAuth client ID page
-
33Enter the following information:
- Application type - select Web application
- Name - enter the name of the site or any preferred
-
34Under Authorized JavaScript origins, add your website URL in the URIs field
-
35Under Authorized redirect URIs, enter "https://developers.google.com/oauthplayground"
-
36Click on the Create button. This will generate your Client ID and Client Secret
-
37Once you click the Create button, the page reloads and a window with your Client ID and Client Secret information appears
-
38Copy both Client ID and Client Secret and paste them into Notepad, you will need it in a minute
Add to the Google Analytics Site Setting to your Website Admin Dashboard
-
1Enter the Client ID, Client Secret and Refresh Token in the Settings
-
2Click Save Settings.
-
3Your dashboard will load.
Add the OAuth details to your website
-
1Now browse the URL https://developers.google.com/oauthplayground/.
-
2On the right side of the window, click the Settings icon
-
3Tick the box for Use your own OAuth credentials
-
4In the pop-up window which appears, enter your project name as desired and click on Create button. Let this process run, it may take a few seconds
-
5Enter the copied Client ID and Client Secret in the corresponding fields, then click Close at the bottom
Step 1: Select and Authorize APIs
-
1Search for "Google Analytics API v3" using the scroll. Click all the options under it, then click on the Authorize APIs button after the selection
-
2Accept all the permissions asked by Google
-
3If you get any Authorisation Errors, please make sure your Gmail account has been added to Test users
Adding Analytics Tracking to your site
Get Your Analytics Code from Google
The first step is to get the tracking code for your site. You get this from your analytics account.
If you don't have an analytics account you can create one here - https://www.google.com/analytics.
-
1Login to https://analytics.google.com
-
2Go to the admin panel
-
3Go to the tracking code window
-
4Copy the tracking code
-
5Go to the website and access admin management, in the left menu select Settings > Site Settings then search Google Analytic Configuration key
-
6Click on the Edit icon then in the edit site settings page, paste the Google Analytics tracking code to the Tracking Script field.
Editing the Analytics code on your site
Get Your Analytics Code from Google
The first step is to get the tracking code for your site. You get this from your analytics account.
If you don't have an analytics account you can create one here - https://www.google.com/analytics.
-
1Go to the website and access admin management, in the left menu select Settings > Site Settings then search Google Analytic Configuration key
-
2Click on the Edit icon then in the edit site settings page, paste the Google Analytics tracking code to the Tracking Script field
-
3Click Save to apply changes
Adding Google Analytics Tracking Code into your Master Template
This step will already have been done for you by the WebEd team. It is added here for reference only and should not generally be required.
-
1In the left menu, select Page Content > Look And Feel > Page Templates
-
2Edit the default template, add Google Analytics curly bracket by clicking on Add curly bracket button then search Google Tracking Code
-
3The curly bracket code will be added as shown below:
Managing your Analytics Account
How to Set Up Set User Permission on Google Analytics
-
1Go to Analytics Account if you want to add permissions
-
2On the left- side menu, click Admin
-
3Under Admin Section, select Account User Management
-
4The account permissions window will appear. Click the Add (blue plus button) on the upper right corner of the page.
-
5A tiny pop-up will appear. Choose Add Users
-
6The Add Permissions Window will appear. Add the email of the account you want to add and the necessary permissions
Note on Adding Permissions
Be careful adding Edit permissions to anyone since they may mess up some reporting.
How to Get Tracking ID and Tracking Code from Google Analytics
-
1Go to Admin
-
2Under Property Column, Click on Tracking Info
-
3A dropdown menu will appear, choose Tracking Code
-
4A Section will appear and show the Tracking Info and Tracking Code
Test Events via Data Layer Push
Be careful adding Edit permissions to anyone since they may mess up some reporting.
How to Get Tracking ID and Tracking Code from Google Analytics
-
1Install Simple Data Layer Push on Chrome Store
-
2Pin the extension to the taskbar
-
3Go to the webpage where the event should be tracked
-
4Perform the action for the event based on the request
-
5Click on the extension
-
6A pop-up will appear and show you the list of events on the page
-
7Search for the event to see if it is working. If it's there, then it means the event is successfully added.
Adding Goals Directly on Google Analytics for Page View/ Thank You Page
-
1Go to Admin
-
2Go to View tab and click on Goals.
-
3Click Create Goal
-
4Fill out the name of the goal and click the Destination radio button
-
5Click Continue
-
6Add the URL of the Page to track
-
7Click Save
How to Set Up to Capture 100% Visitor tracking for Page Speed Rate
-
1Log in to Admin Module
-
2Go to Site Settings
-
3Search Google Analytic API
-
4Insert this code: {'site_speed_sample_rate': 100}); within the Google Analytics tracking code beside the tracking numb
-
5Click Save
Exporting Google Analytics Data to Google Sheets
-
1Access the Google Analytics Accounts
-
2Add Google Analytics Ad on Google Sheet
-
3Go to the folder under shared folders where the sheet will be saved
-
4Click the New button
-
5Click Google Sheets and choose Spreadsheet
-
6Create the title of the report
-
7Click Add-ons from the Menu. A dropdown will appear and click on Google Analytics
-
8Another dropdown menu will appear. Click on Create New Report.
-
9A small window will appear on the left of the screen. Input the data needed which includes the Name of the Report, select a View which requires the Google Analytics Account and its View settings.
-
10Under the third columns, choose the necessary metrics, dimensions and segments needed. Click Create Report when done.
-
11Name Report Configuration. Add the necessary data needed
-
12Go back to the Google Analytics add on and Click Run Report from the dropdown menu to generate report.
Setup Automated Google Analytics Reports
Outlines how to manage scheduled Google Analytics email reporting
What is a Google Analytics Reports
Provides a snapshot of your google analytics emailed to you as required.
How to set up scheduled emails
-
1Go to https://www.google.com/analytics/ and log in to google analytics
-
2Choose "Audience" >> Click "Overview"
-
3On Audience Overview, click the "Share" button
-
4A popup setup scheduled email will be shown
-
5Add emails that will be received, choose Frequency, add content for email
-
6Click "Send" to save
-
7Go to Scheduled emails to check that exits
How to extend the time of scheduled emails
Email reports are configured for some time. This may need to be extended as time progresses.
-
1Go to https://www.google.com/analytics/ and log in to google analytics
-
2Click "Admin"
-
3On admin page, Select "Scheduled emails"
-
4Select the email that you want to extend the time
-
5Click "Extend"
-
6The expiration date will be changed. Click "Save"
-
7The scheduled email will be updated.
Google Tag Manager
What is Google Tag Manager?
Google Tag Manager is a tag management system (TMS) that allows you to quickly and easily update tracking codes and related code fragments collectively known as tags on your website or mobile app. Once the small segment of Tag Manager code has been added to your project, you can safely and easily deploy analytics and measurement tag configurations from a web-based user interface.
Benefits of using Google Tag Manager
Google Tag Manager allows small businesses to customize the placement of website tags based on specific pages, triggers, variables, and actions.
Adding Google Tag Manager to WebEd
Update the Google Analytics Configuration
-
1Go to Admin > Site Settings > click 'Site Settings'
-
2Under the 'Search Curly Bracket' input field, enter "analytic" as the keyword
-
3Click on the 'Search' button on the right
-
4The 'Google Analytic Configuration' should appear on the results grid
-
5On the grid results, click on the 'Edit' icon on the left.
-
6Log in to your Google Tag Manager account https://tagmanager.google.com
-
7Go to Google Tag Manager and click on the GTM ID at the top
-
8You should be able to see the codes for the installation of Google Tag Manager
-
9Copy the code for the <head> (the first field)
-
10Go back to your site and paste this on the 'Tracking Script' field.
-
11Click the 'Save' button below to save the changes.
Google Tag Manager Guide
How to Set Up Google Analytics on Google Tag Manager
Google Analytics should be set up as a variable
-
1Under the Workspace menu, go to Variables
-
2On User Defined Variables, click New
-
3Rename the Variable to indicate Google Analytics
-
4Click the block icon
-
4Scroll through the Selection and choose Google Analytics Settings
-
4Get the Tracking ID on Google Analytics and add it on the required fields
-
4Then click Save
How to Create New Tag
-
1On the Overview Page, click New Tag
-
2Create a name for the tag
-
3Click on the Tag Configuration
-
4Choose Tag Configuration to use
-
4Click on Trigger
-
4Choose which trigger best fits objective
-
4Click Save
How to Add User Permission on Google Tag Manager
-
1Click the Admin tab on the menu
-
2Choose whether to add on Account or on Container. Best to add person to Account instead
-
3Click the Blue Plus button and choose Add User
-
4Enter email address of the person to add
-
5Choose permission level
-
6Click Send Invitation
How to Install Car Sales Script using Google Tag Manager
-
1Create new tag and choose custom HTML for Tag Type
-
2Add the Script
-
3Create a Page View Trigger by choosing Page View from the Selection
-
4Choose Some Page Views
-
5On dropdown menu, choose Page URL then set to Starts With.
-
6Click Save on the Page View Trigger Page
-
7Click Save on Tag
-
8Click Submit on workspace and skip all other process to publish the tag.
Best Practices for Google Tag Manager and Google Analytics
Elements of Google Tag Manager
Tags
Tags are segments of code provided by analytics, marketing and support vendors to help integrate their products into your websites or mobile apps. There is no longer any need to add the tags directly on the website with Google tag manager since it is configured within the platform.
With Google Tag Manager, there is no need to install tags/tracking codes directly on the website.
Supported Platforms
Google Products
- Google Analytics
- Google Ads Remarketing
- Google Ads Conversion Tracking
- Floodlight Counter
- Floodlight Counter Sales
- Google Optimize
Non-Google Products
- AB Tasty Generic Tag
- Adometry
- Adrolll Smart Pixel
- Audience Center 360
- Awin Conversion
- Awin Journey
- Bizrate Buyer Survey Solution
- Bizrate Insights Site Abandonment Survey Solution
- Clicktale Standard Tracking
- comScore Unified Digital Measurements
- Crazy Egg
- Criteo One Tag
- Eulerian Analytics
- Hotjar Tracking Code
- Infinity Call Tracking Tag
- Intent Media
- LeadLab
- LinkedIn Insight
- Lytics JS Tag
- Marin Software
- Pinterest Tag
Added Via Custom HTML
- Facebook pixel
Trigger Types
- Page View Trigger
- Click Trigger
- Element Visibility Trigger
- Form Submission Trigger
- History Change Trigger
- JavaScript Error Trigger
- Scroll Depth Trigger
- Timer Trigger
- YouTube Video Trigger
- Custom Event Trigger
- Trigger Group
Google Tag Manager vs Direct Code: Key Benefits
Better Page Load Speed
Loading Marketing pixels and tracking codes on websites take time to time off load speed. When doing several marketing campaigns using different marketing platforms, it is highly advisable to implement these tags via Google Tag Manager.
Ease in Managing Multiple Tags and Tracking Pixel
Having too many tags installed on a website not only slows down page speed but causes a lot of confusion on the back end. It is not a simple task to find the right tag to remove tags when there are a lot of codes in there. On the other hand, Google Tag Manager
Cross-Domain Linking: Creating a Unified View in Google Analytics
Cross Domain Linking isn't a popular request and only a few agencies and experts know or have implemented such. However, this type of setup can be helpful for individuals managing several websites with almost the same products and services or managing domains copied from others.
It is impossible to track several domains just by adding Google Analytics tracking code on websites one wishes to track. Please note that this is also the reason why the Google Analytics code doesn't work once the domain name changes. Google uses the domain registered to the account for this. No data will be collected from other websites.
For this reason, Cross Domain Tracking/Linking is done using Google Tag Manager. The setup is done via Google Tag Manager and the Google Analytics Tracking code is added as a Tag on Tag Manager. This eliminates the need of adding a Google Analytics Consolidated View Tracking code on the website. Google Analytics code is already on Google Tag Manager so there is no need to add Google Analytics tracking code.
Best Practices for Implementing Google Tag Manager
Organize Tags using Google Tag Manager
Get all marketing, analytics and vendor tags on Google Tag Manager. Almost all tags are supported by Google Tag Manager given that it also allows the use of custom HTML where one can add the script.
Limit only Two Tag Managers per website
If possible, it is best practice to keep only one Google Tag Manager. However, some instances would require the use of Google Tag Manager such as having a consolidated view of several Domain's Google Analytics accounts. However, there are instances that digital agencies would request for their tags to be implemented on the website. The best approach to this is to give the agency access to the company's Google Tag Manager instead.
Test all Tags using Preview/Debug Mode
To make sure tags are firing correctly, use the Preview mode to show Debug window on the website. Simply do the action that requires a trigger and see if any Tags were triggered.
Updating the Master Template with Google Tag Manager Script
Update the Google Analytics Configuration
-
1Go to Admin > Page Content > Look and Feel > click 'Page Template'
-
2Look for the Master template that the site is using, click the 'Edit' icon on the left
-
3Go to Google Tag Manager and copy the code for the <body>
-
4Go back to your site and paste this code right after opening the <body> tag.
-
5Click the 'Save' button to save the changes
-
6You should see a notification saying that "The template has been saved successfully".