diff options
author | Sashi20 | 2020-12-04 17:26:22 +0530 |
---|---|---|
committer | Sashi20 | 2020-12-04 17:26:22 +0530 |
commit | d8345a07959278551fb810a40c2d9c5555354a9b (patch) | |
tree | 2123621ce54237c56f4ab1ebfc808812eafda7c8 | |
parent | 08a536855e2312e4b6d1de375a6ab11f2672dbdc (diff) | |
download | Mapathon-d8345a07959278551fb810a40c2d9c5555354a9b.tar.gz Mapathon-d8345a07959278551fb810a40c2d9c5555354a9b.tar.bz2 Mapathon-d8345a07959278551fb810a40c2d9c5555354a9b.zip |
Add google analytics code
-rwxr-xr-x | cms/templates/cms_base.html | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/cms/templates/cms_base.html b/cms/templates/cms_base.html index 4e3e60a..360cfd2 100755 --- a/cms/templates/cms_base.html +++ b/cms/templates/cms_base.html @@ -22,7 +22,7 @@ <script src="{% static 'cms/js/popper.min.js' %}"></script> <script src="{% static 'cms/bootstrap-4.5.0/js/bootstrap.min.js' %}"></script> <script src="{% static 'cms/js/holder.min.js' %}"></script> - + <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-85GKJCKTG0"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-85GKJCKTG0'); </script> </head> <body> <!-- Section for social media links starts --> @@ -89,19 +89,6 @@ <div class="footer-content"> {{ footer.content | safe }} </div> - - - -<script type="text/javascript"> - $(document).ready(function () { - var url = window.location; - console.log(url); - $('ul.nav a[href="'+ url +'"]').parent().addClass('active'); - $('ul.nav a').filter(function() { - return this.href == url; - }).parent().addClass('active'); - }); -</script> </body> </html>
\ No newline at end of file |