Skip to main content
Continuous Integration Code Coverage

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)

Source distribution for molo.usermetadata 6.0.0
File Size Uploaded
molo.usermetadata-6.0.0.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for molo.usermetadata 6.0.0
File Interpreter ABI Platform
molo.usermetadata-6.0.0-py2-none-any.whl Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

6.0.0 This release

2 release files

1.2.0

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page