Google Analytics is important to track how users visit your site and what they do on your site, follow these steps to implement this onto your WordPress site:
- Create a Google tracking code by following this guide – https://support.google.com/analytics/answer/1008080?hl=en
- Once you have your
<script>
code from Google, login to your admin WordPress account. - Hover over ‘Appearance’ and select ‘Customize’.
- Select the option ‘Additional Scripts’.
- This will open a setting with three text areas where you may post JavaScript code to. (You may learn more about this over here.)
- Paste in your Google tracking code into the ‘Header Scripts’. Be sure to include the entire code with the
<script>
tags. - Select ‘Publish’ to save your changes.