Easily include your Google Tag Manager tag in your django site
Project description
Template tag to install your Google Tag Manager account in your templates (http://www.google.com/tagmanager/)
## Installation and Usage
run pip install django-google-tag-manager
add ‘gtm’ to your INSTALLED_APPS setting.
set GOOGLE_TAG_ID to your Google Tag Container Id. It should look something like GTM_XXXXXX
In your templates (probably in your base template) you {% load gtm_tags %} and then {% gtm %} just below your <body> opening tag.
Profit
That’s it for the most part. If for any reason you want to override the template used to render the tag, it’s called gtm/gtm.html.
Optionally, you can pass the google tag id as a parameter to the templatetag like this:
{% gtm “GTM-ABC123” %}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for django-google-tag-manager-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a166c3e650f5fb6ebec3db491c2b4f3d63d501c7d5edba688ccbe842787bb15 |
|
MD5 | 09d50717fbe2b6c3f63d76b44f4b81cc |
|
BLAKE2b-256 | 88637db01f681fd22bf3c3524696c932dfe2bcaa301f53fd5d3c8f02fa59d254 |