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 {% include 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.1-2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8aa989b1ad522bc00414f3612894532b4799d393ef5101cf5a2c2fd04487742e |
|
MD5 | 6783dd7cb3bb78d327af7d2cd072d71e |
|
BLAKE2b-256 | 518168d54cebfcf716e25f2495561596d5e5c205ef504d0633722f37cf8f906e |