Skip to content

Commit

Permalink
chore: prepare for 3.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
angelablake committed Aug 23, 2023
1 parent ca4d8d7 commit 468e7d2
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 20 deletions.
4 changes: 2 additions & 2 deletions give-google-analytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Give - Google Analytics Donation Tracking
* Plugin URI: https://givewp.com/addons/google-analytics/
* Description: Add Google Analytics Enhanced eCommerce tracking functionality to Give to track donations.
* Version: 2.1.0
* Version: 3.0
* Author: GiveWP
* Author URI: https://givewp.com
* Requires at least: 5.0
Expand All @@ -20,7 +20,7 @@

// Plugin version.
if ( ! defined( 'GIVE_GOOGLE_ANALYTICS_VERSION' ) ) {
define( 'GIVE_GOOGLE_ANALYTICS_VERSION', '2.1.0' );
define( 'GIVE_GOOGLE_ANALYTICS_VERSION', '3.0' );
}

// Min. Give version.
Expand Down
7 changes: 5 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: givewp
Tags: donation analytics, donation, ecommerce, e-commerce, fundraising, fundraiser
Requires at least: 5.0
Tested up to: 6.1
Stable tag: 2.1.0
Tested up to: 6.3
Stable tag: 3.0
Requires PHP: 7.0
Requires Give: 2.23.0
License: GPLv3
Expand Down Expand Up @@ -38,6 +38,9 @@ The manual installation method involves downloading our donation plugin and uplo
Automatic updates should work like a charm; as always though, ensure you backup your site just in case.

== Changelog ==
= 3.0: August 23rd, 2023 =
* Feature: Added Google Analytics 4 tracking on forms created using the Visual Donation Forms Builder

= 2.1.0: October 20th, 2022 =
* Enhancement: Under the hood improvements to how recurring donations are handled

Expand Down
2 changes: 1 addition & 1 deletion src/Donations/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function register()
}

/**
* @unreleased Add frontend events for v3 forms.
* @since 3.0 Add frontend events for v3 forms.
* @since 2.0.0
* @return void
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ConvertGoogleAnalyticOptionsToField
private $settingRepository;

/**
* @unreleased
* @since 3.0
*/
public function __construct(SettingRepository $settingRepository)
{
Expand All @@ -25,7 +25,7 @@ public function __construct(SettingRepository $settingRepository)

/**
* Add Google Analytic field to the form.
* @unreleased
* @since 3.0
*/
public function __invoke(DonationFormNode $form)
{
Expand All @@ -46,7 +46,7 @@ public function __invoke(DonationFormNode $form)
}

/**
* @unreleased
* @since 3.0
*/
private function setGlobalAttributes(GoogleAnalytics $field)
{
Expand All @@ -58,7 +58,7 @@ private function setGlobalAttributes(GoogleAnalytics $field)
}

/**
* @unreleased
* @since 3.0
*/
private function canPrintScript(): bool
{
Expand Down
12 changes: 6 additions & 6 deletions src/FormExtension/DonationForm/Fields/GoogleAnalytics.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class GoogleAnalytics extends Element
const TYPE = 'googleAnalytics';

/**
* @unreleased
* @since 3.0
*/
public function trackingId(string|null $trackingId): GoogleAnalytics
{
Expand All @@ -26,7 +26,7 @@ public function trackingId(string|null $trackingId): GoogleAnalytics
}

/**
* @unreleased
* @since 3.0
*/
public function affiliation(string|null $affiliation): GoogleAnalytics
{
Expand All @@ -36,7 +36,7 @@ public function affiliation(string|null $affiliation): GoogleAnalytics
}

/**
* @unreleased
* @since 3.0
*/
public function trackCategory(string|null $trackCategory): GoogleAnalytics
{
Expand All @@ -46,7 +46,7 @@ public function trackCategory(string|null $trackCategory): GoogleAnalytics
}

/**
* @unreleased
* @since 3.0
*/
public function trackListName(string|null $trackListName): GoogleAnalytics
{
Expand All @@ -56,7 +56,7 @@ public function trackListName(string|null $trackListName): GoogleAnalytics
}

/**
* @unreleased
* @since 3.0
*/
public function trackingMode(string|null $trackingMode): GoogleAnalytics
{
Expand All @@ -66,7 +66,7 @@ public function trackingMode(string|null $trackingMode): GoogleAnalytics
}

/**
* @unreleased
* @since 3.0
*/
public function administrator(string|null $administrator): GoogleAnalytics
{
Expand Down
4 changes: 2 additions & 2 deletions src/FormExtension/Hooks/DonationFormScriptsEnqueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
/**
* Class DonationFormScriptsEnqueue
*
* @unreleased
* @since 3.0
*/
class DonationFormScriptsEnqueue
{
/**
* Enqueues the Google Analytic donation form extension scripts and styles.
*
* @unreleased
* @since 3.0
* @return void
*/
public function __invoke()
Expand Down
6 changes: 3 additions & 3 deletions src/FormExtension/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
* Class ServiceProvider
*
* @package GiveGoogleAnalytics
* @unreleased
* @since 3.0
*/
class ServiceProvider implements ServiceProviderInterface
{
/**
* @unreleased
* @since 3.0
*/
public function register()
{
}

/**
* @unreleased
* @since 3.0
*/
public function boot()
{
Expand Down

0 comments on commit 468e7d2

Please sign in to comment.