How to setup Google Analytics in Kadence WP Theme

Google Analytics is an essential tool for any website owner. It provides data on your website traffic, such as where visitors are coming from, what pages they view, and how long they stay.

This tutorial teaches you how to set up Google Analytics to track your Kadence Pro Theme WordPress website performance.

Requirements

Before you proceed, here are some of the requirements you will need for this setup.

Video: How to Set up Google Analytics in Kadence WP Theme

Check out our video on How to set up Google Analytics in Kadence WP Theme.

This video covers all the steps from creating your Google Analytics account to adding the tracking code to your Kadence WP Theme website.

Track and Analyze WordPress Performance with Google Analytics.

Time needed: 10 minutes.

How to set Google Analytics in Kadence WP Theme

  1. Create a Google Analytics account.

    To begin with, ensure you are logged into your Google account. If you have a Gmail account, then you already have an account with Google and do not need to create one.

    While logged into your Google account, go to analytics.google.com. Click Start Measuring to start the process of creating your Google Analytics account.

    Fill in your account details by starting with the account name.

    Creating a Google Analytics Account.

  2. Create Google Analytics property.

    Proceed to create a Google Analytics property.

    Basically, a Google Analytics property is a website, mobile app, or other digital asset you track with Analytics. Each property has a unique tracking ID, which we use to collect data about the visitors to your property.

    Create the property by adding the name. Then, set the time zone and currency Google Analytics will use when creating your reports.

    Creating a property in Google Analytics.

  3. Fill in the Business details.

    Business details enable Google to understand more about your business. Specify your business’s industry category and size in this step.

    Business Details in GA4

  4. Specify your business objectives.

    Business objectives are the specific goals you want to achieve when tracking and collecting Analytics data.

    You could be interested in using the reports to generate leads, drive online sales, examine user behaviour, etc.

    Specifying your business objectives enables Google Analytics to send you personalised reports. These reports contain data that can help you to meet your business goals.

    For this website, we will collect baseline reports from Google Analytics.

    Business Objectives in GA4.

  5. Select a data collection platform.

    Choose the type of platform Google Analytics will be collecting from. A platform could be your website, an Android or an iOS app.

    We will select the Web in our setup since we will collect data from a website.

    Set up web data collection in Google Analytics

  6. Set up the data stream.

    A data stream is an individual data flow associated with a specific data source; this could be a website or an app. For example, if you have a website, you will have one data stream. This stream connects your website to Google Analytics.

    To create a Stream, select the type of interactions to measure when visitors come to your site.

    Interactions you can measure include page views, outbound clicks, and so on.

    Set up the data stream

  7. Tag instructions.

    When you create a data stream, Analytics generates a tracking code that you tag to your website.

    Go to View Tag instructions and see how to add the tracking code to a website.

    Go to view tag instructions.

  8. Get Google Analytics tracking code/tag.

    Switch to the “Install manually” tab on the Tag instructions page. Copy the tracking code, as can be seen below.
    Copy Google Analytics tracking code.

  9. Kadence Theme Custom Scripts

    Go to your Kadence WP theme customiser. Scroll to the Custom Scripts feature.

    In order to use this feature, you must have the Kadence Header/Footer scripts add-on activated.

    Go to Kadence Theme Custom scripts.

  10. Add tracking code to the website.

    Paste the tracking code you copied in Step 8 into the header custom scripts. Then click Publish to save the changes.

    You should always place the Analytics code inside the header scripts of your website. Thus, it will load on every page of your website.

    As a result, Google Analytics will be able to track data on every page of your website.

    Add Google Analytics code in the Kadence WP header scripts.

  11. Clear cache.

    The next step is to clear the server cache.

    When you clear the server cache, it removes the old cached files that do not have the tracking code.

    As a result, the server will create new cache files for all pages with the tracking code inside the header.

    Clear Server side cache.

  12. Google Analytics Home Page.

    Return to Google Analytics and straightaway proceed to your Analytics home page.
    Go to Analytics Home page.

  13. Verify website data collection.

    Check the home page to see if Google Analytics is picking data from your website. The data collection status will be active if the tracking works, as can be seen below.

    If Analytics is not collecting any data, then the tracking code could be missing on your website.

    Clear your server cache again and then refresh to see if the tracking works.

    Google Analytics collects live website data

Clearing Cache

Check out our article on Clearing your Browser Cache to learn more about cache at length.

Conclusion

We hope this article has helped you to learn how to set up Google Analytics in the Kadence WP theme. If you have any further inquiries on WordPress SEO, please feel free to contact us.