This commit is contained in:
2026-04-26 23:47:49 +02:00
parent 1b95f03d1e
commit b073e009d8
5288 changed files with 1112699 additions and 55536 deletions

View File

@@ -26,7 +26,16 @@ if ( ! defined( 'ABSPATH' ) ) {
</div>
</div>
<p class="small">
The plugin will send a purchase event using Facebook and Google Analytics API when auto-renewals take place. This feature is not yet supported for GA4 properties.
The plugin will send a Purchase event to Meta and Google using API when auto-renewals take place or when a new order is placed by an admin on the backend. Meta Conversion API token and GA4 Measurement Protocol secret are required.
</p>
<div class="row">
<div class="col">
<?php renderDummySwitcher(false); ?>
<h4 class="switcher-label">Track refunds on Goolge Analytics</h4><?php renderProBadge(); ?>
</div>
</div>
<p class="small">
A "Refund" event will be sent to Google via the API when the order status changes to "Refund". GA4 measurement protocol secret required.
</p>
</div>
</div>
@@ -37,8 +46,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<div class="card-body">
<div class="row">
<div class="col">
<p>Fire e-commerce related events. On Facebook, the events will be Dynamic Ads Ready. Enhanced Ecommerce
will be enabled for Google Analytics.</p>
<p>Fire e-commerce related events. Meta events are Dynamic Ads Ready. Monetization data is sent to Google Analytics.</p>
</div>
</div>
@@ -121,7 +129,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<h2 class="section-title">ID Settings</h2>
<?php if ( Facebook()->enabled() ) : ?>
<!-- Facebook ID -->
<div class="card">
<div class="card-header">
@@ -151,7 +159,7 @@ if ( ! defined( 'ABSPATH' ) ) {
</div>
</div>
</div>
<?php endif; ?>
<?php if ( GA()->enabled() ) : ?>
@@ -353,6 +361,11 @@ e&utm_campaign=pro-feature' ); ?>
<?php renderDummyCheckbox( "Don't fire the event for 0 value transactions", true ); ?>
</div>
</div>
<div class="row mb-3">
<div class="col-12">
<?php renderDummyCheckbox( "Don't fire the event when the number of items is 0", true ); ?>
</div>
</div>
<?php if ( Facebook()->enabled() ) : ?>
<div class="row">
<div class="col">
@@ -361,7 +374,7 @@ e&utm_campaign=pro-feature' ); ?>
</div>
</div>
<?php endif; ?>
<?php if ( Pinterest()->enabled() ) : ?>
<div class="row">
<div class="col">
@@ -411,7 +424,7 @@ e&utm_campaign=pro-feature' ); ?>
</div>
</div>
</div>
<?php if ( GA()->enabled() ) : ?>
<div class="row mb-1">
<div class="col">
@@ -454,7 +467,7 @@ e&utm_campaign=pro-feature' ); ?>
<?php PYS()->render_switcher_input('edd_initiate_checkout_enabled');?>Track the Checkout Page <?php cardCollapseBtn(); ?>
</div>
<div class="card-body">
<?php if ( Facebook()->enabled() ) : ?>
<div class="row">
<div class="col">
@@ -463,7 +476,7 @@ e&utm_campaign=pro-feature' ); ?>
</div>
</div>
<?php endif; ?>
<?php if ( Pinterest()->enabled() ) : ?>
<div class="row">
<div class="col">
@@ -515,7 +528,7 @@ e&utm_campaign=pro-feature' ); ?>
</div>
</div>
</div>
<?php if ( GA()->enabled() ) : ?>
<div class="row mb-1">
<div class="col">
@@ -549,7 +562,7 @@ e&utm_campaign=pro-feature' ); ?>
<?php PYS()->render_switcher_input('edd_add_to_cart_enabled');?>Track add to cart <?php cardCollapseBtn(); ?>
</div>
<div class="card-body">
<?php if ( Facebook()->enabled() ) : ?>
<div class="row">
<div class="col">
@@ -558,7 +571,7 @@ e&utm_campaign=pro-feature' ); ?>
</div>
</div>
<?php endif; ?>
<?php if ( Pinterest()->enabled() ) : ?>
<div class="row">
<div class="col">
@@ -610,7 +623,7 @@ e&utm_campaign=pro-feature' ); ?>
</div>
</div>
</div>
<?php if ( GA()->enabled() ) : ?>
<div class="row mb-1">
<div class="col">
@@ -644,7 +657,7 @@ e&utm_campaign=pro-feature' ); ?>
<?php PYS()->render_switcher_input('edd_view_content_enabled');?>Track product pages <?php cardCollapseBtn(); ?>
</div>
<div class="card-body">
<?php if ( Facebook()->enabled() ) : ?>
<div class="row">
<div class="col">
@@ -653,7 +666,7 @@ e&utm_campaign=pro-feature' ); ?>
</div>
</div>
<?php endif; ?>
<?php if ( Pinterest()->enabled() ) : ?>
<div class="row">
<div class="col">
@@ -712,7 +725,7 @@ e&utm_campaign=pro-feature' ); ?>
</div>
</div>
</div>
<?php if ( GA()->enabled() ) : ?>
<div class="row mb-1">
<div class="col">
@@ -746,7 +759,7 @@ e&utm_campaign=pro-feature' ); ?>
<?php PYS()->render_switcher_input('edd_view_category_enabled');?>Track product category pages <?php cardCollapseBtn(); ?>
</div>
<div class="card-body">
<?php if ( Facebook()->enabled() ) : ?>
<div class="row">
<div class="col">
@@ -755,7 +768,7 @@ e&utm_campaign=pro-feature' ); ?>
</div>
</div>
<?php endif; ?>
<?php if ( GA()->enabled() ) : ?>
<div class="row mb-1">
<div class="col">
@@ -779,7 +792,7 @@ e&utm_campaign=pro-feature' ); ?>
</div>
</div>
<?php renderDummyGoogleAdsConversionLabelInputs(); ?>
<?php if ( Pinterest()->enabled() ) : ?>
<div class="row">
<div class="col">
@@ -851,7 +864,7 @@ e&utm_campaign=pro-feature' ); ?>
<h4 class="switcher-label">Enable on Bing</h4>
</div>
</div>
<div class="row mt-3">
<div class="col col-offset-left form-inline">
<label>Fire this event when the client has at least </label>
@@ -908,7 +921,7 @@ e&utm_campaign=pro-feature' ); ?>
<h4 class="switcher-label">Enable on Bing</h4>
</div>
</div>
<div class="row mt-3">
<div class="col col-offset-left form-inline">
<label>Fire this event when the client has at least</label>
@@ -966,7 +979,7 @@ e&utm_campaign=pro-feature' ); ?>
<h4 class="switcher-label">Enable on Bing</h4>
</div>
</div>
<div class="row mt-3">
<div class="col col-offset-left form-inline">
<label>Fire this event when the client has LTV at least</label>
@@ -1049,7 +1062,7 @@ e&utm_campaign=pro-feature' ); ?>
<p>All events get the following parameters for all the tags: <i>page_title, post_type, post_id, event_URL, user_role, plugin, landing_page (pro), event_time (pro), event_day (pro), event_month (pro), traffic_source (pro), UTMs (pro).</i></p>
<p>The Purchase event will have the following extra-parameters: <i>category_name, num_items, tags, total (pro), transactions_count (pro), tax (pro), predicted_ltv (pro), average_order (pro), coupon_used (pro), coupon_code (pro), shipping (pro), shipping_cost (pro).</i></p>
<p>The Meta Pixel (formerly Facebook Pixel) events are Dynamic Ads ready.</p>
<p>The Google Analytics events track the data Enhanced Ecommerce or Monetization (GA4).</p>
<p>The Google Analytics events track Monetization data (GA4).</p>
<p>The Pinterest events have the required data for Dynamic Remarketing.</p>
</div>
</div>
@@ -1154,4 +1167,4 @@ e&utm_campaign=pro-feature' ); ?>
<div class="col-4">
<button class="btn btn-block btn-save">Save Settings</button>
</div>
</div>
</div>