-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move plugin name to TinectMatomo
- Loading branch information
Showing
14 changed files
with
94 additions
and
88 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
jinya-matomo.js | ||
tinect-matomo.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
# Matomo Shopware 6 Plugin | ||
|
||
This plugin for Shopware 6 connects your shop to the Open Source and self-hostable Matomo platform. | ||
The plugin is based as fork from [Jinya-CMS/matomo-shopware-plugin](https://github.com/Jinya-CMS/matomo-shopware-plugin). | ||
|
||
## Features | ||
|
||
* Proxied tracking to prevent blocking | ||
* Track page views | ||
* Track product views | ||
* Track orders | ||
|
||
## Status | ||
|
||
This is in an early development state. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
{ | ||
"name": "jinya/matomo-shopware-plugin", | ||
"version": "1.0.6", | ||
"description": "Matomo plugin for shopware 6", | ||
"type": "shopware-platform-plugin", | ||
"license": "MIT", | ||
"autoload": { | ||
"psr-4": { | ||
"JinyaMatomo\\": "src/" | ||
"name": "tinect/matomo", | ||
"version": "2.0.0", | ||
"description": "Matomo plugin for shopware 6", | ||
"type": "shopware-platform-plugin", | ||
"license": "MIT", | ||
"autoload": { | ||
"psr-4": { | ||
"Tinect\\Matomo\\": "src/" | ||
} | ||
}, | ||
"require": { | ||
"php": "~8.1||~8.2||~8.3", | ||
"shopware/core": "~6.4.11" | ||
}, | ||
"conflict": { | ||
"jinya/matomo-shopware-plugin": "*" | ||
}, | ||
"extra": { | ||
"shopware-plugin-class": "Tinect\\Matomo\\TinectMatomo", | ||
"label": { | ||
"de-DE": "Matomo Tracking", | ||
"en-GB": "Matomo Tracking" | ||
} | ||
} | ||
}, | ||
"require": { | ||
"shopware/core": "~6.4.0" | ||
}, | ||
"extra": { | ||
"shopware-plugin-class": "JinyaMatomo\\JinyaMatomo", | ||
"label": { | ||
"de-DE": "Matomo Tracking", | ||
"en-GB": "Matomo Tracking" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Tinect\Matomo\Migration; | ||
|
||
use Doctrine\DBAL\Connection; | ||
use Shopware\Core\Framework\Migration\MigrationStep; | ||
|
||
class Migration1710796428MigrateJinyaConfig extends MigrationStep | ||
{ | ||
public function getCreationTimestamp(): int | ||
{ | ||
return 1710796428; | ||
} | ||
|
||
public function update(Connection $connection): void | ||
{ | ||
$existingConfig = $connection->fetchAllAssociative('SELECT * FROM system_config WHERE configuration_key LIKE "JinyaMatomo.config.%"'); | ||
|
||
if (count($existingConfig) === 0) { | ||
return; | ||
} | ||
|
||
$connection->executeStatement('DELETE FROM system_config WHERE configuration_key LIKE "TinectMatomo.config.%"'); | ||
$connection->executeStatement('UPDATE system_config SET configuration_key = REPLACE(configuration_key, \'JinyaMatomo.config.\', \'TinectMatomo.config.\') WHERE configuration_key LIKE "JinyaMatomo.config.%"'); | ||
} | ||
|
||
public function updateDestructive(Connection $connection): void | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace JinyaMatomo; | ||
namespace Tinect\Matomo; | ||
|
||
use Shopware\Core\Framework\Plugin; | ||
|
||
class JinyaMatomo extends Plugin | ||
class TinectMatomo extends Plugin | ||
{ | ||
} |