Google Analytics

Google Analytics

This Google Analytics plugin enables you to track your site using the latest Google Analytics tracking code and allows you to view key Google Analytics reports at your google analytics account (http://analytics.Google.com). Listing owners can setup a new Google Analytics profile by visiting http://analytics.google.com. A profile ID will look something like UA-XXXXXXXX-XX.

 

Installation

You can install this plugin same way as installing the WP Event Manager so please refer installation guide of the WP Event Manager or refer to this Installing Plugins Guide.

During the plugin activation process, plugin will create one meta key in the database called “event_manager_google_analytics_tracking_code”.

 

Admin Side Settings

This plugin will add new tab “Google Analytics” at backend side with following options:

Admin Side Settings

 

Analytic Code will be show in Footer

As shown in the figure, the analytics code you add will be added into the footer so it will track each and every page of your site and help you to analysis of your site traffic.

Analytic Code will be show in Footer

 

Add Google Analytics Code

On registering at Google Analytics you will be provided with an analytics code. You can paste this code at Google Analytic tab of the Event Listing menu settings of your website’s admin panel.

Add Google Analytics Code

 

After adding google analytics tracking code at admin side, this google analytics tracking code will insert at footer of the every page of your site. Now you can see your track report at your google accounts or you can install “Google Analytics Dashboard for WP” plugin to display track report at your admin side dashboard.

 

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, first you need to create directory “wp-event-manager-google-analytics” under your theme folder and 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 overrided 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.