# Sitekit By Google (Page Views, Reports, Analytics ...)

StreamTube comes equipped with the Site Kit by Google plugin, which is an official plugin from Google. This section does not cover the installation of Site Kit and its modules from the WordPress backend. For further assistance, please refer to the Site Kit documentation [https://sitekit.withgoogle.com](https://sitekit.withgoogle.com/)

After configuring the plugin correctly, it may take 24-48 hours to process data from your website. Ensure that your site has enough traffic to display page views and generate reports

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FT6rC5N2n2YjWpQivqJZA%2F7042926117.png?alt=media&#x26;token=d29ea5d4-da3a-485a-93fd-125ee70094a1" alt=""><figcaption></figcaption></figure>

In order to display Sitekit reports on the member dashboard, you will need to activate the following services:

* Search Console
* Analytics
* Tag Manager

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FgTZ42MJjoiBnVnRPZPdh%2F6366013269.png?alt=media&#x26;token=ff6fd7e6-883b-4447-82b4-b49c8f459811" alt=""><figcaption></figcaption></figure>

After enabling services, you can enable or disable the report sections from **Appearance > Theme Options > Google Sitekit** panel<br>

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2Fx6WOfHY9OPhx03L8nSua%2F6129270177.png?alt=media&#x26;token=4a0700ef-826f-40ee-8bc8-03ce2cf04cf2" alt=""><figcaption></figcaption></figure>

#### Google Analytics 4 <a href="#ga4" id="ga4"></a>

***

Google Analytics does not track the logged-in users by default, to prevent that, you will need to disable the **All logged-in users** and **Users that can write posts** options, it is up to you.

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FG3kam1SmhFgrwwwB7NuE%2F1842148289.png?alt=media&#x26;token=731fe750-f575-41c1-a030-df1a8926b2b3" alt=""><figcaption></figcaption></figure>

#### Tag Manager <a href="#tag-manager" id="tag-manager"></a>

***

Setting up Tag Manager is unnecessary if your intention is to embed videos from video platforms other than YouTube or self-hosted video files.

StreamTube collects video views using Google Tag Manager, **if you embed other videos than Youtube or self-hosted video files, just omit this section.**

**Step 1** Create an account, or use an existing account, at [https://tagmanager.google.com](https://tagmanager.google.com/). (A new container is created by default, and you can create additional containers within each account.)

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2F18WHzkKxh2I8Qm2s6bhN%2F1343661500.png?alt=media&#x26;token=41edac02-49ba-4ca8-88f8-e3e4b1661fcc" alt=""><figcaption></figcaption></figure>

**Step 2** Fill your Account Name, Country, Website URL, choose **Web** and click the **Create** button.

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2F1DUdSf5uqC1NxpuFTMps%2F9215222296.png?alt=media&#x26;token=ac543dda-8065-4a1e-8155-66fd606a607f" alt=""><figcaption></figcaption></figure>

**Step 3** Check on the Term checkbox and click **Yes** button

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FAVOPqsaGxg0BlAPue8KR%2F6810023656.png?alt=media&#x26;token=6bcb061b-8b2a-427c-a295-35bd5199eff1" alt=""><figcaption></figcaption></figure>

**Step 4** An **Install Google Tag Manager** modal will appear, click **OK** button to close it.

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FgfwVKhcdvw6WV9up8BgQ%2F2953744905.png?alt=media&#x26;token=5f288b60-738d-477c-baaf-01846e1639e5" alt=""><figcaption></figcaption></figure>

**Step 5** Navigate to **Admin** tab.<br>

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FXB3Nkk17RpE0M4TLHp9z%2F9590916157.png?alt=media&#x26;token=a01a8340-bfd8-492f-87a8-e6ec102baf12" alt=""><figcaption></figcaption></figure>

**Step 6** Click **Import Container**

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FLiLB5qttFyy0gl0XVx8F%2F3582702605.png?alt=media&#x26;token=815a19e5-1803-4fad-bf15-e55e2b49a349" alt=""><figcaption></figcaption></figure>

**Step 7** Browse to **google-tag-manager-container.json** file which is included in **Sample Data** folder of the **All Files and Documentation** zipped file.

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FDtS6Arr3jBxwq2OQ1W8Z%2F2443630869.png?alt=media&#x26;token=f51c605b-cc6e-4a90-bb17-013fc0f3be73" alt=""><figcaption></figcaption></figure>

**Step 8** Click **Confirm** button

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FlKYzTMiXcASP4ujrDqeu%2F1968908322.png?alt=media&#x26;token=d698c8ce-eba6-4311-86ff-1c3cf593857e" alt=""><figcaption></figcaption></figure>

**Step 9** After successfully importing, Navigate to **Tags**, and click on **GA4 Event Tag**

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FsicDd67ctwyIzkUBtAYk%2F2771821057.png?alt=media&#x26;token=db1ba316-bb74-4f9c-907d-eeb65882a05e" alt=""><figcaption></figcaption></figure>

**Step 10** Change your **Measurement ID** and click **Save** button

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FWEZTDFQDpXOQGg4bUaAf%2F7070724632.png?alt=media&#x26;token=298dc0f0-c386-49aa-a3a8-b0b05da2ebbd" alt=""><figcaption></figcaption></figure>

The **Measurement ID** can be found from your Sitekit settings page

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FJSgyc48CBsLsu0PHzoxP%2F5460444646.png?alt=media&#x26;token=a4896867-b8ee-4d8f-9c08-f060f5830a6b" alt=""><figcaption></figcaption></figure>

**Step 11** Click **Preview** button

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2F3DOmypxMy8k7c7VuaH8F%2F6306111851.png?alt=media&#x26;token=3439c84d-c303-4b7c-8f48-36a6100c7a06" alt=""><figcaption></figcaption></figure>

**Step 12** Paste a video URL and click **Connect** button

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2Fo1oxp7RZWNzjWv0ljwxN%2F5047441002.png?alt=media&#x26;token=fd86af83-a802-4a25-9a2a-4e61318bde44" alt=""><figcaption></figcaption></figure>

Play video, if you see **YouTube video** from the left panel which means you set it up successfully, click **Finish** text to complete debugging mode

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FX2x1WbAuHi4t3nnpYGF0%2F6725152456.png?alt=media&#x26;token=1bf76570-865d-4a28-b4c1-6c3f8e2086cc" alt=""><figcaption></figcaption></figure>

**Step 13** Click **Submit** button

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2F6aZengxGH0f2MmM4vWX6%2F9582139252.png?alt=media&#x26;token=1231a3b6-95d8-43de-b251-729ee1de8eb3" alt=""><figcaption></figcaption></figure>

**Step 14** Enter the Version name and description if you want or just click the **Publish** button

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FMNUhUMDaczIBh813czP7%2F9054143348.png?alt=media&#x26;token=93f4c5bc-a9d9-47ca-be63-7e059cec2a15" alt=""><figcaption></figcaption></figure>

**Step 15** You have configured your Google Tag, from your WordPress dashboard, navigate to **Sitekit > Settings > CONNECTED SERVICES** tab

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2F1NdrzMpLQgm6pwvjAKJ2%2F3594337701.png?alt=media&#x26;token=4b332eff-b604-4f2b-ad86-d74e73930c10" alt=""><figcaption></figcaption></figure>

**Step 16** Select the Account and website URL you just created on Google tag manager website, then, click **CONFIRM CHANGES** button.

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FthS7fopYjYOiMVdNEymu%2F1068502801.png?alt=media&#x26;token=6fbd9e8a-8658-493e-b107-8081c05aef52" alt=""><figcaption></figcaption></figure>

**Step 17** From your Google Analytics screen, Navigate to **Admin > Data Streams**

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FxEm4uNtXxJkbhSb64cqt%2F3940183810.png?alt=media&#x26;token=02cfebad-8a23-4da6-9178-50be9cc65c80" alt=""><figcaption></figcaption></figure>

**Step 18** Click on the data stream which you have created

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2F1VKbumNi8JJEdaGGzcSG%2F2974272492.png?alt=media&#x26;token=7fc80800-e622-4f4b-b63c-e3e50ee4469b" alt=""><figcaption></figcaption></figure>

**Step 19** In the **Enhanced measurement** section, click the **Settings** icon, enable all Options and click **Save** button

<figure><img src="https://2226487161-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqVWDZMetj6mBqmoSajgK%2Fuploads%2FmLPSVzrQt0Ia008JS1dg%2F8658488513.png?alt=media&#x26;token=12c6d6a7-1204-4951-933e-c674d98d9041" alt=""><figcaption></figcaption></figure>
