-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcf7-google-analytics.php
More file actions
33 lines (29 loc) · 1.03 KB
/
Copy pathcf7-google-analytics.php
File metadata and controls
33 lines (29 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Plugin Name: Contact Form 7 Google Analytics Integration
* Plugin URI: https://andrewrminion.com/contact-form-7-google-analytics/
* Description: Adds Google Analytics Event Tracking to all Contact Form 7 forms.
* Tags: contact form, contact form 7, cf7, contactform7, google analytics, ga, universal, forms, form, track, tracking, event, events, goal, goals
* Version: 1.8.12
* Author: Andrew Minion
* Author URI: https://www.andrewrminion.com
*
* @package WordPress
* @subpackage CF7_Google_Analytics
*/
/** Don't allow calling this file directly */
if ( ! function_exists( 'add_filter' ) ) {
header( 'Status: 403 Forbidden' );
header( 'HTTP/1.1 403 Forbidden' );
exit();
}
/** Define the plugin file */
if ( ! defined( 'CF7GA_PLUGIN_FILE' ) ) {
define( 'CF7GA_PLUGIN_FILE', __FILE__ );
}
define( 'CF7GA_PLUGIN_VERSION', '1.8.10' );
/** Include the main class. */
if ( ! class_exists( 'CF7_Google_Analytics' ) ) {
include_once dirname( __FILE__ ) . '/inc/class-cf7-google-analytics.php';
new CF7_Google_Analytics();
}