Skip to content

Commit e2fe38e

Browse files
authored
Merge branch '5.x-dev' into PG-3437-fix-proxy-for-ga4
2 parents 587cae5 + c9992f2 commit e2fe38e

File tree

15 files changed

+75
-81
lines changed

15 files changed

+75
-81
lines changed

.github/workflows/matomo-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Action for running tests
22
# This file has been automatically created.
33
# To recreate it you can run this command
4-
# ./console generate:test-action --plugin="GoogleAnalyticsImporter" --php-versions="7.2,8.3" --dependent-plugins="matomo-org/plugin-MarketingCampaignsReporting innocraft/plugin-Funnels" --schedule-cron="10 3 * * 6"
4+
# ./console generate:test-action --plugin="GoogleAnalyticsImporter" --php-versions="7.2,8.4" --dependent-plugins="matomo-org/plugin-MarketingCampaignsReporting innocraft/plugin-Funnels" --schedule-cron="10 3 * * 6"
55

66
name: Plugin GoogleAnalyticsImporter Tests
77

@@ -37,7 +37,7 @@ jobs:
3737
strategy:
3838
fail-fast: false
3939
matrix:
40-
php: [ '7.2', '8.3' ]
40+
php: [ '7.2', '8.4' ]
4141
target: ['minimum_required_matomo', 'maximum_supported_matomo']
4242
steps:
4343
- uses: actions/checkout@v3

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Changelog
22

3+
# 5.0.22 - 2024-12-16
4+
- Removed GA3 sunset note and added no hits note for Cloud
5+
36
# 5.0.21 - 2024-09-02
47
- Fixed import not running continuously for future dates
58

GoogleAnalyticsImporter.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ public function getClientSideTranslationKeys(&$translationKeys)
208208
$translationKeys[] = 'GoogleAnalyticsImporter_OauthFailedMessage';
209209
$translationKeys[] = 'GoogleAnalyticsImporter_ConfigureImportNotificationMessage';
210210
$translationKeys[] = 'GoogleAnalyticsImporter_ConfigureTheImporterHelp';
211-
$translationKeys[] = 'GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate';
212211
$translationKeys[] = 'GoogleAnalyticsImporter_ConfigureTheImporterLabel1';
213212
$translationKeys[] = 'GoogleAnalyticsImporter_ConfigureTheImporterLabel2';
214213
$translationKeys[] = 'GoogleAnalyticsImporter_ConfigureTheImporterLabel3';
@@ -446,14 +445,16 @@ public static function getConfigureConnectProps($nonce)
446445
$jwt = ConnectHelper::buildOAuthStateJwt(SettingsPiwik::getPiwikInstanceId(), ConnectAccounts::INITIATED_BY_GA);
447446
}
448447
$googleAuthUrl = '';
448+
$additionalHelpText = '';
449449
if ($isConnectAccountsActivated) {
450450
$googleAuthUrl = $authBaseUrl . Http::buildQuery(['module' => 'ConnectAccounts', 'action' => 'initiateOauth', 'state' => $jwt, 'strategy' => GoogleConnect::getStrategyName()]);
451+
$additionalHelpText = Piwik::translate('GoogleAnalyticsImporter_NoteImportNotCountedAsHit', ['<strong>', '</strong>']);
451452
}
452453
$idSite = Request::fromRequest()->getIntegerParameter('idSite', 0);
453454
// If for some reason the idSite query parameter isn't set, look up the default site ID
454455
if ($idSite < 1) {
455456
$idSite = StaticContainer::get(UserPreferences::class)->getDefaultWebsiteId();
456457
}
457-
return ['isConnectAccountsActivated' => $isConnectAccountsActivated, 'primaryText' => Piwik::translate('GoogleAnalyticsImporter_ConfigureTheImporterLabel1'), 'radioOptions' => !$isConnectAccountsActivated ? [] : ['connectAccounts' => Piwik::translate('ConnectAccounts_OptionQuickConnectWithGa'), 'manual' => Piwik::translate('ConnectAccounts_OptionAdvancedConnectWithGa')], 'googleAuthUrl' => $googleAuthUrl, 'manualConfigText' => Piwik::translate('GoogleAnalyticsImporter_ConfigureTheImporterLabel2') . '<br />' . Piwik::translate('GoogleAnalyticsImporter_ConfigureTheImporterLabel3', ['<a href="' . Url::addCampaignParametersToMatomoLink('https://matomo.org/faq/general/set-up-google-analytics-import/') . '" rel="noreferrer noopener" target="_blank">', '</a>']), 'manualConfigNonce' => $nonce, 'manualActionUrl' => Url::getCurrentUrlWithoutQueryString() . '?' . Http::buildQuery(['module' => 'GoogleAnalyticsImporter', 'action' => 'configureClient', 'idSite' => $idSite]), 'connectAccountsUrl' => $googleAuthUrl, 'connectAccountsBtnText' => Piwik::translate('ConnectAccounts_ConnectWithGoogleText'), 'additionalHelpText' => Piwik::translate('GoogleAnalyticsImporter_ConfigureTheImporterHelpNewDate', ['<strong>', '</strong>'])];
458+
return ['isConnectAccountsActivated' => $isConnectAccountsActivated, 'primaryText' => Piwik::translate('GoogleAnalyticsImporter_ConfigureTheImporterLabel1'), 'radioOptions' => !$isConnectAccountsActivated ? [] : ['connectAccounts' => Piwik::translate('ConnectAccounts_OptionQuickConnectWithGa'), 'manual' => Piwik::translate('ConnectAccounts_OptionAdvancedConnectWithGa')], 'googleAuthUrl' => $googleAuthUrl, 'manualConfigText' => Piwik::translate('GoogleAnalyticsImporter_ConfigureTheImporterLabel2') . '<br />' . Piwik::translate('GoogleAnalyticsImporter_ConfigureTheImporterLabel3', ['<a href="' . Url::addCampaignParametersToMatomoLink('https://matomo.org/faq/general/set-up-google-analytics-import/') . '" rel="noreferrer noopener" target="_blank">', '</a>']), 'manualConfigNonce' => $nonce, 'manualActionUrl' => Url::getCurrentUrlWithoutQueryString() . '?' . Http::buildQuery(['module' => 'GoogleAnalyticsImporter', 'action' => 'configureClient', 'idSite' => $idSite]), 'connectAccountsUrl' => $googleAuthUrl, 'connectAccountsBtnText' => Piwik::translate('ConnectAccounts_ConnectWithGoogleText'), 'additionalHelpText' => $additionalHelpText];
458459
}
459460
}

lang/de.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"GAImportNoDataScreenStep04": "Navigieren Sie zur Verwaltungsseite %1$sGoogle Analytics Import%2$s. %3$sErfahren Sie mehr%4$s.",
5151
"GAImportNoDataScreenStep05": "Wählen Sie den Importtyp.",
5252
"GAImportNoDataScreenStep06": "Füllen Sie das Formular \"Import planen\" aus.",
53+
"GAImportNoDataScreenStep06GA4": "Füllen Sie das Formular für den Zeitplan eines Imports für Google Analytics 4 (GA4) aus.",
5354
"GAImportNoDataScreenStep07": "Klicken Sie auf \"%1$s\".",
5455
"GAImportNoDataScreenStep07Note": "%1$sHinweis:%2$s Sobald Sie auf \"%3$s\" klicken, erstellt Matomo automatisch eine neue Matomo-Website für jede ausgewählte Property.",
5556
"GAImportNoDataScreenStep08": "Das Importieren von Daten nimmt Zeit in Anspruch. %1$sKlicken Sie hier, um den Status Ihres Datenimports zu überwachen%2$s.",
@@ -94,6 +95,7 @@
9495
"NohupExecutableMissing": "Matomo kann die nohup Ausführung nicht finden. Der Google Analytics Importer verwendet nohup um den Importprozess auszuführen, also wird er selbständig weiterfahren, nachdem ein Web Request geendet hat. Diese Ausführung muss für PHP verfügbar und aktiviert sein, damit der Importer funktionieren kann.",
9596
"None": "Keine",
9697
"NotSetInGA": "In Google Analytics nicht gesetzt",
98+
"NoteImportNotCountedAsHit": "%1$sHinweis:%2$s Durch den Google Analytics Import importierte Daten zählen nicht zu Ihrem Hits-Kontingent.",
9799
"OauthFailedMessage": "Während des Autorisierungsvorgangs für den Import Ihrer GA-Berichte ist ein Problem aufgetreten. Um es erneut zu versuchen, klicken Sie bitte auf die untenstehende Schaltfläche. Sollte das Problem weiterhin bestehen, kontaktieren Sie bitte unser Support-Team. Es wird Ihnen helfen, das Problem zu lösen und Ihre historischen GA-Daten zu importieren.",
98100
"Optional": "Wahlweise",
99101
"PendingGAImportReportNotificationNoData": "Wir importieren immer noch von Google Analytics, aber Sie sollten in der Lage sein, die aktuellsten Daten zu sehen. Sie werden die restlichen Daten in ein paar Tagen sehen.",

lang/el.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
"NohupExecutableMissing": "Το Matomo δεν μπορεί να βρει το εκτελέσιμο nohup. Το πρόγραμμα Εισαγωγής για το Google Analytics χρησιμοποιεί το nohup για να εκτελεί τη διαδικασία εισαγωγής ώστε αυτή να συνεχίσει να εκτελείται μετά το πέρας εξυπηρέτησης μιας αίτησης ιστού. Το εκτελέσιμο θα πρέπει να υπάρχει και να είναι προσπελάσιμο από την PHP για να δουλέψει το πρόγραμμα εισαγωγής.",
9696
"None": "Κανένα",
9797
"NotSetInGA": "Δεν έχει οριστεί στο Google Analytics",
98+
"NoteImportNotCountedAsHit": "%1$sΣημείωση:%2$sΤα δεδομένα που εισαγάγονται από το Google Analytics δεν μετρούν στους στόχους επισκέψεων.",
9899
"OauthFailedMessage": "Συνέβη ένα σφάλμα στην διαδικασία εξουσιοδότησης για την εισαγωγή των αναφορών GA. Για να δοκιμάσετε ξανά, πατήστε στο παρακάτω πλήκτρο. Αν το πρόβλημα συνεχίζει, επικοινωνήστε με την ομάδα μας βοήθειας. Θα σας βοηθήσουν στην επίλυση του θέματος και στην εισαγωγή των ιστορικών δεδομένων του GA.",
99100
"Optional": "Προαιρετικά",
100101
"PendingGAImportReportNotification": "Συνεχίζεται η εισαγωγή από το Google Analytics, αλλά θα πρέπει να δείτε τα πιο πρόσφατα δεδομένα σας. Θα μπορείτε να δείτε όλα τα δεδομένα σας σε λίγες ημέρες.",

lang/en.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
"GoogleAnalyticsImporter": {
33
"AdminMenuTitle": "Google Analytics Import",
44
"ConfigureTheImporter": "Configure the Importer",
5-
"ConfigureTheImporterHelp": "%1$sNote:%2$s If you don't import your data, your Google Analytics 3 data will be permanently lost after December 31st, 2023.",
6-
"ConfigureTheImporterHelpNewDate": "%1$sNote:%2$s If you don't import your data, your Google Analytics 3 data will be permanently lost after June 30th, 2024.",
75
"ConfigureTheImporterLabel1": "Import your Google Analytics properties and reporting data to create a backup and analyse them using Matomo’s powerful analytics tools. Once you connect the importer, select which Google Analytics properties to import and Matomo will automatically create a new website for each one.",
86
"ConfigureTheImporterLabel2": "In order to import your data from Google Analytics, Matomo need access to this data.",
97
"ConfigureTheImporterLabel3": "To start, %1$sfollow our instructions to retrieve your OAuth Client configuration%2$s. Then upload the client configuration file using the button below.",
@@ -158,6 +156,7 @@
158156
"StreamIdFilterHelpText": "The Stream ID for which you want to import data. %1$sLearn more.%2$s %3$sNote:%4$s Leave this field blank to import data from all streams.",
159157
"RecommendationTitle": "Import Google Analytics data to Matomo (recommended for you)",
160158
"RecommendationText": "We have detected Google Analytics on your site, so you can set up Matomo by importing your Google Analytics data.",
161-
"RecommendationButton": "Import data"
159+
"RecommendationButton": "Import data",
160+
"NoteImportNotCountedAsHit": "%1$sNote:%2$s Data imported through the Google Analytics Import does not count towards your hits quota."
162161
}
163162
}

lang/ga.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
"NohupExecutableMissing": "Ní féidir le Matomo an inrite nohup a aimsiú. Úsáideann an Iompórtálaí Google Analytics nohup chun an próiseas iompórtála a fhorghníomhú ionas go leanfaidh sé ar aghaidh leis féin tar éis deireadh a chur le hiarratas gréasáin. Ní mór an inrite seo a bheith i láthair agus inrochtana ó PHP chun go bhfeidhmeoidh an t-allmhaireoir.",
9696
"None": "Ceann ar bith",
9797
"NotSetInGA": "Níl sé socraithe in Google Analytics",
98+
"NoteImportNotCountedAsHit": "%1$sNóta: %2$s Ní áirítear sonraí a iompórtáladh trí Iompórtáil Google Analytics i dtreo do chuóta amais.",
9899
"OauthFailedMessage": "Thángamar ar shaincheist le linn an phróisis údaraithe chun do thuarascálacha CLG a iompórtáil. Chun triail eile a bhaint as, cliceáil ar an gcnaipe thíos. Má leanann an fhadhb ar aghaidh, téigh i dteagmháil lenár bhfoireann tacaíochta chun cúnamh a fháil. Cabhróidh siad leat an cheist a réiteach agus do shonraí stairiúla CLG a iompórtáil.",
99100
"Optional": "Roghnach",
100101
"PendingGAImportReportNotificationNoData": "Táimid fós ag iompórtáil ó Google Analytics ach ba chóir duit a bheith in ann do chuid sonraí is déanaí a fheiceáil. Beidh tú in ann do chuid sonraí go léir a fheiceáil laistigh de chúpla lá.",

lang/pt-br.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"GAImportNoDataScreenStep04": "Navegue até a %1$spágina de administração de importação do Google Analytics%2$s. %3$sSaiba mais%4$s.",
5151
"GAImportNoDataScreenStep05": "Selecione o tipo de importação.",
5252
"GAImportNoDataScreenStep06": "Preencha o formulário Agendar uma Importação.",
53+
"GAImportNoDataScreenStep06GA4": "Preencha o formulário Agendar uma importação para Google Analytics 4 (GA4).",
5354
"GAImportNoDataScreenStep07": "Clique em \"%1$s\".",
5455
"GAImportNoDataScreenStep07Note": "%1$sObservação:%2$s Depois de clicar em \"%3$s\", o Matomo criará automaticamente um novo site do Matomo para cada propriedade selecionada.",
5556
"GAImportNoDataScreenStep08": "A importação de dados leva tempo, %1$sclique aqui para monitorar o status da importação de dados%2$s.",

lang/sq.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"ConfigureImportNotificationMessage": "Mos humbni mundësinë për prirje tuajat historike të çmuara! %1$sImportoni që tani të dhënat tuaja Google Analytics për %2$s%3$s platformën tuaj Matomo.",
2020
"ConfigureTheImporter": "Formësoni Importuesin",
2121
"ConfigureTheImporterHelp": "%1$sShënim:%2$s Nëse s’importoni të dhënat tuaja, të dhënat tuaja Google Analytics 3 do të humbin përgjithmonë, pas 31 dhjetorit të 2023-shit.",
22-
"ConfigureTheImporterHelpNewDate": "%1$sShënim:%2$s Nëse s’importoni të dhënat tuaja, të dhënat tuaja Google Analytics 3 do të humbin përgjithmonë, pas 30 qershorit 2024-s.",
22+
"ConfigureTheImporterHelpNewDate": "%1$sShënim:%2$s Nëse s’importoni të dhënat tuaja, të dhënat tuaja Google Analytics 3 do të humbin përgjithmonë, pas 30 qershorit 2024-s.",
2323
"ConfigureTheImporterLabel1": "Importoni vetitë tuaja Google Analytics dhe të dhëna raportimesh, për të krijuar një kopjeruajtje dhe analizuar ato duke përdorur mjete të fuqishme analizash të Matomo-s. Pasi të lidhni importuesin tuaj, përzgjidhni cilat veti Google Analytics të importohen dhe Matomo do të krijojë automatikisht një sajt të ri për secilën.",
2424
"ConfigureTheImporterLabel2": "Që të importoni të dhënat tuaja nga Google Analytics, Matomo ka nevojë të hyjë në këto të dhëna.",
2525
"ConfigureTheImporterLabel3": "Për t’ia filluar, %1$sndiqni udhëzimet tona për të marrë formësimin e Klientit tuaj OAuth%2$s. Mandej ngarkojeni kartelën e formësimit të klientit duke përdorur butonin më poshtë.",
@@ -50,6 +50,7 @@
5050
"GAImportNoDataScreenStep04": "Kaloni te %1$sfaqja e përgjegjësit për Google Analytics Import%2$s. %3$sMësoni më tepër%4$s.",
5151
"GAImportNoDataScreenStep05": "Përzgjidhni lloj Importimi.",
5252
"GAImportNoDataScreenStep06": "Plotësoni formularin Planifikoni një Importim.",
53+
"GAImportNoDataScreenStep06GA4": "Plotësoni formularin “Vini në plan një Importim për Google Analytics 4 (GA4)”.",
5354
"GAImportNoDataScreenStep07": "Klikoni mbi “%1$s”.",
5455
"GAImportNoDataScreenStep07Note": "%1$sShënim:%2$s Pasi të klikoni “%3$s”, Matomo-ja do të krijojë automatikisht një sajt të ri Matomo për çdo veti të përzgjedhur.",
5556
"GAImportNoDataScreenStep08": "Importimi i të dhënave ha kohë, %1$sklikoni këtu, që të vëzhgoni gjendjen e importimit të të dhënave tuaja%2$s.",
@@ -85,7 +86,7 @@
8586
"MatomoSite": "Sajt Matomo",
8687
"MaxEndDateHelp": "Data maksimum e përfundimit e lejuar në këtë instalim Matomo është %1$s. Nëse jepni një datë pas kësaj, do të ndryshohet me këtë datë.",
8788
"MissingClientConfiguration": "Formësim klienti që mungon ose i pavlefshëm, ju lutemi, ringarkojeni.",
88-
"NoDataScreenFollowStepComplete": "%1$sUrime!%2$s Formësuat me sukses importimin tuaj të të dhënave Google Analytics. Siç u vu në dukje dhe më herët, këto të dhëna po importohen te një sajt i ri Matomo. Që të verifikoni se të dhënat po impprtohen, vizitoni %3$sfaqen tuaj Google Analytics Import%4$ste rregullimet dhe shihni se akti i importimit po kryhet.",
89+
"NoDataScreenFollowStepComplete": "%1$sUrime!%2$s Formësuat me sukses importimin tuaj të të dhënave Google Analytics. Siç u vu në dukje dhe më herët, këto të dhëna po importohen te një sajt i ri Matomo. Që të verifikoni se të dhënat po importohen, vizitoni %3$sfaqen tuaj Google Analytics Import%4$ste rregullimet dhe shihni se akti i importimit po kryhet.",
8990
"NoDataScreenFollowThisSteps": "Ndiqni këto hapa për ta ujdisur:",
9091
"NoDataScreenIntro": "Importimi i të dhënave tuaja Google Analytics është e lehtë me Matomo-n. Këtë mund ta përdorni për të krijuar një kopjeruajtje të vetive tuaja dhe të të dhënave të raporteve dhe për t’i analizuar duke përdorur Matomo-n.",
9192
"NoDataScreenOptionsDescription": "Mund të zgjidhni një nda dy mundësi: lidhja me llogarinë tuaj Google Analytics është mundësia më e kollajtë dhe funksionon për sajte me trafik të pakët dhe mesatar. Nëse keni shumë sajte, ose sajte me shumë trafik, formësimi i thelluar i Google OAuth do të lejojë migrim më të shpejtë të të dhënave.",
@@ -94,6 +95,7 @@
9495
"NohupExecutableMissing": "Matomo s’mund të gjejë të ekzekutueshmin nohup. Importuesi Google Analytics përdor nohup që të kryejë procesin e importimit, ndaj do të vazhdojë në qejf të vet, pasi të përfundohet një kërkesë web. Ky ekzekutueshëm duhet të jetë i pranishëm dhe i përdorshëm nga PHP-ja, që importuesi të mund të funksionojë.",
9596
"None": "Asnjë",
9697
"NotSetInGA": "E paujdisur te Google Analytics",
98+
"NoteImportNotCountedAsHit": "%1$sShënim:%2$s Të dhëna të importuara përmes Google Analytics Import nuk kanë vlerë për kuotat tuaja të vizitave.",
9799
"OauthFailedMessage": "Hasëm një problem gjatë procesit të autorizimit të importimit të raporteve tuaj GA. Për të riprovuar, ju lutemi, klikoni butonin më poshtë. Nëse problemi vazhdon, ju lutemi, lidhuni me ekipin tonë të asistencës. Ata do t’ju ndihmojnë për zgjidhjen e problemit dhe për të importuar të dhënat tuaja historike GA.",
98100
"Optional": "Opsionale",
99101
"PendingGAImportReportNotificationNoData": "Ende po importojmë nga Google Analytics, por duhet të jeni në gjendje të shihni të dhënat tuaja më të freskëta. Do të jeni në gjendje të shihni krejt të dhënat tuaja brenda pak ditësh.",
@@ -152,7 +154,7 @@
152154
"TimezoneHelp": "Google Analytics disa zona kohore që nuk janë zona kohor të vlefshme në PHP. Nëse sajti juaj përdor një të tillë, mund të duhet të ujdisni dorazi një zonë kohore këtu. Për një listë zonash kohore PHP të vlefshme, shihni %1$skëtë listë%2$s.",
153155
"TodaysDate": "data e sotme",
154156
"Troubleshooting": "Diagnostikim",
155-
"UnsupportedReportInImportRange": "Të dhënat e raportit për këtë periudhë kohore qenë importuar nga Google Analytics, por ky raport nuk ekziston në Google Analytics, ndaj s’ka gjë për të sfaqur këtu.",
157+
"UnsupportedReportInImportRange": "Të dhënat e raportit për këtë periudhë kohore qenë importuar nga Google Analytics, por ky raport nuk ekziston në Google Analytics, ndaj s’ka gjë për të shfaqur këtu.",
156158
"UploadSuccessful": "Ngarkim i suksesshëm!",
157159
"Uploading": "Po ngarkohet…",
158160
"ViewId": "ID Pamjeje Google Analytics",

plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "GoogleAnalyticsImporter",
33
"description": "Import reports from a Google Analytics account into Matomo.",
4-
"version": "5.0.21",
4+
"version": "5.0.22",
55
"theme": false,
66
"require": {
77
"matomo": ">=5.0.0-rc5,<6.0.0-b1"

0 commit comments

Comments
 (0)