Hi everyone,
I'm trying to include view specific data in each view header (it is actually a GTM datalayer).
I thought the best way to do it was to define a global variable in db.py and to print a variable {{=datalayer}}, the each controller will overwrite it with specific data.
It seems to be working for most of my views, except:
-index.html
-all user.html views (login/register/profile/change_password/etc.)
Any suggestions on how to make it work on index.html and user.html?
What am I doing wrong?
Thanks in advance, Jon.