
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
django-google-urchin
Advanced tools
Provides a Django template tag to insert the Google Analytics tracking code.
Django Google Analytics provides a template tag for inserting the tracking code to provide Google Analytics data.
Run pip install django-google-analytics
Add google_analytics
to your INSTALLED_APPS
setting:
INSTALLED_APPS = (
...
'google_analytics',
)
###google_analytics Inserts the Google Analytics' tracking code in your template. Takes the tracking code as an argument.
{% load analytics %}
<html>
<head>
<title>My Site</title>
</head>
<body>
<h1>My Site</h1>
<p>My site's content.</p>
{% google_analytics 'UA-XXXXXXX-XX' %}
</body>
</html>
FAQs
Provides a Django template tag to insert the Google Analytics tracking code.
We found that django-google-urchin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.