With the pro version, you can track any actions without coding. Clicks, time on page, number of pages, form submited, video views and more.

General

Enable Event

Event Name

"/>

This name will be used in the GTM data layer for the custom parameters object.

Event Triggers

getTriggers(); $main_trigger = []; $trigger_types = array( 'page_visit', 'home_page', 'scroll_pos', 'post_type', ); if ( !empty( $event_triggers ) ) { foreach ($event_triggers as $event_trigger) { $trigger_type = $event_trigger->getTriggerType(); if (in_array($trigger_type, $trigger_types)) { $main_trigger = $event_trigger; break; } } } elseif(empty( $event_triggers ) && empty($main_trigger) ){ $main_trigger = new TriggerEvent(); } $trigger_type = $main_trigger->getTriggerType(); ?>

Fire event when

getPostTypeValue(); $errorMessage = "Post type " . $selectedPostType . " not found: the post type that triggers this event is not found on the website. This event can't fire."; $types = get_post_types( null, "objects " ); foreach ( $types as $type ) { if ( $type->name == $selectedPostType ) { $errorMessage = ""; break; } } if ( $errorMessage != "" ) :?>
getSlug() ) : ?> getSlug() == "elementor_form" ) : ?>

Conditions

Enable Conditions

Logic

getConditions(); if ( !empty( $event_conditions ) ) : foreach ( $event_conditions as $event_condition ) : $i = $event_condition->getConditionIndex(); $trigger_type = $event_condition->getConditionType(); $event_condition->renderConditionalBlock(true); endforeach; endif; ?>
enabled() ) : $facebook_configured = Facebook()->enabled() && !empty( Facebook()->getPixelIDs() );?>

Meta

facebook_enabled && $facebook_configured; ?>

Active

Inactive

Enable on Facebook

Add Parameters

facebook_event_type ]; foreach ( $fields as $field ) : $param_key = $field[ 'label' ]; $param_data = isset( $event->facebook_params[ $param_key ] ) ? $event->facebook_params[ $param_key ] : null; $param_value = $param_data[ 'value' ] ?? $param_data; ?>
getFacebookCustomParams() as $key => $custom_param ) : ?>

Track WooCommerce product data on single product pages

Track WooCommerce cart data when possible

Important: verify your custom events inside your Ads Manager: watch this video to learn how

enabled() ) : $ga_tags_configured = (GA()->enabled() && !empty(GA()->getPixelIDs())); ?>

Google Tags

ga_ads_enabled && $ga_tags_configured; ?>

Active

Inactive

Error: Google tags are not configured

Enable on Google Analytics

getMergedGaParams() as $key => $val ) : ?>
getGAMergedCustomParams() as $key => $custom_param ) : ?>

Track WooCommerce product data on single product pages

Track WooCommerce cart data when possible

The following parameters are automatically tracked: content_name, event_url, post_id, post_type.

The paid version tracks the event_hour, event_month, and event_day.

Google Ads

Enable on Google Ads

Optional

Track WooCommerce product data on single product pages

Track WooCommerce cart data when possible

TikTok

Error: TikTok is not configured

Enable on TikTok

Add Parameters

Track WooCommerce product data on single product pages

Track WooCommerce cart data when possible

enabled() ) : ?> renderCustomEventOptions( $event ); ?> enabled() ) : ?> renderCustomEventOptions( $event ); ?> enabled() ) : ?> renderCustomEventOptions( $event ); ?> enabled() ) : $gtm_configured = GTM()->enabled() && !empty( GTM()->getPixelIDs() ); ?>

GTM DataLayer

gtm_enabled && $gtm_configured; ?>

Active

Inactive

Error: GTM is not configured

Enable on GTM

Add the automated parameters in the dataLayer

Remove the customTrigger object

getPixelIDs(); if ( !empty( $mainPixels ) && strpos( $mainPixels[ 0 ], 'GTM-' ) === 0 && strpos( $mainPixels[ 0 ], 'GTM-' ) !== false ) { echo '
' . $mainPixels[ 0 ] . '
'; echo ''; } else { echo '
' . __( 'No container ID is configured', 'pys' ) . '
'; } ?>
getGTMParams() as $key => $val ) : ?>
getGTMCustomParamsAdmin() as $key => $custom_param ) : ?>

Track WooCommerce product data on single product pages

Track WooCommerce cart data when possible

Use a custom value for the custom parameters object

getManualCustomObjectName() ); ?>

When configuring GTM variables for these parameters, use this key: getManualCustomObjectName(); ?>

ATTENTION: ​ the plugin automatically tracks ecommerce specific events for WooCommerce and Easy Digital Downloads. Make sure you really need this event.

Dynamic Parameters Help

Important: Don't use the Dynamic Parameters to send users' personal data with your events because it can trigger warnings or other similar actions.

  • [id] - it will pull the WordPress post ID
  • [title] - it will pull the content title
  • [content_type] - it will pull the post type (post, product, page and so on)
  • [categories] - it will pull the content categories
  • [tags] - it will pull the content tags
  • [total] - it will pull WooCommerce or EDD order's total when it exists
  • [subtotal] - it will pull WooCommerce or EDD order's subtotal when it exists

Track URL parameters:

Use [url_ParameterName] where ParameterName = the name of the parameter.

Example:

This is your URL: ?ParameterName=123

The parameter value will be 123.

Note: if a parameter is missing from a particular page, the event won't include it.

Track form parameters:

Use [field_FieldName] where FieldName = the name of the field.

Example:

This is your field name: filed-name

The value of the dynamic parameter will be: [field_field-name]

The parameter value will be the value of the field.

Track MemberPress plugin parameters:

These parameters only work on a "thankyou page" with shortcode [mepr-ecommerce-tracking]Message with %%variables%% in here[/mepr-ecommerce-tracking]

Available parameters are described here.

All variables must have the prefix "mp_".

Example:

This is your MemberPress variable: total.

The parameter value will be: [mp_total].