
[StreamTube] 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
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

In order to display Sitekit reports on the member dashboard, you will need to activate the following services:
- Search Console
- Analytics
- Tag Manager

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

Google Analytics 4
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.

Tag Manager
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. (A new container is created by default, and you can create additional containers within each account.)

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

Step 3 Check on the Term checkbox and click Yes button

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

Step 5 Navigate to Admin tab.

Step 6 Click Import Container

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.

Step 8 Click Confirm button

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

Step 10 Change your Measurement ID and click Save button

The Measurement ID can be found from your Sitekit settings page

Step 11 Click Preview button

Step 12 Paste a video URL and click Connect button

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

Step 13 Click Submit button

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

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

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

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

Step 18 Click on the data stream which you have created

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

Done!