Django
Step-by-step guide to add ProofyBubble to your Django site
Follow these steps to integrate ProofyBubble into your Django application.
The recommended way to add scripts to all pages in a Django application is by using the base template.
- Open your project's base template, typically located at
templates/base.html
. - Add the ProofyBubble script to the
<head>
section of your template:
<script id="credibility-client-<your-id>" type="module" crossorigin="anonymous" data-app-id="<your-app-id>" src="https://client.proofybubble.com/assets/embed.js" ></script>
- Replace
your-id
with your actual Website ID from ProofyBubble. - Replace
your-app-id
with your actual App ID from ProofyBubble.
For more dynamic configuration, you can add the script through Django settings:
- Add your ProofyBubble configuration to
settings.py
:
PROOFYBUBBLE_ID = '<your-id>' PROOFYBUBBLE_APP_ID = '<your-app-id>'
- In your base template, use the settings:
<script id="credibility-client-{{ settings.PROOFYBUBBLE_ID }}" type="module" crossorigin="anonymous" data-app-id="{{ settings.PROOFYBUBBLE_APP_ID }}" src="https://client.proofybubble.com/assets/embed.js" ></script>
After implementing either method:
- Visit your live website.
- Check your ProofyBubble dashboard for incoming data. It might take a few minutes for the first pageviews or events to appear.