Google Analytics
This Google Analytics plugin enables you to track your site performance with the latest tracking code and also allows you to view the key Google Analytics reports through your account.
(http://analytics.Google.com).
Event Listing owners can set up a new Google Analytics profile by visiting http://analytics.google.com. A profile ID will look something like UA-XXXXXXXX-XX.
Complete Video Guide On Google Analytics Add On
Installing The Plugin
The installation process is the same for all the addons, offered by WP Event Manager. They can be both installed automatically and manually.
- Automatic Installation: You can install the plugin from the backend of your WordPress. Click Here to see how you can install the plugin automatically.
- Manual Installation: You can also install the plugin manually using SFTP or FTP tools. Click Here to see how you can install the plugin manually.
Watch entire video for better understanding.
How to get your Google Analytics Tracking Code
To obtain your Google Analytics Tracking code, follow the below-mentioned steps:
- Sign in to your Analytics account.
- Click Admin.
- Select a property from the menu in the PROPERTY column.
- Under PROPERTY, click Tracking Info >> Tracking Code.
- Your Tracking ID is displayed at the top of the page.
- copy this tracking code.
Add The Google Analytics Code at the backend
To add the Google Analytics Code at the backend, follow the below mentioned steps:
- Go to Admin >> Event manager >> settings >> Google analytics.
- Paste the code copied from the analytics site.
After adding the google analytics tracking code at the admin side, this tracking code will be inserted at the footer of every page of your site.
Now you can see your track report through your google accounts.
Advanced: Overriding/Customizing the templates
For overriding or customization, template files can be found in the wp-event-manager-google-analytics/templates/ directory.
To override a template file, follow the below-mentioned steps:
- Create a directory “wp-event-manager-google-analytics” under your theme folder.
- copy the template file to “/wp-content/yourtheme/wp-event-manager-google-analytics/” directory.
- Your theme will use all the template files from the “/wp-content/yourtheme/wp-event-manager-google-analytics/” directory instead of the plugin’s template file (/wp-content/plugins/wp-event-manager-google-analytics/).
- event-google-analytics.php template file lists the user’s alerts.
Remember: If you have overridden template file and plugin frequently updating then you need to sync template file with new updates from the plugin’s template file for better functionality and new features.