Commit graph

308 commits

Author SHA1 Message Date
Ronard
e6f12719cc
Ask for consent - Matomo (Continuation Jayhaluska's work) (#245)
Some checks failed
Check / build (audit) (push) Has been cancelled
Check / build (docs) (push) Has been cancelled
Check / build (format) (push) Has been cancelled
Check / build (lint) (push) Has been cancelled
Check / build (package) (push) Has been cancelled
Test / python-django (4.2, 3.10) (push) Has been cancelled
Test / python-django (4.2, 3.11) (push) Has been cancelled
Test / python-django (4.2, 3.12) (push) Has been cancelled
Test / python-django (4.2, 3.9) (push) Has been cancelled
Test / python-django (5.1, 3.10) (push) Has been cancelled
Test / python-django (5.1, 3.11) (push) Has been cancelled
Test / python-django (5.1, 3.12) (push) Has been cancelled
Test / python-django (5.1, 3.13) (push) Has been cancelled
Test / python-django (5.2, 3.10) (push) Has been cancelled
Test / python-django (5.2, 3.11) (push) Has been cancelled
Test / python-django (5.2, 3.12) (push) Has been cancelled
Test / python-django (5.2, 3.13) (push) Has been cancelled
Co-authored-by: Julian Haluska <j.haluska@gmx.de>
2026-03-08 17:10:32 +01:00
Peter Bittner
033d2dc02f Align spelling of JavaScript across all files (docs, docstrings) 2025-07-21 17:11:22 +02:00
Erick Massip
7253a3a048
Fix gtag user_id setup and add support for custom dimensions (#226)
* Fixed user_id setup for gtag according to latest docs
* Added the possibility to include custom dimensions to be sent along with every event
* Added custom dimensions section to the gtag docs
* Added explicit python code blocks in the docs
* Reformat test_tag_google_analytics_gtag.py with Ruff formatter
2025-07-21 11:10:04 +02:00
Peter Bittner
a751ffa5e3 Release v3.2.0 2025-07-11 00:06:19 +02:00
Peter Bittner
8b12e33e69 Add more config options for Woopra
Closes #100
2025-07-09 18:17:27 +02:00
Peter Bittner
4540999dc1 Remove obsolete type attribute in script tags 2025-07-08 12:22:45 +02:00
Peter Bittner
a112ec445f Reformat code using Ruff 2025-07-08 12:22:45 +02:00
Peter Bittner
82fbbeb6b2 Migrate packaging from setup.py to pyproject.toml 2025-07-08 12:22:45 +02:00
Petr Dlouhý
2163c77684
Add the missing get_identity prefix to google_analytics_gtag, test it (#217) 2022-07-19 08:58:28 +02:00
Peter Bittner
f487cb895c Fix Matomo noscript tag
Reference: https://matomo.org/faq/how-to/faq_176/
2022-07-06 23:52:03 +02:00
Peter Bittner
688524305f Remove deprecated Piwik integration
Please use our Matomo integration instead
2022-07-06 23:52:03 +02:00
Kevin Olbrich
ba59f396df add GOOGLE_ANALYTICS_JS_SOURCE setting to allow custom source URL
fixes https://github.com/jazzband/django-analytical/issues/212
2022-07-06 08:30:22 +02:00
Peter Bittner
844a178c04 Simplify copyright notice
Co-authored-by: David Smith <39445562+smithdc1@users.noreply.github.com>
2022-03-15 09:34:50 +01:00
Peter Bittner
ce90933ab1 Release v3.1.0
Removed optional license field from metadata, following recommendations from packaging guide.
See https://packaging.python.org/en/latest/guides/distributing-packages-using-setuptools/#license
2022-03-15 09:34:50 +01:00
Garrett Coakley
58aa95df34
Added Heap integration (#194)
Heap integration
2021-11-26 14:13:59 +01:00
David Smith
37009f2e08 Implemented isort 2021-02-21 17:28:27 +01:00
Peter Bittner
896a19196f Release v3.0.0 2020-12-06 23:14:25 +01:00
Peter Bittner
8cd75d9e60 Add business code for Lucky Orange 2020-12-06 20:45:08 +01:00
Peter Bittner
a9d7d17ce6 Move tests out of analytical module 2020-12-06 16:26:54 +01:00
Peter Bittner
00bc123b88 Reduce indentation of Hotjar JS code 2020-12-05 21:11:06 +01:00
David Smith
9163294603 Updated supported versions of Python and Django
Dropped Python2.7/3.5 and Django 1.11 from test matrix

Removed Py2 code and updated for Py3 features

Replaced assertRaisesRegexp with AsserRaisesRegex

Updated setup.py for currently supported versions

Removed _timestamp
2020-12-03 23:01:10 +01:00
David Smith
3eb17007ad Refactored setup.py to remove cmdclass and test packages 2020-11-30 23:02:04 +01:00
Taha Rushain
ee956230ea Breaking long strings into multiple lines 2020-07-19 02:05:12 +05:00
Taha Rushain
d98e815493 Breaking long strings into multiple lines 2020-07-19 01:57:56 +05:00
Taha Rushain
1cdfb0ed0d Breaking long strings into multiple lines 2020-07-19 01:49:38 +05:00
Taha Rushain
3292b664ec Updated Gtag implementation for mutiple id patterns 2020-07-17 19:24:51 +05:00
Taha Rushain
ac2ebf375c Updated regex for gtag to accept measurement ID 2020-07-06 01:38:40 +05:00
Hugo Osvaldo Barrera
788cab447e Only show piwik warning if using piwik
Code so far emits a warning to all users about about Piwik being
deprecated, even if Piwik is not being used.

Scope the warning so it only triggers for people to whom it's relevant.
2020-07-02 17:34:23 +02:00
Sean Wallace
88197ca17e Fix flake8. 2020-06-28 21:00:41 +02:00
Sean Wallace
438b1408fa Add user_id to Google Analytics GTag 2020-06-28 21:00:41 +02:00
Peter Bittner
c10759d378 Bump version, release v2.6.0 2020-04-15 14:51:05 +02:00
Marc Bourqui
1ce265d2d9 Update test to comply with flake8 2020-04-11 18:43:31 +02:00
Marc Bourqui
d14d4727ee Add tests for new Google Analytics gtag, #108 2020-04-11 18:43:31 +02:00
Marc Bourqui
63adb0fbba Register new Google Analytics gtag, #108 2020-04-11 18:43:31 +02:00
Marc Bourqui
0ea5d39155 Fix typos 2020-04-11 18:43:31 +02:00
Marc Bourqui
756ac787e8 Add support for gtag.js 2020-04-11 18:43:31 +02:00
Diederik van der Boor
84e7dab3d2
Make sure Google Analytics calls for ga('set', ...) happen before ga('send', ...)
The changes for the old ga.js code were addressed in #127,
before the new analytics.js code was merged by #135 (commits mention #108)
The display_features and commands could be merged to avoid unneeded blank lines.
2019-04-20 08:53:31 +02:00
Scott Karlin
02b0768c97 Correct code alignment (PEP8) 2019-04-10 09:26:33 +02:00
Scott Karlin
ef0b19ccb2 Clarify Piwik deprecation status 2019-04-10 09:26:33 +02:00
Scott Karlin
3b1ab2bbed Matomo still uses "piwik" in img tag 2019-04-10 09:26:33 +02:00
Scott Karlin
e5f8c199dc Create Matomo module; leave Piwik to be deprecated
With the rebranding of Piwik to Matomo, this commit:
* copies the piwik module to matomo and rebrands
* notes that the piwik module is deprecated
* updates the javascript to the current Matomo version

Implements #132
2019-04-10 09:26:33 +02:00
Peter Bittner
bfe92c716c Ensure Tox targets clean and docs are working
Update packaging information (Django 2.2, license)

Remove problematic install_requires
2019-04-09 14:43:50 +02:00
Joost Cassee
81502c3d68 Fix flake8 warnings by removing typing hints
Unfortunately, typing does not exist in Python 2 so we cannot fix the
warnings by importing the types.
2019-04-08 20:44:22 +02:00
Joost Cassee
ba89b80695 Fix typo in test function name and update authors 2018-11-16 11:02:13 +01:00
Joost Cassee
1ac44107df Bump version to 2.5.0 2018-11-15 21:18:07 +01:00
Joost Cassee
abde59822d Fix flake8 warning 2018-11-15 21:03:18 +01:00
Joost Cassee
4f4de63759 Merge remote-tracking branch 'anteru/master' 2018-11-15 20:43:47 +01:00
Diederik van der Boor
deba4e0021 Remove unneeded spaces in _gaq.push commands 2018-11-15 20:35:03 +01:00
Diederik van der Boor
d2c782c1d5 Make sure Google Analytics calls like _anonymizeIp settings happen before calling _trackPageview 2018-11-15 20:35:03 +01:00
Joost Cassee
32c45f2f0c
Merge pull request #135 from EDSI-Tech/issue-108
Basic support of Google analytics.js
2018-11-15 20:19:09 +01:00