|  | ||
|---|---|---|
| README.md | ||
| install.sh | ||
| simple-status.php | ||
		
			
				
				README.md
			
		
		
			
			
		
	
	Simple Tracking Plugin Installation
Installation
To install or update the Simple Tracking plugin, run the following command from the root of your WordPress HTML directory:
curl -sSL https://git.nixc.us/colin/SimpleTracking/raw/branch/main/install.sh | bash
Enabling the Plugin
After running the install script, you need to activate the plugin. You can do this via the WordPress admin dashboard:
- Log in to your WordPress admin dashboard.
- Navigate to Plugins > Installed Plugins.
- Find Simple Trackingin the list and clickActivate.
Alternatively, you can activate the plugin using WP-CLI:
wp plugin activate simple-tracking --allow-root
What install.sh Does
The install.sh script performs the following actions:
- Defines the URL for downloading the simple-tracking.phpfile.
- Creates the target directory (wp-content/plugins/simple-tracking) if it doesn't exist.
- Downloads the simple-tracking.phpfile into the target directory.
- Creates a blank tracking-code.phpfile if it doesn't already exist and instructs the user to add their tracking code to it.
- Sets the correct permissions for the simple-tracking.phpandtracking-code.phpfiles.
- Prints a message indicating that the Simple Tracking plugin has been installed or updated successfully.