What exactly is Google Tag Manager?
Before diving too deep, it’s important to know the basics about Google Tag Manager (GTM) and what the tool does. Think of the Google Tag Manager software as an operating board for your website. It allows you to add different kinds of code (tags) to your website such as Google Analytics tracking codes (UA & GA4), and Google Ads scripts to name a few. With tag manager, you’re able to use as little or as many of these features as you’d like. Oh and the best part about the software, it’s free!
Before GTM, GA tracking codes had to be manually coded onto each page, typically by a web developer or someone with experience writing or implementing code. That said, maintaining and updating what could sometimes turn into hundreds of events would be troublesome. However, Google Tag Manager fixes this issue because all of your tags are kept in a single location (your GTM account) and implemented with a few lines of code in the header and body of your website code.
#1 - All your tags are managed in one place
In the past, all tracking codes were written directly into the source code of the website. This made it very difficult to manage tracking codes across all website pages. In order to make a small modification, the website manager or developer had to: (1) locate all the relevant codes; and (2) update them.
This process is simplified by GTM because all tags are controlled in one location.
#2 - Event Tracking
Event tracking with Google Tag Manager makes tracking simpler than ever. Once you turn on specific triggers in Google Tag Manager, they’ll start listening to specific interactions on a website automatically. There is still some setup needed, but it’s not rocket science. These interactions can be used to activate tracking tags, such as the Google Analytics Event Tag.
Some fundamental events that GTM allows you to track (by default) are based on:
#3 - Security
Security and the potential for a website malfunction are oftentimes two major issues with website maintenance. And with good reason… your business could be seriously impacted if your user data is hacked or if a user is blocked due to errors. Rest assured, GTM won’t completely destroy your website or create any new openings for vulnerabilities in the future.
#4 - Flexibility
The versatility of Google Tag Manager is a game changer. Once installed, you should never need to work with a web developer to make changes to a tag (scripts on your pages). You’ll avoid a ton of headaches, time, and money by doing this. It’s easy to modify and more efficient when executing the activities you set out to do.
#5 - Modernize and future-proof your site
Ideally, you’re already utilizing GTM to monitor analytics on user behavior and site traffic. If you aren’t, it’s never a bad time to get started. The latest industry standard for site tracking (Google Analytics 4) is something you’ll want to upgrade too as soon as possible. The big switch over from Google Analytics (Universal Analytics) to GA4 will be going down in July of 2023.
With GA4 officially here, Tag Manager should be your go-to platform to manage analytics tracking an installation. If you’re interested in learning more about Google Tag Manager, This training resource should provide you with everything you need to know: Google Analytics Academy
The uploaded file exceeds the upload_max_filesize directive in php.ini
So, you’ve been working on your WordPress website and are now receiving an error: the uploaded file exceeds the upload_max_filesize directive in php.ini. when attempting to add new media. Don’t worry, this can happen to any type of website, large or small.
The reason for this is simple – Your default server settings have an uploadable file size limit. The only thing left for you to do now is jump in and change that default setting to allow you to upload larger files. Follow these next few simple steps to make the change:
1. Edit the .htaccess file
The easiest way to fix the uploaded file exceeds the upload_max_filesize directive in php.ini. error is increasing your PHP resource limits with the .htaccess file. You can access this .htaccess file through your file manager or through an FTP client. The .htaccess file can be found inside the public_html directory. Once you find it, either edit the file in the file in the file manager or download the file and open with Notepad.
Now locate the .htaccess file withing the file manager.
Simply add this line of code to the bottom of your .htaccess file to initiate the changes:
php_value upload_max_filesize 256M
Now save the changes. If you downloaded the file, save the changes and upload your file back into the public_html directory where your found it.
Please note: You can set the PHP limits to any preferred values if your server supports it. If you aren’t uploading unusually large files, your best bet is to increase the php_value upload_max_filesize to 256M.
Now check to make sure the changes are initialized. Upload the media file that was once too large to upload.
2. Edit the wp-config.php file
What makes the Wp-config.php so important is that it contains the base configuration details for your WordPress installation. This can be found in the root of your file directory.
First you need to to edit the memory limit and upload limit. Find the line:
Now increase the memory limit to 128M.
3. Edit PHP variable options
If none of the options above were effective, the problem is likely within your server settings. If you are facing php upload limit issues and the error reads: (…. exceeds the maximum upload size for this site), you can fix them at your end as follows:
- Login to your cPanel account
- Find and click on Select PHP version
- Select Switch to PHP options
- You can see several PHP variable options listed. Search for “upload_max_filesize” and “post_max_size” option and increase the value to a higher one, for example 2M to be increased to 16M and so on.
- Ensure that the changes are saved.
Contact your hosting provider if you are still experiencing issues.
How to effectively stage a WordPress website for development
You’ve already registered your domain, setup hosting, and built a website for your existing business. But now you’re ready to update… and want a better, more professional looking website. So, what do you do?
Look no further for the steps you can take to effectively stage your new WordPress to turn live when complete.
Register a new domain or transfer an existing domain
A few things you need to think about when choosing your name:
- Keep it relevant
- Easy to remember
If you plan on using the same URL in the same hosting account, you can simply create a sub-directory under your main domain name
Now you need a place for your website to live. If your plan is to work with a new hosting provider, you will be able to setup and create a new database with them under your domain name. Be sure to either transfer the domain here or plan on pointing your domain name servers here one the new site is complete. If you are planning on staying with the same hosting provider, you will simply be able to create a sub-directory within your cPanel > File Manager to create your new website.
Shared hosting is a great way to start since you are likely looking for the most affordable option to get your site up and running. Unless your website is attracting hundreds of visitors per day, a shared hosting package should suffice.
Connect your domain and hosting
Whether you decided to stay with your existing hosting provider and create a new website in a sub-directory, or decided to work with a new hosting provider, you need to make sure you update your nameservers.
Wherever your domain is registered, you will have access to decide where your nameservers are pointing. Typically, once you’ve finished creating an updated website, you will then point the new nameservers to your domain to make the website officially live.
cPanel & Softaculous WordPress Installation
Now that you’ve established a domain name and hosting, it’s time to access your New or existing cPanel to install WordPress. Installing WordPress is completed using Softaculous app installer. After setting up a username, password and input other required information Your new WordPress dashboard for website development is ready to rock and roll.
To access your new dashboard, the URL will something like http://yourdomain.com/wp-admin. If you decided to install WordPress in a sub-directory of your current domain, accessing the new WordPress dashboard will follow the order of the file structure in addition to wp-admin/ to effectively access the login page
Wait… Why does my development site point to my old site?
In this case it is beyond just pointing to the right nameservers… because the main idea is to develop your new website behind the scenes and then go live, right? So if you have decided to setup a new hosting package and create a new database under the same domain name as your current website that’s already live, anything you do is going to be directed there, unless you perform a work around.
A popular option is to edit your htaccess file on your computer, locally. This is possible by configuring “A” record for yourdomain.com in your local machine hosts file (htaccess). That way whenever you access yoursite.com, you will be accessing it from the new hosts server
On a Windows operating system, you need to perform the following:
Using the File -> Open feature: