Hi All,

I am trying to use Google Tag Manager(GTM) in my Django 2.0.6 application 
by following below url-
https://github.com/Lacrymology/django-google-tag-manager

In GTM console I have set my app but when I preview my app, GTM is not 
loading.
I suspect I am missing something with respect to my templates.

Below is my project structure-

[image: django_project.JPG]

In base.html I have put following code-

{% load gtm_tags %}

<html>
    <head>
        {% gtm_head %}
        <title>GTM testing</title>
        <link rel="stylesheet" type="text/css" 
href="/static/admin/css/base.css" />
        <link rel="stylesheet" type="text/css" 
href="/static/admin/css/login.css" />
    </head>
    <body class=" login">
    {% gtm_body %}
        <div id="container">
            <div id="header">
                <div id = "branding">
                    <h1 id="site-name">GTM Testing Page</h1>
                </div>
            </div>
            <div id="content">
                <div id="content-main">
                     {% block content %}
                     {% endblock %}
                </div>
            </div>
        </div>
    </body>
</html>


In authorize_geoplugin.html I have put following lines-

{% extends 'base.html' %}

{% block content %}
    <html>
        <body>ABCDEFGHIJUTLOPP</body>
    </html>

{% endblock %}


And in settings.py I have added the package as below-

[image: settings.JPG]

It's a basic templates setup I have done just for GTM.

Can anyone please tell me what I am doing wrong here?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/7a9c254f-454d-4f61-89b6-2974efc88706%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to