SilverStrings024
2d228686ad
Added blank like at the end of context_providers/matomo.py for Flake8
...
Renamed context provider to 'consent_provider' to make more sense when adding it to your context_provider
2021-07-13 00:42:00 -04:00
SilverStrings024
d1d1be189a
Added conditional tracking consent for Matomo
...
Modified utils.build_paq_cmd to remove the trailing comma and white space as well as add a semi colon to the end of the push command.
Added context_providers directory with matomo.py file with a context provider that builds the tracking consent code and adds it to the context.
Modified matomo.MatomoNode.render. Removed original ugly settings check code with simply rendering the 'consent_script' context variable and adding it to the html variable only if its length is greater than 1.
NOTE: The context provider and rendering it (line 110 templatetags/matomo.py) are untested. Both utils.build_paq_cmd and utils.get_event_bind_js are tested but need need more rigorous testing to be sure it won't break.
2021-07-13 00:35:26 -04:00
SilverStrings (Matt)
3a514444f3
Update utils.py
...
Updated to use the tested and better documented version (Is not tested with Matomo or Django. Only with python)
2021-07-12 18:06:37 -04:00
SilverStrings (Matt)
85c651f6f6
Update utils.py to improve build_paq_cmd()
...
Update `utils.build_paq_cmd()` to convert all elements in the args list to their javascript counter-parts. This will recursively convert the keys and values of a dictionary until there are no more nested dictionaries and will also convert all the elements of a list as well.
Also made it so things like booleans, lists, and dictionaries are not surrounded in quotation marks so they're treated like a normal javascript object. If that behavior needs changed. Please let me know
2021-07-12 18:03:02 -04:00
SilverStrings (Matt)
3761e7308a
Add files via upload
...
Added missing new end line
2021-07-12 10:34:30 -04:00
SilverStrings (Matt)
0bc55d1b10
Added utility functions
...
Added paq builder function and function to build javascript for binding events
2021-07-12 10:31:59 -04:00
SilverStrings (Matt)
40493faabb
Adding tracking support
...
Added tracking support
2021-07-12 10:31:05 -04:00
David Smith
37009f2e08
Implemented isort
2021-02-21 17:28:27 +01:00
David Smith
f0e7ebe731
Converted remaining tests to Pytest style
2021-02-18 09:34:01 +01:00
David Smith
baaa1c4a8b
Migrate tests to Pytest plain asserts
2021-02-18 09:34:01 +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
a3fe981f76
Add tests for Lucky Orange
2020-12-06 20:45:08 +01:00
Peter Bittner
514780aeb2
Add documentation for Lucky Orange
2020-12-06 20:45:08 +01:00
Peter Bittner
7f1358dcb6
Hard-require Python 3.6+, add link to docs on PyPI
2020-12-06 16:26:54 +01:00
Pi Delport
5ea7d15868
Coverage config: Remove stale omit entry
2020-12-06 16:26:54 +01:00
Pi Delport
47fa937910
Include tests in source manifest
2020-12-06 16:26:54 +01:00
Peter Bittner
bf471d7dfc
Allow test suite to run with pytest
2020-12-06 16:26:54 +01:00
Peter Bittner
a9d7d17ce6
Move tests out of analytical module
2020-12-06 16:26:54 +01:00
Peter Bittner
ba8982be0a
Add missing Google Analytics instructions to install section
2020-12-06 13:21:12 +01:00
Peter Bittner
00bc123b88
Reduce indentation of Hotjar JS code
2020-12-05 21:11:06 +01:00
David Smith
4515fcd1be
Added quotes to Python versions
2020-12-03 23:01:10 +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
David Smith
df7ed2d132
Fix flake8 errors
2020-11-30 23:02:04 +01:00
David Smith
10d109eb6c
Use pytest as test runner
...
* Used pytest to run tests within tox environments
* Removed test runner within setup.py
2020-11-30 23:02:04 +01:00
Jannis Leidel
146a96fca0
Quote Python versions.
2020-11-26 09:41:44 +01:00
Jannis Leidel
98e7e24e3e
Merge pull request #169 from jazzband/gha
...
Add initial GitHub Actions workflow.
2020-11-25 21:47:50 +01:00
Jannis Leidel
161983fad5
Merge branch 'master' into gha
2020-11-25 21:43:33 +01:00
Jannis Leidel
197cdbcfad
Add Jazzband release workflow.
2020-11-25 21:18:45 +01:00
Jannis Leidel
7580bc1619
Ignore it for real?
2020-11-25 21:15:45 +01:00
Jannis Leidel
de2ed4bafc
Ignore bandit errors.
2020-11-25 21:11:14 +01:00
Jannis Leidel
2322f7a0bf
Fix config section names.
2020-11-25 21:04:49 +01:00
Jannis Leidel
1ebc2a23ea
Add gh-action mapping.
2020-11-25 21:01:53 +01:00
Jannis Leidel
b9320b41d9
Add initial GitHub Actions workflow.
2020-11-25 20:56:03 +01:00
Peter Bittner
e517bce3a6
Add SnapEngage details to Installation section
...
Fixes #166
2020-11-25 17:00:22 +01:00
Joost Cassee
ef40ba6ff5
Merge pull request #164 from taharushain/master
...
Updated regex for gtag to accept measurement ID
2020-08-02 12:39:40 +02: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
Joost Cassee
7e68563849
Merge pull request #162 from jazzband/piwik-warning
...
Only show piwik warning if using piwik
2020-07-03 10:29:23 +02: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
962af837af
Include deploy stage (excluded by error)
2020-04-15 16:44:18 +02:00
Peter Bittner
c10759d378
Bump version, release v2.6.0
2020-04-15 14:51:05 +02:00
Peter Bittner
d9b21e96c6
Test against Django 3.0, Python 3.8
...
Modernize Travis CI setup
2020-04-15 14:51:05 +02:00
Peter Bittner
77fdb51432
Explain the three Google Analytics options
2020-04-15 14:51:05 +02:00