Adding Google Analytics for Digital Marketing Agencies in Sheffield WordPress can be done by using one of four methods:
Add Google Analytics to WordPress using the tracking code inline.
Add Google Analytics to WordPress using plugins.
Add Google Analytics to WordPress using Google Tag Manager (GTM) through inline code.
Add Google Analytics to WordPress using plugins GTM.
There are several things that must be in place before you begin:
A Google Account
A Google Analytics Account
If using GTM, you need GTM Account and Container with GA tag installed page views
Critical – Plan Your Strategy
Take the time to research and consider methods that will work best for you. This will ensure a separate blog post, but in general, guided by your needs, the resources available to you and your technical skill level you want.
smaller sites with limited technical resources may choose to use the plugin, WordPress sites while a larger company with a technical team would likely prefer the approach inline code, but.
There is no right or wrong way.
Let’s dive into the methods available to you, starting with Google Analytics.
Method 1: How to Add Google Analytics for WordPress With Inline Tracking Code
If you’re a bookworm, you can do this yourself, but when you create a tracking inline changes to the code, it is important to:
Always consult your theme documentation before proceeding.
Remember that editing the code is not without risk. Always make a copy header.php file with a different name before you make and save changes to your WordPress site.
For example. make a copy of your header.php file and rename the original header-old.php That way, if you break the code, you have a fully working version to go back to 😊.
It is also best practice to work on the theme of your site child. This is because when you update your theme, edited files will be overwritten, remove your Google Analytics tracking
If this sounds overwhelming or too challenging, follow the instructions to use the plugin is not to live more simply.
The process is as follows:
Step 1. In your WordPress theme, you have to find a template where the HTML information resides. It is commonly found in the php file.
Step 2. In Google Analytics, you copy the tracking code GA Property (Admin> PROPERTIES> Tracking Info)
Step 3. Edit the php file using WordPress editor ‘(Admin> Settings> Editor) and add the tracking code in the opening section of the site.
Google Analytics Inline Pro
Placing Google tracking code according to best practices in your HTML
You will have full control of the tracking code
Google Analytics Inline Counter
It should be done in your child theme
Requires you to update your code manually change
Require technical skills for customization and can be easily configured
Add as many tags can inline HTML source code bloat, negatively impacting the performance speed of the page
Method 2: How to Add Google Analytics for WordPress With Plugins
For many small operation and setup of the people, the technical challenges and additional customization requirements when using code inline blockers. GA WordPress Plugin can be super useful in this regard.
Easy to use
Offer a variety of built-in customization ‘advanced’ deployed at the click of a button, for example, event tracking.
Offer some useful additional such as reporting dashboard WordPress
Frequently updated by third parties
Some offer support GTM 😊😊😊
limited customization of the tracking code
May lack specific features you need
Possible negative impact on the Digital Marketing Agency in Sheffield performance of the site (too many plugins)
free plugin may lack good support, leaving you in limbo when trouble strikes
Adding additional analysis tracking tags will need more plugins (unlike using GTM).