%global _empty_manifest_terminate_build 0 Name: python-django-google-tag-manager Version: 0.0.5 Release: 1 Summary: Easily include your Google Tag Manager tag in your django site License: MIT URL: https://github.com/Lacrymology/django-google-tag-manager Source0: https://mirrors.aliyun.com/pypi/web/packages/c2/ca/9845996cd353a1e75b70892bc38130c56e5cb64dd15a0eed0bc6af5cf32b/django-google-tag-manager-0.0.5.tar.gz BuildArch: noarch %description 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 `
` and add `{% gtm_body %}` just below your `` 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 `` opening tag. This will output both the head and body code. %package -n python3-django-google-tag-manager Summary: Easily include your Google Tag Manager tag in your django site Provides: python-django-google-tag-manager BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-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 `` and add `{% gtm_body %}` just below your `` 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 `` opening tag. This will output both the head and body code. %package help Summary: Development documents and examples for django-google-tag-manager Provides: python3-django-google-tag-manager-doc %description help 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 `` and add `{% gtm_body %}` just below your `` 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 `` opening tag. This will output both the head and body code. %prep %autosetup -n django-google-tag-manager-0.0.5 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-django-google-tag-manager -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Thu Jun 08 2023 Python_Bot