Skip to content

Commit

Permalink
Updated the script for Google Analytics (#1066)
Browse files Browse the repository at this point in the history
* Updated the script for Google Analytics

* Update main.html

* Update main.html
  • Loading branch information
rasika-chivate authored Apr 27, 2023
1 parent 6d4c87e commit fa815bd
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,25 @@ <h3>Contact us </h3>
</body>
</html>

<script>
(function (w, d, s, l, i) {
w[l] = w[l] || []; w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js'
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', 'GTM-K48FGP2');
</script>

{% endblock %}

{% block analytics %}
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WBVF48V');</script>
<!-- End Google Tag Manager -->


{% block scripts %}
{{ super() }}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WBVF48V"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

<img src="https://tracking.g2crowd.com/attribution_tracking/conversions/1007137.gif?e=" width="1" height="1" />

<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K48FGP2" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
{% endblock %}

{% block content %}
Expand Down

0 comments on commit fa815bd

Please sign in to comment.