django-google-tag-manager-0.0.5
توضیحات
Easily include your Google Tag Manager tag in your django site
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-google-tag-manager-0.0.5 |
| نام | django-google-tag-manager |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tomas Neme |
| ایمیل نویسنده | lacrymology@gmail.com |
| آدرس صفحه اصلی | https://github.com/Lacrymology/django-google-tag-manager |
| آدرس اینترنتی | https://pypi.org/project/django-google-tag-manager/ |
| مجوز | MIT |
django-google-tag-manager
=========================
Template tag to install your Google Tag Manager account in your
templates (http://www.google.com/tagmanager/)
## Installation and Usage
1. run `pip install django-google-tag-manager`
2. add `'gtm'` to your `INSTALLED_APPS` setting.
3. set `GOOGLE_TAG_ID` to your Google Tag Container Id. It
should look something like `GTM_XXXXXX`
4. In your templates (probably in your base template) you `{% load
gtm_tags %}` and then add `{% gtm_head %}` to your `<head>` and
add `{% gtm_body %}` just below your `<body>` opening tag.
5. Profit
That's it for the most part. If for any reason you want to override
the templates used to render the tags, they are called
`gtm/gtm_head.html` and `gtm/gtm_body.html`.
Optionally, you can pass the google tag id as a parameter to the
templatetag like this:
{% gtm_head "GTM-ABC123" %}
and
{% gtm_body "GTM-ABC123" %}
For backwards compatibility you can still use the single `{% gtm %}`
tag just below your `<body>` opening tag. This will output both the
head and body code.
نحوه نصب
نصب پکیج whl django-google-tag-manager-0.0.5:
pip install django-google-tag-manager-0.0.5.whl
نصب پکیج tar.gz django-google-tag-manager-0.0.5:
pip install django-google-tag-manager-0.0.5.tar.gz