Skip to content

Commit 4bbf882

Browse files
authored
Merge pull request #105 from phpbb-extensions/prep-1.2.0
Merge Prep 1.2.0
2 parents 39b7761 + 2137173 commit 4bbf882

67 files changed

Lines changed: 756 additions & 148 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CHANGELOG.md‎

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

3+
## 1.2.0 - 2026-06-20
4+
5+
- Added support for registering Google Analytics with phpBB's Consent Manager extension
6+
- Added support for secure cookies over HTTPS
7+
- Added support for phpBB 4 while retaining phpBB 3.2 and 3.3 compatibility
8+
- Updated links to the Google Analytics documentation
9+
- Removed support for discontinued legacy Universal Analytics (UA)
10+
311
## 1.1.0 - 2025-09-20
412

513
- Added an amendment to the forum privacy policy regarding how Google may collect and/or use user's data.

‎composer.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "phpbb-extension",
44
"description": "A phpBB official extension that allows administrators to easily add Google Analytics to their forums.",
55
"homepage": "https://www.phpbb.com/customise/db/extension/googleanalytics/",
6-
"version": "1.2.0-dev",
6+
"version": "1.2.0",
77
"keywords": ["phpbb", "extension", "google", "analytics"],
88
"license": "GPL-2.0-only",
99
"authors": [

‎language/ar/common.php‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
/**
3+
*
4+
* Google Analytics extension for the phpBB Forum Software package.
5+
*
6+
* @copyright (c) 2026 phpBB Limited <https://www.phpbb.com>
7+
* @license GNU General Public License, version 2 (GPL-2.0)
8+
*
9+
*/
10+
11+
/**
12+
* DO NOT CHANGE
13+
*/
14+
if (!defined('IN_PHPBB'))
15+
{
16+
exit;
17+
}
18+
19+
if (empty($lang) || !is_array($lang))
20+
{
21+
$lang = array();
22+
}
23+
24+
$lang = array_merge($lang, array(
25+
'GOOGLEANALYTICS_LABEL' => 'Google Analytics',
26+
'GOOGLEANALYTICS_DESCRIPTION' => 'يتتبع الصفحات التي تزورها، والوقت الذي تقضيه في كل صفحة، وأنماط الاستخدام العامة.'
27+
));

‎language/ar/googleanalytics_acp.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
'ACP_GOOGLEANALYTICS_ID' => 'Google Analytics ID',
4444
'ACP_GOOGLEANALYTICS_ID_EXPLAIN' => 'أكتب كود Google Analytics ID الخاص بك، مثل: <br><br><samp>G-XXXXXXXXXX</samp>.إحصائيات قوقل يمكنها تتبع أعضاء منتداك المسجلين عبر الأجهزة والجلسات المتعددة، حتى يكون عدد الأعضاء أكثر دقة. لتفعيل هذه الوظيفة المحَسِّنة يجب أن يكون رقم تتبع المستخدم ID مضبوط في حسابك إحصائيات قوقل. <a href="https://support.google.com/analytics/answer/9213390" target="_blank">اضغط هنا للمعلومات أكثر <i class="icon fa-external-link fa-fw" aria-hidden="true"></i></a>.',
4545
'ACP_GOOGLEANALYTICS_ID_INVALID' => '“%s” كود Google Analytics ID الذي أدخلته غير صالح.<br>يجب أن يكون على الشكل “G-XXXXXXXXXX”.',
46-
'ACP_GA_ANONYMIZE_IP' => 'Turn on IP Anonymization',
47-
'ACP_GA_ANONYMIZE_IP_EXPLAIN' => 'Enable this option if you want the data collected by Google Analytics to be compliant with the EU‘s General Data Protection Regulation (GDPR). Note that enabling this option may slightly reduce the accuracy of geographic reporting.',
46+
'ACP_GA_ANONYMIZE_IP' => 'تفعيل إخفاء هوية عنوان IP',
47+
'ACP_GA_ANONYMIZE_IP_EXPLAIN' => 'فعّل هذا الخيار إذا كنت تريد أن تكون البيانات التي يجمعها Google Analytics متوافقة مع اللائحة العامة لحماية البيانات في الاتحاد الأوروبي (GDPR). لاحظ أن تفعيل هذا الخيار قد يقلل قليلًا من دقة التقارير الجغرافية.',
4848
));

‎language/ar/googleanalytics_ucp.php‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
$lang = array_merge($lang, [
4141
'PHPBB_ANALYTICS_PRIVACY_POLICY' => '
4242
<br><br>
43-
<h3>Analytics</h3>
44-
“%1$s” may use Google Analytics, a web analytics service provided by Google LLC (“Google”), to help us understand how visitors use the site. Google Analytics uses cookies and similar technologies to collect information about your interactions with the site, including the pages you visit, the time spent on each page, and general usage patterns.
43+
<h3>التحليلات</h3>
44+
قد يستخدم “%1$s” Google Analytics، وهي خدمة لتحليلات الويب تقدمها Google LLC (“Google”)، لمساعدتنا على فهم كيفية استخدام الزوار للموقع. يستخدم Google Analytics ملفات تعريف الارتباط وتقنيات مشابهة لجمع معلومات عن تفاعلك مع الموقع، بما في ذلك الصفحات التي تزورها، والوقت الذي تقضيه في كل صفحة، وأنماط الاستخدام العامة.
4545
<br><br>
46-
The information generated by these cookies about your use of “%1$s” (including your IP address) is transmitted to and stored by Google on servers in the United States or other locations. Google uses this information to evaluate your use of the site, compile reports on website activity for us, and provide other services relating to website activity and internet usage.
46+
تُنقل المعلومات التي تنشئها ملفات تعريف الارتباط هذه عن استخدامك لـ “%1$s” (بما في ذلك عنوان IP الخاص بك) إلى Google وتُخزن على خوادم في الولايات المتحدة أو مواقع أخرى. تستخدم Google هذه المعلومات لتقييم استخدامك للموقع، وإعداد تقارير لنا عن نشاط الموقع، وتقديم خدمات أخرى متعلقة بنشاط الموقع واستخدام الإنترنت.
4747
<br><br>
48-
Google may also transfer this information to third parties where required to do so by law, or where such third parties process the information on Google’s behalf. To learn more about how Google collects and processes data, please see Google’s Privacy Policy at: <a href="https://policies.google.com/privacy" target="_blank">https://policies.google.com/privacy</a>.
48+
قد تنقل Google هذه المعلومات أيضًا إلى أطراف ثالثة عندما يتطلب القانون ذلك، أو عندما تعالج هذه الأطراف المعلومات نيابة عن Google. لمعرفة المزيد حول كيفية جمع Google للبيانات ومعالجتها، يرجى الاطلاع على سياسة خصوصية Google على: <a href="https://policies.google.com/privacy" target="_blank">https://policies.google.com/privacy</a>.
4949
<br><br>
50-
You can opt out of Google Analytics by installing the Google Analytics opt-out browser add-on, available at: <a href="https://tools.google.com/dlpage/gaoptout" target="_blank">https://tools.google.com/dlpage/gaoptout</a>.
50+
يمكنك إلغاء الاشتراك في Google Analytics عن طريق تثبيت إضافة المتصفح الخاصة بإلغاء الاشتراك في Google Analytics، والمتاحة على: <a href="https://tools.google.com/dlpage/gaoptout" target="_blank">https://tools.google.com/dlpage/gaoptout</a>.
5151
',
5252
]);

‎language/cs/common.php‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
/**
3+
*
4+
* Google Analytics extension for the phpBB Forum Software package.
5+
*
6+
* @copyright (c) 2026 phpBB Limited <https://www.phpbb.com>
7+
* @license GNU General Public License, version 2 (GPL-2.0)
8+
*
9+
*/
10+
11+
/**
12+
* DO NOT CHANGE
13+
*/
14+
if (!defined('IN_PHPBB'))
15+
{
16+
exit;
17+
}
18+
19+
if (empty($lang) || !is_array($lang))
20+
{
21+
$lang = array();
22+
}
23+
24+
$lang = array_merge($lang, array(
25+
'GOOGLEANALYTICS_LABEL' => 'Google Analytics',
26+
'GOOGLEANALYTICS_DESCRIPTION' => 'Sleduje stránky, které navštěvujete, čas strávený na každé stránce a obecné vzorce používání.'
27+
));

‎language/cs/googleanalytics_acp.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
'ACP_GOOGLEANALYTICS_ID' => 'Google Analytics ID',
4343
'ACP_GOOGLEANALYTICS_ID_EXPLAIN' => 'Zadejte Vaše ID ve službě Google Analytics, např.: <samp>G-XXXXXXXXXX</samp>.<br><br>Google Analytics dokáže sledovat přihlášené uživatele napříč zařízeními pro přesnější informace o návštěvnících. Pro povolení této rozšířené funkcionality musíte povolit funkci User ID ve svém účtu Google Analytics. <a href="https://support.google.com/analytics/answer/9213390" target="_blank">Klikněte pro více informací <i class="icon fa-external-link fa-fw" aria-hidden="true"></i></a>.',
4444
'ACP_GOOGLEANALYTICS_ID_INVALID' => '“%s” není platné ID klienta ve službě Google Analytics.<br>Mělo by být ve tvaru “G-XXXXXXXXXX”.',
45-
'ACP_GA_ANONYMIZE_IP' => 'Turn on IP Anonymization',
46-
'ACP_GA_ANONYMIZE_IP_EXPLAIN' => 'Enable this option if you want the data collected by Google Analytics to be compliant with the EU‘s General Data Protection Regulation (GDPR). Note that enabling this option may slightly reduce the accuracy of geographic reporting.',
45+
'ACP_GA_ANONYMIZE_IP' => 'Zapnout anonymizaci IP',
46+
'ACP_GA_ANONYMIZE_IP_EXPLAIN' => 'Tuto možnost povolte, pokud chcete, aby data shromážděná službou Google Analytics byla v souladu s obecným nařízením EU o ochraně osobních údajů (GDPR). Upozorňujeme, že povolení této možnosti může mírně snížit přesnost geografických přehledů.',
4747
));

‎language/cs/googleanalytics_ucp.php‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
$lang = array_merge($lang, [
4141
'PHPBB_ANALYTICS_PRIVACY_POLICY' => '
4242
<br><br>
43-
<h3>Analytics</h3>
44-
“%1$s” may use Google Analytics, a web analytics service provided by Google LLC (“Google”), to help us understand how visitors use the site. Google Analytics uses cookies and similar technologies to collect information about your interactions with the site, including the pages you visit, the time spent on each page, and general usage patterns.
43+
<h3>Analytika</h3>
44+
“%1$s” může používat Google Analytics, službu webové analytiky poskytovanou společností Google LLC (“Google”), která nám pomáhá pochopit, jak návštěvníci používají web. Google Analytics používá soubory cookie a podobné technologie ke shromažďování informací o vašich interakcích s webem, včetně navštívených stránek, času stráveného na každé stránce a obecných vzorců používání.
4545
<br><br>
46-
The information generated by these cookies about your use of “%1$s” (including your IP address) is transmitted to and stored by Google on servers in the United States or other locations. Google uses this information to evaluate your use of the site, compile reports on website activity for us, and provide other services relating to website activity and internet usage.
46+
Informace vytvořené těmito soubory cookie o vašem používání “%1$s” (včetně vaší IP adresy) jsou přenášeny společnosti Google a ukládány na serverech ve Spojených státech nebo na jiných místech. Google tyto informace používá k vyhodnocování vašeho používání webu, k sestavování zpráv o aktivitě webu pro nás a k poskytování dalších služeb souvisejících s aktivitou webu a používáním internetu.
4747
<br><br>
48-
Google may also transfer this information to third parties where required to do so by law, or where such third parties process the information on Google’s behalf. To learn more about how Google collects and processes data, please see Google’s Privacy Policy at: <a href="https://policies.google.com/privacy" target="_blank">https://policies.google.com/privacy</a>.
48+
Google může tyto informace také předat třetím stranám, pokud to vyžaduje zákon nebo pokud tyto třetí strany zpracovávají informace jménem společnosti Google. Další informace o tom, jak Google shromažďuje a zpracovává data, najdete v zásadách ochrany soukromí Google na adrese: <a href="https://policies.google.com/privacy" target="_blank">https://policies.google.com/privacy</a>.
4949
<br><br>
50-
You can opt out of Google Analytics by installing the Google Analytics opt-out browser add-on, available at: <a href="https://tools.google.com/dlpage/gaoptout" target="_blank">https://tools.google.com/dlpage/gaoptout</a>.
50+
Používání Google Analytics můžete odmítnout instalací doplňku prohlížeče pro odhlášení z Google Analytics, který je k dispozici na adrese: <a href="https://tools.google.com/dlpage/gaoptout" target="_blank">https://tools.google.com/dlpage/gaoptout</a>.
5151
',
5252
]);

‎language/da/common.php‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
/**
3+
*
4+
* Google Analytics extension for the phpBB Forum Software package.
5+
*
6+
* @copyright (c) 2026 phpBB Limited <https://www.phpbb.com>
7+
* @license GNU General Public License, version 2 (GPL-2.0)
8+
*
9+
*/
10+
11+
/**
12+
* DO NOT CHANGE
13+
*/
14+
if (!defined('IN_PHPBB'))
15+
{
16+
exit;
17+
}
18+
19+
if (empty($lang) || !is_array($lang))
20+
{
21+
$lang = array();
22+
}
23+
24+
$lang = array_merge($lang, array(
25+
'GOOGLEANALYTICS_LABEL' => 'Google Analytics',
26+
'GOOGLEANALYTICS_DESCRIPTION' => 'Sporer de sider, du besøger, tiden brugt på hver side og generelle brugsmønstre.'
27+
));

‎language/da/googleanalytics_acp.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@
4444
'ACP_GOOGLEANALYTICS_ID' => 'Google Analytics ID',
4545
'ACP_GOOGLEANALYTICS_ID_EXPLAIN' => 'Indtast din Google Analytics ID kode, f.eks.: <samp>G-XXXXXXXXXX</samp>.<br><br>Google Analytics kan spore dine registrerede brugere på tværs af flere enheder og sessioner, for et mere præcist bruger tal i dine rapportere. For at aktivere denne forbedrede funktionalitet skal User ID sporing være konfigureret i din Google Analytics konto. <a href="https://support.google.com/analytics/answer/9213390" target="_blank">Klik for yderligere information <i class="icon fa-external-link fa-fw" aria-hidden="true"></i></a>.',
4646
'ACP_GOOGLEANALYTICS_ID_INVALID' => '“%s” er ikke en gyldig Google Analytics ID kode.<br>Det skal være i formen: “G-XXXXXXXXXX”.',
47-
'ACP_GA_ANONYMIZE_IP' => 'Turn on IP Anonymization',
48-
'ACP_GA_ANONYMIZE_IP_EXPLAIN' => 'Enable this option if you want the data collected by Google Analytics to be compliant with the EU‘s General Data Protection Regulation (GDPR). Note that enabling this option may slightly reduce the accuracy of geographic reporting.',
47+
'ACP_GA_ANONYMIZE_IP' => 'Slå IP-anonymisering til',
48+
'ACP_GA_ANONYMIZE_IP_EXPLAIN' => 'Aktivér denne mulighed, hvis du ønsker, at data indsamlet af Google Analytics skal overholde EU’s generelle forordning om databeskyttelse (GDPR). Bemærk, at aktivering af denne mulighed kan reducere nøjagtigheden af geografiske rapporter en smule.',
4949
));

0 commit comments

Comments
 (0)