Molo User Metadata
Provides code to help with User metadata in a project using the Molo code base.
Installation:
pip install molo.usermetadata
In your app settings:
INSTALLED_APPS = ( 'molo.usermetadata', ) MIDDLEWARE = ( 'molo.usermetadata.middleware.PeronsaMiddleware' )
In your app urls.py:
urlpatterns += patterns('',
url(r'^meta/', include('molo.usermetadata.urls', namespace='molo.usermetadata', app_name='molo.usermetadata')),
)
Note:
In order for the personae to be activated, choose activate under wagtail settings > personae settings
Google Analytics
In order for GA to pick up persona data you need to add the following to your base.html
At the top of the template you need to load the persona tag:
{% load persona_tags %}
In your GTM block add the following to get the persona value:
{% persona_selected as persona_selected_value %}
In your <noscript> tag add the following to src in order to add the persona to the data layer when JS is not enabled:
{% if persona_selected_value%}&persona={{ persona_selected_value }}&event=persona{% endif %}
At the bottom of your tag manager block add the following in order to add the persona to the data layer when JS is enabled:
{% if persona_selected_value %}
<script type="text/javascript">
dataLayer.push({'persona': '{{ persona_selected_value }}', 'event': 'persona'});
</script>
{% endif %}
Metadata
Release files for molo.usermetadata 6.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| molo.usermetadata-6.0.0.tar.gz | 8.9 kB | Without provenance | Details for molo.usermetadata-6.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| molo.usermetadata-6.0.0-py2-none-any.whl | Python 2 | none | any | Details for molo.usermetadata-6.0.0-py2-none-any.whl |
Total release size: 21.9 kB
Release files / molo.usermetadata-6.0.0.tar.gz
| Download URL | molo.usermetadata-6.0.0.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8600590e87b90b8c173934b035f180d74809737fd63db012d056b5491259c5da
|
|
BLAKE2b-256 checksum How to use checksums |
ef869d5b72a7c0ca19336c17af2f730385d60df73093faddedc758deb69e0143
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / molo.usermetadata-6.0.0-py2-none-any.whl
| Download URL | molo.usermetadata-6.0.0-py2-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
1eaf1e92636f46751686e8b0a21802396bd840de5fc6bee6bd1711f016550d54
|
|
BLAKE2b-256 checksum How to use checksums |
d89aeb3289608c93d53a66fb20fd83eb7119d899c71c25be88ac5f85c6d9e7e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for molo.usermetadata 6.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.