Use dataLayer for page type info

This commit is contained in:
mDuo13
2021-09-14 16:09:42 -07:00
parent 839968bbbb
commit bb7589b35e
24 changed files with 262 additions and 95 deletions

View File

@@ -33,9 +33,17 @@
{% endblock %}
{% block endbody %}
<script type="application/javascript">
gtag('config', 'UA-157720658-3', {'content_group1': 'Hub Pages'});
</script>
{% include 'component-feedback-widget.html.jinja' %}
{% endblock %}
{% block analytics %}
<script type="application/javascript">
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
"event": "page_info",
"page_type": "Hub Page",
"page_group": "Docs",
"page_labels": ["{{currentpage.landing_for}}"]
})
</script>
{% endblock analytics %}