Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d52de98
Include openapi-generator-cli in package.json.
Dan0sz Dec 10, 2025
25a18c7
Update README.md
Dan0sz Dec 10, 2025
1c7ed24
Regenerated API Client.
Dan0sz Dec 10, 2025
8406aa7
Added: get_tracker_id() to Client.
Dan0sz Dec 10, 2025
0bbae81
Fixed regeneration errors in API client.
Dan0sz Dec 10, 2025
d19b690
Refactored Client wrapper to use new endpoints in API client.
Dan0sz Dec 10, 2025
cf2f136
Improved: store tracker ID in options table.
Dan0sz Dec 11, 2025
fda6f95
Improved: file_alias as a proxy resource is no longer needed.
Dan0sz Dec 11, 2025
4712b50
Improved: rewrite provisioning logic to accomodate file downloads, ha…
Dan0sz Dec 11, 2025
e22e319
Refactored Author and Categories (pageview-props) logic to new JS sta…
Dan0sz Dec 11, 2025
c544874
Change track() back to plausible().
Dan0sz Dec 12, 2025
595e470
Typo.
Dan0sz Dec 12, 2025
dffbadc
Fixed: Start Checkout event was tracked on Thank You-page as well.
Dan0sz Dec 12, 2025
f61a42f
Typo.
Dan0sz Dec 12, 2025
f503da0
Re-factored Logged In User Status.
Dan0sz Dec 12, 2025
96ab580
Custom Events is on by default, so removed the option and logic.
Dan0sz Dec 17, 2025
087f103
Moved download_file logic to Cron-class.
Dan0sz Dec 17, 2025
ba6aa87
Moved Hash-based-routing out of Advanced Options and removed Advanced…
Dan0sz Dec 17, 2025
829345d
Removed hacks to track addToCart events on product pages, because Fet…
Dan0sz Dec 17, 2025
f2a1b9b
Some re-factors and make sure correct endpoint is set when Proxy is e…
Dan0sz Dec 17, 2025
c43d999
Improved: Added "enum" classes for caps and enhanced measurements to …
Dan0sz Dec 18, 2025
d6cc0a9
Small improvement to Capabilities class.
Dan0sz Dec 18, 2025
7b1f09c
Fixed: Caps class was defined twice in Client class.
Dan0sz Dec 18, 2025
9754cac
Provisioning already takes care of this.
Dan0sz Dec 18, 2025
7254a57
Re-factored exclusions option to use transformRequest.
Dan0sz Dec 18, 2025
448b5a9
Typo.
Dan0sz Dec 19, 2025
c1d4aa8
Improved: Actions/Filters classes are separated into more descriptive…
Dan0sz Dec 19, 2025
eb35122
Make sure tracker configuration matches our configuration after update.
Dan0sz Dec 19, 2025
f652796
Fixed: migration script only has to run once.
Dan0sz Dec 19, 2025
9b276d2
Fixed packages.
Dan0sz Dec 19, 2025
9cface4
Use node 20.
Dan0sz Dec 19, 2025
46b6839
Use node 20.
Dan0sz Dec 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: '16'
node-version: '20'

- name: Install npm dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

- uses: actions/setup-node@v1
with:
node-version: '16'
node-version: '20'

- name: Install npm dependencies
run: |
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ etc. to a minimum. But, since
this is a WordPress plugin, some manual modifications need to be done to make sure it doesn't conflict with other
plugins:

> [!IMPORTANT]
> You need to have Java and [OpenAPI Generator](https://openapi-generator.tech/docs/installation/) installed
> globally.

- (Re)generate the PHP client using the following command (trigger it from the Plugin's root dir as output will be saved
to `src/Client`):
`openapi-generator-cli generate -i https://plausible.io/api/plugins/spec/openapi -g php -o src/Client --additional-properties=identifierNamingConvention=snake_case,invokerPackage="Plausible\\Analytics\\WP\\Client" --global-property=apis,models,supportingFiles,modelDocs=false,modelTests=false,apiDocs=false,apiTests=false`
Expand All @@ -141,8 +145,7 @@ plugins:
sure Mozart is installed
globally)
- In the `src/Client/lib` directory, replace all occurrences of ` GuzzleHttp` (mind the space) with
` Plausible\Analytics\WP\Client\Lib\GuzzleHttp` (
again, mind the space at the beginning)
` Plausible\Analytics\WP\Client\Lib\GuzzleHttp` (again, mind the space at the beginning)
- In the same directory, replace all occurrences of ` \GuzzleHttp` (mind the space and backslash)
with ` \Plausible\Analytics\WP\Client\Lib\GuzzleHttp`.
- If escaping characters doesn't work in your bash instance, you might also have to replace `PlausibleAnalyticsWPClient`
Expand Down
6,516 changes: 2,791 additions & 3,725 deletions npm-shrinkwrap.json

Large diffs are not rendered by default.

33,565 changes: 0 additions & 33,565 deletions package-lock.json

This file was deleted.

90 changes: 41 additions & 49 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
"production": "cross-env NODE_ENV=production webpack",
"build": "npm run production",
"watch": "cross-env webpack --watch",
"lint": "npm run lint:js & npm run lint:css & npm run lint:php",
"lint:js": "eslint assets/src/**/*.js",
"lint:js-fix": "eslint assets/src/**/*.js --fix",
"lint:php": "./vendor/bin/phpcs --colors --standard=phpcs.ruleset.xml",
"lint:php:fix": "./vendor/bin/phpcbf --colors --standard=phpcs.ruleset.xml",
"lint:textdomain": "node ./wp-textdomain.js",
Expand All @@ -29,51 +26,46 @@
},
"homepage": "https://github.com/plausible/wordpress#readme",
"devDependencies": {
"@babel/core": "^7.18.13",
"@babel/eslint-parser": "^7.18.9",
"@babel/plugin-syntax-jsx": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.18.10",
"@babel/plugin-transform-runtime": "^7.18.10",
"@babel/preset-env": "^7.22.20",
"@babel/runtime": "^7.18.9",
"@es-joy/jsdoccomment": "0.31.0",
"@prettier/plugin-php": "^0.18.9",
"@tailwindcss/forms": "^0.5.7",
"@wordpress/eslint-plugin": "^12.5.0",
"@wordpress/stylelint-config": "^20.0.2",
"autoprefixer": "^10.4.16",
"babel-loader": "^8.2.5",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.2.2",
"cssnano": "^5.1.13",
"cssnano-preset-advanced": "^5.3.8",
"eslint": "^8.23.0",
"eslint-plugin-jsdoc": "^39.3.3",
"eslint-plugin-react": "^7.30.1",
"expose-loader": "^4.0.0",
"file-loader": "^6.2.0",
"husky": "^4.3.5",
"imagemin-webpack-plugin": "*",
"lint-staged": "^9.5.0",
"mini-css-extract-plugin": "^1.6.2",
"postcss": "^8.4.31",
"postcss-loader": "^7.3.3",
"prettier": "^2.7.1",
"script-loader": "^0.7.2",
"style-loader": "^3.3.1",
"stylelint": "^14.11.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard-scss": "^4.0.0",
"stylelint-prettier": "^2.0.0",
"stylelint-scss": "^4.2.0",
"tailwindcss": "^3.3.5",
"webpack": "^5.88.2",
"webpack-cli": "^4.10.0",
"webpack-rtl-plugin": "^2.0.0",
"wp-pot": "^1.10.2",
"wp-textdomain": "^1.0.1"
"@babel/core": "^7.18.13",
"@babel/plugin-syntax-jsx": "^7.18.6",
"@babel/plugin-transform-react-jsx": "^7.18.10",
"@babel/plugin-transform-runtime": "^7.18.10",
"@babel/preset-env": "^7.22.20",
"@babel/runtime": "^7.18.9",
"@openapitools/openapi-generator-cli": "*",
"@prettier/plugin-php": "^0.18.9",
"@tailwindcss/forms": "^0.5.7",
"@wordpress/stylelint-config": "^20.0.2",
"autoprefixer": "^10.4.16",
"babel-loader": "^8.2.5",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^11.0.0",
"cross-env": "^7.0.3",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.2.2",
"cssnano": "^5.1.13",
"cssnano-preset-advanced": "^5.3.8",
"expose-loader": "^4.0.0",
"file-loader": "^6.2.0",
"husky": "^4.3.5",
"imagemin-webpack-plugin": "*",
"lint-staged": "^9.5.0",
"mini-css-extract-plugin": "^1.6.2",
"postcss": "^8.4.31",
"postcss-loader": "^7.3.3",
"prettier": "^2.7.1",
"script-loader": "^0.7.2",
"style-loader": "^3.3.1",
"stylelint": "^14.11.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard-scss": "^4.0.0",
"stylelint-prettier": "^2.0.0",
"stylelint-scss": "^4.2.0",
"tailwindcss": "^3.3.5",
"webpack": "^5.88.2",
"webpack-cli": "^4.10.0",
"webpack-rtl-plugin": "^2.0.0",
"wp-pot": "^1.10.2",
"wp-textdomain": "^1.0.1"
}
}
Loading
Loading